Package: pyphene
PypheneAn awesome README template to jumpstart your projects!Explore the docs »View Demo·Report Bug·Request FeatureTable of ContentsAbout The ProjectGetting StartedPrerequisitesInstallationUsageRoadmapContributingLicenseContactAcknowledgmentsAbout The ProjectPyphene 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 StartedYou can install Pyphene with pip:pipinstallpyphenePrerequisitesThe only prerequisite is to be running Python 3.6 or higher.InstallationYou can install Pyphene with pip:pipinstallpyphene(back to top)UsagePyphene is really simple to use. You can instantiate the graph either from a JSON (not super supported) or declaratively with code:importtimefrompypheneimportgraph# Create a new DAGpyph=graph.Graph()defdo_work(dep_input,states,event):print("Starting to work")time.sleep(2)print("Done!")# Add tasks to the DAGpyph.add_node("node_name1",[],do_work)pyph.add_node("node_name2",["node_name1"],do_work)# Execute the DAGpyph.run()(back to top)RoadmapAdd ChangelogAdd back to top linksAdd Additional Templates w/ ExamplesAdd "components" document to easily copy & paste sections of the readmeMulti-language SupportChineseSpanishSee theopen issuesfor a full list of proposed features (and known issues).(back to top)ContributingContributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make aregreatly 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 ProjectCreate 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(back to top)LicenseDistributed under the MIT License. SeeLICENSE.txtfor more information.(back to top)ContactYour Name -@your_twitter-email@example.comProject Link:https://github.com/your_username/repo_name(back to top)AcknowledgmentsUse 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 LicenseGitHub Emoji Cheat SheetMalven's Flexbox CheatsheetMalven's Grid CheatsheetImg ShieldsGitHub PagesFont AwesomeReact Icons(back to top)MIT LicenseCopyright (c) 2023 MOVING LAKE SAPI DE CVPermission 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.