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: 3 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 3 years ago)
- Default Branch: main
- Last Pushed: 2024-05-11T22:18:57.000Z (6 months ago)
- Last Synced: 2024-07-19T11:46:58.622Z (4 months ago)
- Topics: amqp, billiard, celery, django-celery-results, kombu, mypy, stubs, types
- Language: Python
- Homepage:
- Size: 207 KB
- Stars: 73
- Watchers: 4
- Forks: 36
- Open Issues: 20
-
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
-
-
-
-