A multithreaded graph runner
Project description
Pyphene
An awesome README template to jumpstart your projects!
Explore the docs »
View Demo
·
Report Bug
·
Request Feature
Table of Contents
About The Project
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.
Getting Started
You can install Pyphene with pip:
pip install pyphene
Prerequisites
The only prerequisite is to be running Python 3.6 or higher.
Installation
You can install Pyphene with pip:
pip install pyphene
Usage
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()
Roadmap
- 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).
Contributing
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
License
Distributed under the MIT License. See LICENSE.txt for more information.
Contact
Your Name - @your_twitter - email@example.com
Project Link: https://github.com/your_username/repo_name
Acknowledgments
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!
- Choose an Open Source License
- GitHub Emoji Cheat Sheet
- Malven's Flexbox Cheatsheet
- Malven's Grid Cheatsheet
- Img Shields
- GitHub Pages
- Font Awesome
- React Icons
MIT License
Copyright (c) 2023 MOVING LAKE SAPI DE CV
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyphene-1.0.10.tar.gz.
File metadata
- Download URL: pyphene-1.0.10.tar.gz
- Upload date:
- Size: 7.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c3df389a7816ffcfd4d8c53c4c255ab0498284427636b68c27206bdec608a465
|
|
| MD5 |
c79816d5cd106c72d7b90875c2fece26
|
|
| BLAKE2b-256 |
ee820fd20aca4365b34c810089b135e6554a80eec4670a8f6b559f11e92e2c4d
|
File details
Details for the file pyphene-1.0.10-py3-none-any.whl.
File metadata
- Download URL: pyphene-1.0.10-py3-none-any.whl
- Upload date:
- Size: 7.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cafca64f72ae652ea135757a1cdcb74c968d2251fd223e1c164ce967ca8820d3
|
|
| MD5 |
0d81efcaef1dafddb576af25ae637073
|
|
| BLAKE2b-256 |
acdba54809a114cd9d361d049d3947febc274d31710a8b426250f12f2cec4051
|