https://github.com/sbdchd/celery-types
:seedling: Type stubs for Celery and its related packages
https://github.com/sbdchd/celery-types
amqp billiard celery django-celery-results kombu mypy stubs types
Last synced: about 2 months ago
JSON representation
:seedling: Type stubs for Celery and its related packages
- Host: GitHub
- URL: https://github.com/sbdchd/celery-types
- Owner: sbdchd
- License: apache-2.0
- Created: 2021-02-08T01:40:46.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2025-04-05T20:42:46.000Z (3 months ago)
- Last Synced: 2025-04-14T12:59:25.383Z (3 months ago)
- Topics: amqp, billiard, celery, django-celery-results, kombu, mypy, stubs, types
- Language: Python
- Homepage:
- Size: 232 KB
- Stars: 97
- Watchers: 3
- Forks: 45
- Open Issues: 19
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-python-typing - celery-types - Type stubs for [Celery](https://github.com/celery/celery) and its related packages [django-celery-results](https://github.com/celery/django-celery-results), [ampq](https://github.com/celery/py-amqp), [kombu](https://github.com/celery/kombu), [billiard](https://github.com/celery/billiard), [vine](https://github.com/celery/vine) and [ephem](https://github.com/brandon-rhodes/pyephem). (Stub packages)
README
# celery-types [](https://pypi.org/project/celery-types/)
Type stubs for celery related projects:
- [`celery`](https://github.com/celery/celery)
- [`django-celery-results`](https://github.com/celery/django-celery-results)
- [`amqp`](http://github.com/celery/py-amqp)
- [`kombu`](https://github.com/celery/kombu)
- [`billiard`](https://github.com/celery/billiard)
- [`vine`](https://github.com/celery/vine)
- [`ephem`](https://github.com/brandon-rhodes/pyephem)## install
```shell
pip install celery-types
```You'll also need to monkey patch `Task` so generic params can be provided:
```python
from celery.app.task import Task
Task.__class_getitem__ = classmethod(lambda cls, *args, **kwargs: cls) # type: ignore[attr-defined]
```## dev
### initial setup
```shell
# install poetry (https://python-poetry.org/docs/)
curl -sSL https://install.python-poetry.org | python3 -
# install node
# install yarn
npm install --global yarn# install node dependencies
yarn
```### regular development
```shell
poetry config virtualenvs.in-project true
poetry install# run formatting, linting, and typechecking
s/lint# build and publish
poetry publish --build
```## related
-
-
-
-