Skip to main content

A Celery integration for SVCS

Project description

celery-svcs: A Celery integration for SVCS

Very unrefined!

Usage

Initialization

import celery
import svcs
import celery_svcs

# Have a Celery app
celery_app = celery.Celery()

# Have a svcs Registry
registry = svcs.Registry()

# Initialize svcs with the Celery app, with an existing registry
celery_svcs.init(celery_app, registry=registry)

Service Acquisition

import celery_svcs

@celery_app.task:
def a_celery_task():
    svcs = celery_svcs.svcs_from()

    db, api, cache = svcs.get(Database, WebAPIClient, Cache)

    ...

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

celery_svcs-25.10.0.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

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

celery_svcs-25.10.0-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file celery_svcs-25.10.0.tar.gz.

File metadata

  • Download URL: celery_svcs-25.10.0.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for celery_svcs-25.10.0.tar.gz
Algorithm Hash digest
SHA256 1b6a8723d42a7fd37a90cb33c4a80c1ce7bfcf8086563ed22a24f7373bbb7572
MD5 74d243388b35b161579ec6bd97ce7ecc
BLAKE2b-256 ed650af4019d2135e0c37263fca47f4bb27b4f4092059e5f5df2e06ae2bda4ef

See more details on using hashes here.

Provenance

The following attestation bundles were made for celery_svcs-25.10.0.tar.gz:

Publisher: publish-package.yaml on atbigelow/celery-svcs

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file celery_svcs-25.10.0-py3-none-any.whl.

File metadata

  • Download URL: celery_svcs-25.10.0-py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for celery_svcs-25.10.0-py3-none-any.whl
Algorithm Hash digest
SHA256 626f4707d4c03f8132969d4e92ef85313914cb0d0b444af50d98d41b3fd57fa7
MD5 584535f3edaa43326f75ec98afbaf8f5
BLAKE2b-256 120ef9a3c5fc16e876b4e6691a3a41b6a93578eea6232442a274e7fae53c6fa9

See more details on using hashes here.

Provenance

The following attestation bundles were made for celery_svcs-25.10.0-py3-none-any.whl:

Publisher: publish-package.yaml on atbigelow/celery-svcs

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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