Metadata-Version: 2.4
Name: celery-svcs
Version: 25.10.0
Summary: A Celery integration for SVCS
Project-URL: GitHub, https://github.com/atbigelow/celery-svcs
Author-email: August Trapper Bigelow <dev@atbigelow.com>
License-Expression: MIT
License-File: LICENSE
Requires-Python: >=3.11
Requires-Dist: celery>=5.4.0
Requires-Dist: svcs>=25.1.0
Description-Content-Type: text/markdown

# celery-svcs: A Celery integration for SVCS

Very unrefined!

## Usage

### Initialization
```python
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
```python
import celery_svcs

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

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

    ...
```
