Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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 16 hours 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 (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-12-06T02:22:43.000Z (16 days ago)
- Last Synced: 2024-12-14T01:02:36.474Z (8 days ago)
- Topics: amqp, billiard, celery, django-celery-results, kombu, mypy, stubs, types
- Language: Python
- Homepage:
- Size: 221 KB
- Stars: 87
- Watchers: 4
- Forks: 41
- Open Issues: 21
-
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 [![PyPI](https://img.shields.io/pypi/v/celery-types.svg)](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
-
-
-
-