Skip to main content

A standalone workflow spun off from [Agently](https://github.com/Maplemx/Agently), featuring minimal third-party dependencies (e.g., json5).

Project description

A standalone workflow spun off from Agently, featuring minimal third-party dependencies (e.g., json5).

The usage is consistent with the original Agently project(version 3.4.0.4).

Simply change the import statement to agently_workflow:

from agently_workflow import Workflow

workflow = Workflow()


@workflow.chunk()
def task_1(inputs, storage):
    return {"value": "1"}


@workflow.chunk()
def task_2(inputs, storage):
    return {"value": "2"}


@workflow.chunk()
def echo(inputs, storage):
    print("[Data Received]: ", str(inputs))
    return inputs


(
    workflow
    .connect_to(workflow.chunks["task_1"])
    .connect_to(workflow.chunks["echo"].handle("input_handle_a"))
)
(
    workflow
    .connect_to(workflow.chunks["task_2"])
    .connect_to(workflow.chunks["echo"].handle("input_handle_b"))
)
workflow.chunks["echo"].connect_to(workflow.chunks["END"])

result = workflow.start()
print(result)

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

agently_workflow-0.1.3.tar.gz (54.2 kB view details)

Uploaded Source

Built Distribution

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

agently_workflow-0.1.3-py3-none-any.whl (68.0 kB view details)

Uploaded Python 3

File details

Details for the file agently_workflow-0.1.3.tar.gz.

File metadata

  • Download URL: agently_workflow-0.1.3.tar.gz
  • Upload date:
  • Size: 54.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.10.15

File hashes

Hashes for agently_workflow-0.1.3.tar.gz
Algorithm Hash digest
SHA256 d7f4a787e5774a1eec17c8db244e2472c141fd63545d64d49321ea95978bb0c2
MD5 2a080452a39cfd089cc928c7987c9867
BLAKE2b-256 d5c0651ca42e9bd22c7c285a7b30598632252ad29bba489471d641a4f3a32407

See more details on using hashes here.

File details

Details for the file agently_workflow-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for agently_workflow-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 5dd587f24f32b4f0c4c2d04a6d813873422cc21720109ad05b8d0076eeef5ca3
MD5 af3ce86b46a6a26107f08ea1642bb067
BLAKE2b-256 56bda21fa871f477ec1adce5499a1dce2d4704bb59792fd4844db7c66375fce7

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