ChainOS-python is a python client for the ChainOS engine
Project description
ChainOS
An extremely fast, language-agnostic, graph workflow engine for building, testing, and deploying complex workflows.
Story
Chainos : the Forger of Sequential Bonds
Chainos focuses on the power of chained processes, from AI to algorithmic sequences where each step is linked to the next. As the forger of sequences, Chainos ensures that every link in the chain holds, promoting security, efficiency, and integrity in systems that rely on unbroken processes.
Help
Installing
Setup environment
# Choose a python version
pyenv install 3.10
pyenv install 3.11
# Create a virtualenv
# Can replace 3.11 with your version
pyenv virtualenv 3.11 chainos
# See all installed python versions and available virtualenvs
pyenv versions
# activate virtualenv
pyenv activate chainos
# leave virtualenv
pyenv deactivate
pip install poetry
Setup project
git clone git@github.com:chainos-io/chainos-python.git
cd chainos-python
poetry install --with test,dev --no-root
Running ChainOS
Example chainos project
from chainos import ChainOS as cos
container = cos.Container()
chain = cos.Chain(container=container)
@cos.task
def step1() -> int:
print("Hello, World!")
return 1
@cos.task
def step2(input1: int):
print(f"step2: {input1}")
return input1 * 2
chain.add(step1)
chain.add(step2)
container.add(chain)
chain.run()
Contributing
For guidance on setting up a development environment and how to make a contribution to Chainos, see Contributing to Pydantic.
Or see Contribution guidelines for this project
Reporting a Security Vulnerability
See our security policy.
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 chainos-0.1.0.tar.gz.
File metadata
- Download URL: chainos-0.1.0.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.11.7 Darwin/23.2.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fc84ba077a32c85fdabc14cee7ce33675d561c4ab5e40d770ace5e7d13103c30
|
|
| MD5 |
0ce826e67dbeb0ef50d1ec2c632a8af4
|
|
| BLAKE2b-256 |
5b180a8dec9000a653beacf79ab6eb2d5996962f07b0698a8bfde685f0276f31
|
File details
Details for the file chainos-0.1.0-py3-none-any.whl.
File metadata
- Download URL: chainos-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.11.7 Darwin/23.2.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
94e2f743f4ef9274d91b151dbf775dd2764990187dd56ecf377694d4bac80481
|
|
| MD5 |
764ca238b339d5f91cfb2b8b49fd6646
|
|
| BLAKE2b-256 |
2b04653fd61ccd87b17257a4d1146b4be7740da31fef23739bc8c59c19d76c84
|