Collection of tasks for working with ARCADE.
Project description
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
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
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 09a4be8af6cb3f1127f41be57f31ba7d13a7fd128ef034a3ab28ee6e58e49a73 |
|
MD5 | 810516de995be4b093ef554aac3ea43e |
|
BLAKE2b-256 | dbcf1a06cb385cc2c05a8d15206c646af43d8b70f487c756bb361f0f53a10f31 |
File details
Details for the file arcade_collection-0.16.0-py3-none-any.whl
.
File metadata
- Download URL: arcade_collection-0.16.0-py3-none-any.whl
- Upload date:
- Size: 36.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 32316ad595831ba6cf2c224a65fe5baed0d3212eedb4b14354c88fd177850a67 |
|
MD5 | 110a2860d96c60a4f45d905fe7397efd |
|
BLAKE2b-256 | 762c71fd7461e66c22e02cb717eca91a23e11c2cd3b7928f489ea88809e58673 |