Creating a Registry
To create a registry follow the example below:
from typing import Any, Dict, Protocol, Tuple, runtime_checkable
from dynflow import Registry
@runtime_checkable
class BaseComponent(Protocol):
def run(self, args: Tuple[Any], **kwargs: Dict[str, Any]) -> Any: ...
registry = Registry("ComponentRegistry", BaseComponent)
How to Register Componnets
from file1.py import registry
@registry.register('MyComponent1')
class MyComponent1:
def run(self, args: Tuple[Any], **kwargs: Dict[str, Any]) -> Any:
print("Running MyComponent with args:", args, "and kwargs:", kwargs)
@registry.register('MyComponent2')
class MyComponent2:
def run(self, args: Tuple[Any], **kwargs: Dict[str, Any]) -> Any:
print("Running MyComponent with args:", args, "and kwargs:", kwargs)
Config File Examples
-
JSON Format See config.json for an example of a JSON configuration file.
-
YAML Format See config.yml for an example of a YAML configuration file.
-
CFG Format See config.cfg for an example of a CFG configuration file.
For building build Pipeline from list of components use example
How to maintain
- Running unit-tests
python -m unittest discover -s tests - Removing Cache files
pyclean -d jupyter package ruff -v .
Metadata
Release files for dynflow 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| dynflow-0.1.0.tar.gz | 4.7 kB | Without provenance | Details for dynflow-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dynflow-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for dynflow-0.1.0-py3-none-any.whl |
Total release size: 8.3 kB
Release files / dynflow-0.1.0.tar.gz
| Download URL | dynflow-0.1.0.tar.gz |
|---|---|
| Size | 4.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bed004b73de3bc6812d05bc0b2a993f6cad910127d270e617cc9571366b2c364
|
|
BLAKE2b-256 checksum How to use checksums |
ac28130dc347ae0f7556e8eaab4261dba8e064b7b393598e53d725a61f70b553
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.4.24
|
Release files / dynflow-0.1.0-py3-none-any.whl
| Download URL | dynflow-0.1.0-py3-none-any.whl |
|---|---|
| Size | 3.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
904eeb8ae0910161609bfcff6ce1987755cb0420d441d3532ca999969730f6c5
|
|
BLAKE2b-256 checksum How to use checksums |
e47dff6f3fea5fc79d681382ebc87d05cdb64432756e939f1299fd79366a6799
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.4.24
|
Security for dynflow 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.