Skip to content

Commit

Permalink
Include extra compression methods in Celery for ease of use.
Browse files Browse the repository at this point in the history
  • Loading branch information
thedrow committed Mar 31, 2019
1 parent fe3e9a3 commit 3a7c30c
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 22 deletions.
10 changes: 5 additions & 5 deletions docs/userguide/calling.rst
Original file line number Diff line number Diff line change
Expand Up @@ -503,11 +503,11 @@ Celery can compress messages using the following builtin schemes:
documents. It is most effective for serving static content
such as fonts and html pages.

To use it, install kombu with:
To use it, install Celery with:

.. code-block:: console
$ pip install kombu[brotli]
$ pip install celery[brotli]
- `bzip2`

Expand Down Expand Up @@ -572,7 +572,7 @@ Celery can compress messages using the following builtin schemes:

.. code-block:: console
$ pip install kombu[lzma]
$ pip install celery[lzma]
- `zlib`

Expand Down Expand Up @@ -602,11 +602,11 @@ Celery can compress messages using the following builtin schemes:
and better compression ratios. It's backed by a very fast entropy
stage, provided by Huff0 and FSE library.

To use it, install kombu with:
To use it, install Celery with:

.. code-block:: console
$ pip install kombu[zstd]
$ pip install celery[zstd]
You can also create your own compression schemes and register
them in the :func:`kombu compression registry <kombu.compression.register>`.
Expand Down
2 changes: 2 additions & 0 deletions requirements/extras/brotli.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
brotlipy>=0.7.0;python_implementation=="PyPy"
brotli>=1.0.0;python_implementation=="CPython"
1 change: 1 addition & 0 deletions requirements/extras/lzma.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
backports.lzma;python_version<"3.3"
1 change: 1 addition & 0 deletions requirements/extras/zstd.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
zstandard
37 changes: 20 additions & 17 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,35 +50,38 @@ def _pyimp():
# -*- Extras -*-

EXTENSIONS = {
'arangodb',
'auth',
'azureblockblob',
'brotli',
'cassandra',
'consul',
'cosmosdbsql',
'couchbase',
'couchdb',
'django',
'dynamodb',
'elasticsearch',
'memcache',
'pymemcache',
'couchbase',
'arangodb',
'eventlet',
'gevent',
'librabbitmq',
'lzma',
'memcache',
'mongodb',
'msgpack',
'yaml',
'pymemcache',
'pyro',
'redis',
'sqs',
'couchdb',
'riak',
'zookeeper',
's3',
'slmq',
'solar',
'sqlalchemy',
'azureblockblob',
'librabbitmq',
'pyro',
'slmq',
'sqs',
'tblib',
'consul',
'dynamodb',
'mongodb',
'cosmosdbsql',
's3',
'yaml',
'zookeeper',
'zstd'
}

# -*- Classifiers -*-
Expand Down

0 comments on commit 3a7c30c

Please sign in to comment.