Skip to main content

pyconduit

A simple workflow manager that executes pre-defined functions from user-defined workflow files. You ("developer") create the functions, and they ("users") will able to call the functions by typing its name and pass the required parameters.

It can be used to provide a "custom code evaluation" / "safe eval" feature to your users in your app. So they will only able to access functions that you allow. Users can also reference to other steps, set variables, and use standard functions in their workflow files.

pyconduit comes with Text, Math, Dictionary, List and Variable blocks like in Python's standard built-in functions. So you don't need to reinvent the wheel by writing these functions again.

It does not execute multiple functions in the same time. It executes functions step by step (because that's a how "workflow" works), so next function will only execute after previous function has finished execution. Even if they are asynchronous / coroutines.

Features

  • Prevent access to a block for specific user. For example, if you have a block that makes a HTTP request, you can add a label to it, and pyconduit will not allow your users to use the function if job doesn't have that label too.

  • Add step limits, max usage limit for a block per workflow (it can be changed for a specific job too).

  • If you install pydantic library in your environment, pyconduit will use it automatically to enforce type hints / annotations in function parameters, so users won't able to send invalid type of values when parameter expects a specific type of value.

  • Use Context Tags in the workflows to access variables, get the return value of previous steps and read object values with dotted path. For example, users can type {: my_step_id :} in the workflow to get the return value of my_step_id dynamically.

Warning

As pyconduit can be used as "isolated space", you should be careful about functions that you enabled to user. (for example, you shouldn't make a function that allows users to get a global value in the runtime from their input). Also, even pyconduit blocks access to keys that starts or ends with underscore, there is no 100% warranty about security.

Install

python -m pip install pyconduit

License

Source code is licensed under MIT license. You must include the license notice in all copies or substantial uses of the work.

Metadata

Release files for pyconduit 1.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyconduit 1.0.4
File Size Uploaded Provenance Actions
pyconduit-1.0.4.tar.gz 26.8 kB Without provenance Details for pyconduit-1.0.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pyconduit 1.0.4
File Interpreter ABI Platform Actions
pyconduit-1.0.4-py3-none-any.whl Python 3 none any Details for pyconduit-1.0.4-py3-none-any.whl

Total release size: 69.3 kB

Release files / pyconduit-1.0.4.tar.gz

Download URL pyconduit-1.0.4.tar.gz
Size 26.8 kB
Tags Source
SHA-256 checksum
How to use checksums
84471f9fae14a8a4cbd99897386c163dbaa9153e8fcaf67695b44bd4a212c43d
BLAKE2b-256 checksum
How to use checksums
58bd35bfb9e118c4aa3d23afd77e752a48530db6a52765d222b127bf22b73283
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6

Release files / pyconduit-1.0.4-py3-none-any.whl

Download URL pyconduit-1.0.4-py3-none-any.whl
Size 42.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a8cba872c9337c3eb3d418bd9d36d6a37e2603351f9e914cad7f63ad7e2af897
BLAKE2b-256 checksum
How to use checksums
464640c5d8b8118b81973eb67588664c63a4dba7e20920b273269c9e38e8373e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6

Security for pyconduit 1.0.4

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page