Skip to main content

A multithreaded graph runner

Project description

Contributors Forks Stargazers Issues MIT License LinkedIn


Logo

Pyphene

An awesome README template to jumpstart your projects!
Explore the docs »

View Demo · Report Bug · Request Feature

Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage
  4. Roadmap
  5. Contributing
  6. License
  7. Contact
  8. Acknowledgments

About The Project

Product Name Screen Shot

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.

(back to top)

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

(back to top)

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()

(back to top)

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).

(back to top)

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!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

(back to top)

License

Distributed under the MIT License. See LICENSE.txt for more information.

(back to top)

Contact

Your Name - @your_twitter - email@example.com

Project Link: https://github.com/your_username/repo_name

(back to top)

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!

(back to top)

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyphene-1.0.10.tar.gz (7.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyphene-1.0.10-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

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

Hashes for pyphene-1.0.10.tar.gz
Algorithm Hash digest
SHA256 c3df389a7816ffcfd4d8c53c4c255ab0498284427636b68c27206bdec608a465
MD5 c79816d5cd106c72d7b90875c2fece26
BLAKE2b-256 ee820fd20aca4365b34c810089b135e6554a80eec4670a8f6b559f11e92e2c4d

See more details on using hashes here.

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

Hashes for pyphene-1.0.10-py3-none-any.whl
Algorithm Hash digest
SHA256 cafca64f72ae652ea135757a1cdcb74c968d2251fd223e1c164ce967ca8820d3
MD5 0d81efcaef1dafddb576af25ae637073
BLAKE2b-256 acdba54809a114cd9d361d049d3947febc274d31710a8b426250f12f2cec4051

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page