Skip to main content

mamba-paw (Python Azure Worker)

Base project for the paw package. Very much a work in progress.

To create tasks:

# tasks.py

from paw import task

@task(description='Stupid simple example')
def task_one(print_me):
    print(print_me)
    return True

To start a worker:

# start_workers.py

from paw import MainPawWorker
import tasks  # importing tasks from tasks.py in local project

workers = MainPawWorker(
    azure_storage_name='storage account name',
    azure_storage_private_key='storage account private key',
    azure_queue_name='name of the queue',
    azure_table_name='name of the table',
    tasks_module=tasks,
    workers=4
)

if __name__ == '__main__':
    workers.start_workers()

To queue a task:

# queue_tasks.py

from paw import queue_task

queue_task(
    task_name='task_one',
    account_name='storage account name',
    account_key='storage account private key',
    queue_name='name of the queue',
    args=['List', 'of', 'arguments'],
    kwargs={'Key_word': 'arguments'}
)

Metadata

Release files for mamba-paw 0.3.1

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

Source distribution (sdist)

Source distribution for mamba-paw 0.3.1
File Size Uploaded Provenance Actions
mamba-paw-0.3.1.tar.gz 7.3 kB Without provenance Details for mamba-paw-0.3.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mamba-paw 0.3.1
File Interpreter ABI Platform Actions
mamba_paw-0.3.1-py3-none-any.whl Python 3 none any Details for mamba_paw-0.3.1-py3-none-any.whl

Total release size: 17.0 kB

Release files / mamba-paw-0.3.1.tar.gz

Download URL mamba-paw-0.3.1.tar.gz
Size 7.3 kB
Tags Source
SHA-256 checksum
How to use checksums
378f74cdeb184b48f3206d76aee874318e6c8a40f93c0ac503ebee840a23cfa7
BLAKE2b-256 checksum
How to use checksums
0d958692b2bba06e73c39e625de9f52ad2f8e4b08f37d35918415b02797923f7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / mamba_paw-0.3.1-py3-none-any.whl

Download URL mamba_paw-0.3.1-py3-none-any.whl
Size 9.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c7ead38e450cedc7c9edfb5638cde58705181a3643c9e8c95096606bd9664b56
BLAKE2b-256 checksum
How to use checksums
d410a3837fc71b6e54d0c55795efb22ac22fdf0c17cbd96cef3d04afab82b942
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for mamba-paw 0.3.1

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