Debian Codegraph @

docs/includes/installation.txt

raw
1 .. _celery-installation:
2
3 Installation
4 ============
5
6 You can install Celery either via the Python Package Index (PyPI)
7 or from source.
8
9 To install using :command:`pip`:
10
11
12 .. code-block:: console
13
14 $ pip install -U Celery
15
16 .. _bundles:
17
18 Bundles
19 -------
20
21 Celery also defines a group of bundles that can be used
22 to install Celery and the dependencies for a given feature.
23
24 You can specify these in your requirements or on the :command:`pip`
25 command-line by using brackets. Multiple bundles can be specified by
26 separating them by commas.
27
28
29 .. code-block:: console
30
31 $ pip install "celery[librabbitmq]"
32
33 $ pip install "celery[librabbitmq,redis,auth,msgpack]"
34
35 The following bundles are available:
36
37 Serializers
38 ~~~~~~~~~~~
39
40 :``celery[auth]``:
41 for using the ``auth`` security serializer.
42
43 :``celery[msgpack]``:
44 for using the msgpack serializer.
45
46 :``celery[yaml]``:
47 for using the yaml serializer.
48
49 Concurrency
50 ~~~~~~~~~~~
51
52 :``celery[eventlet]``:
53 for using the :pypi:`eventlet` pool.
54
55 :``celery[gevent]``:
56 for using the :pypi:`gevent` pool.
57
58 Transports and Backends
59 ~~~~~~~~~~~~~~~~~~~~~~~
60
61 :``celery[librabbitmq]``:
62 for using the librabbitmq C library.
63
64 :``celery[redis]``:
65 for using Redis as a message transport or as a result backend.
66
67 :``celery[sqs]``:
68 for using Amazon SQS as a message transport (*experimental*).
69
70 :``celery[tblib]``:
71 for using the :setting:`task_remote_tracebacks` feature.
72
73 :``celery[memcache]``:
74 for using Memcached as a result backend (using :pypi:`pylibmc`)
75
76 :``celery[pymemcache]``:
77 for using Memcached as a result backend (pure-Python implementation).
78
79 :``celery[cassandra]``:
80 for using Apache Cassandra/Astra DB as a result backend with DataStax driver.
81
82 :``celery[couchbase]``:
83 for using Couchbase as a result backend.
84
85 :``celery[arangodb]``:
86 for using ArangoDB as a result backend.
87
88 :``celery[elasticsearch]``:
89 for using Elasticsearch as a result backend.
90
91 :``celery[riak]``:
92 for using Riak as a result backend.
93
94 :``celery[dynamodb]``:
95 for using AWS DynamoDB as a result backend.
96
97 :``celery[zookeeper]``:
98 for using Zookeeper as a message transport.
99
100 :``celery[sqlalchemy]``:
101 for using SQLAlchemy as a result backend (*supported*).
102
103 :``celery[pyro]``:
104 for using the Pyro4 message transport (*experimental*).
105
106 :``celery[slmq]``:
107 for using the SoftLayer Message Queue transport (*experimental*).
108
109 :``celery[consul]``:
110 for using the Consul.io Key/Value store as a message transport or result backend (*experimental*).
111
112 :``celery[django]``:
113 specifies the lowest version possible for Django support.
114
115 You should probably not use this in your requirements, it's here
116 for informational purposes only.
117
118 :``celery[gcs]``:
119 for using the Google Cloud Storage as a result backend (*experimental*).
120
121 :``celery[gcpubsub]``:
122 for using the Google Cloud Pub/Sub as a message transport (*experimental*)..
123
124
125
126 .. _celery-installing-from-source:
127
128 Downloading and installing from source
129 --------------------------------------
130
131 Download the latest version of Celery from PyPI:
132
133 https://pypi.org/project/celery/
134
135 You can install it by doing the following,:
136
137
138 .. code-block:: console
139
140 $ tar xvfz celery-0.0.0.tar.gz
141 $ cd celery-0.0.0
142 $ python setup.py build
143 # python setup.py install
144
145 The last command must be executed as a privileged user if
146 you aren't currently using a virtualenv.
147
148 .. _celery-installing-from-git:
149
150 Using the development version
151 -----------------------------
152
153 With pip
154 ~~~~~~~~
155
156 The Celery development version also requires the development
157 versions of :pypi:`kombu`, :pypi:`amqp`, :pypi:`billiard`, and :pypi:`vine`.
158
159 You can install the latest snapshot of these using the following
160 pip commands:
161
162
163 .. code-block:: console
164
165 $ pip install https://github.com/celery/celery/zipball/main#egg=celery
166 $ pip install https://github.com/celery/billiard/zipball/main#egg=billiard
167 $ pip install https://github.com/celery/py-amqp/zipball/main#egg=amqp
168 $ pip install https://github.com/celery/kombu/zipball/main#egg=kombu
169 $ pip install https://github.com/celery/vine/zipball/main#egg=vine
170
171 With git
172 ~~~~~~~~
173
174 Please see the :ref:`Contributing <contributing>` section.