An awesome README template to jumpstart your projects!
Explore the docs »
View Demo
·
Report Bug
·
Request Feature
Table of Contents
Pyphene is an open-source Python library that allows for the execution of Direct Acyclic Graph (DAG) workloads in-memory and multithreaded. The name "pyphene" is a combination of the words "Python" and "Graphene", reflecting the library's focus on providing an easy-to-use and efficient solution for working with DAGs in Python.
You can install Pyphene with pip:
pip install pyphene
The only prerequisite is to be running Python 3.6 or higher.
You can install Pyphene with pip:
pip install pyphene
Pyphene is really simple to use. You can instantiate the graph either from a JSON (not super supported) or declaratively with code:
import time
from pyphene import graph
# Create a new DAG
pyph = graph.Graph()
def do_work(dep_input, states, event):
print("Starting to work")
time.sleep(2)
print("Done!")
# Add tasks to the DAG
pyph.add_node("node_name1", [], do_work)
pyph.add_node("node_name2", ["node_name1"], do_work)
# Execute the DAG
pyph.run()
- Add Changelog
- Add back to top links
- Add Additional Templates w/ Examples
- Add "components" document to easily copy & paste sections of the readme
- Multi-language Support
- Chinese
- Spanish
See the open issues for a full list of proposed features (and known issues).
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE.txt
for more information.
Your Name - @your_twitter - [email protected]
Project Link: https://github.com/your_username/repo_name
Use this space to list resources you find helpful and would like to give credit to. I've included a few of my favorites to kick things off!