Skip to main content

Collection of tasks for working with ARCADE.

Project description

Build status Lint status Documentation Coverage Code style Version License

Collection of tasks for working with ARCADE. Designed to be used both in Prefect workflows and as modular, useful pieces of code.

Installation

The collection can be installed using:

pip install arcade-collection

We recommend using Poetry to manage and install dependencies. To install into your Poetry project, use:

poetry add arcade-collection

Usage

Prefect workflows

All tasks in this collection are wrapped in a Prefect @task decorator, and can be used directly in a Prefect @flow. Running tasks within a Prefect flow enables you to take advantage of features such as automatically retrying failed tasks, monitoring workflow states, running tasks concurrently, deploying and scheduling flows, and more.

from prefect import flow
from arcade_collection.<module_name> import <task_name>

@flow
def run_flow():
    <task_name>()

if __name__ == "__main__":
    run_flow()

See cell-abm-pipeline for examples of using tasks from different collections to build a pipeline for simulating and analyzing agent-based model data.

Individual tasks

Not all use cases require a full workflow. Tasks in this collection can be used without the Prefect @task decorator by simply importing directly from the module:

from arcade_collection.<module_name>.<task_name> import <task_name>

def main():
    <task_name>()

if __name__ == "__main__":
    main()

or using the .fn() method:

from arcade_collection.<module_name> import <task_name>

def main():
    <task_name>.fn()

if __name__ == "__main__":
    main()

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

arcade_collection-0.16.0.tar.gz (26.3 kB view details)

Uploaded Source

Built Distribution

arcade_collection-0.16.0-py3-none-any.whl (36.3 kB view details)

Uploaded Python 3

File details

Details for the file arcade_collection-0.16.0.tar.gz.

File metadata

  • Download URL: arcade_collection-0.16.0.tar.gz
  • Upload date:
  • Size: 26.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for arcade_collection-0.16.0.tar.gz
Algorithm Hash digest
SHA256 09a4be8af6cb3f1127f41be57f31ba7d13a7fd128ef034a3ab28ee6e58e49a73
MD5 810516de995be4b093ef554aac3ea43e
BLAKE2b-256 dbcf1a06cb385cc2c05a8d15206c646af43d8b70f487c756bb361f0f53a10f31

See more details on using hashes here.

File details

Details for the file arcade_collection-0.16.0-py3-none-any.whl.

File metadata

File hashes

Hashes for arcade_collection-0.16.0-py3-none-any.whl
Algorithm Hash digest
SHA256 32316ad595831ba6cf2c224a65fe5baed0d3212eedb4b14354c88fd177850a67
MD5 110a2860d96c60a4f45d905fe7397efd
BLAKE2b-256 762c71fd7461e66c22e02cb717eca91a23e11c2cd3b7928f489ea88809e58673

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page