This document describes the current stable version of Celery (3.1). For development docs, go here.
celery.bin.amqp¶
The celery amqp command.
-
class
celery.bin.amqp.AMQShell(*args, **kwargs)[source]¶ AMQP API Shell.
Parameters: - connect – Function used to connect to the server, must return connection object.
- silent – If
True, the commands won’t have annoying output not relevant when running in non-shell mode.
-
amqp= {u'queue.declare': <celery.bin.amqp.Spec object at 0x7feb214b7210>, u'queue.purge': <celery.bin.amqp.Spec object at 0x7feb214b7fd0>, u'exchange.delete': <celery.bin.amqp.Spec object at 0x7feb214b7a50>, u'basic.publish': <celery.bin.amqp.Spec object at 0x7feb214b7ed0>, u'basic.ack': <celery.bin.amqp.Spec object at 0x7feb214b7390>, u'exchange.declare': <celery.bin.amqp.Spec object at 0x7feb214b71d0>, u'queue.delete': <celery.bin.amqp.Spec object at 0x7feb214b7dd0>, u'queue.bind': <celery.bin.amqp.Spec object at 0x7feb214b7110>, u'basic.get': <celery.bin.amqp.Spec object at 0x7feb214b73d0>}
-
builtins= {u'exit': u'do_exit', u'EOF': u'do_exit', u'help': u'do_help'}¶
-
chan= None¶
-
conn= None¶
-
counter= 1¶
-
get_amqp_api_command(cmd, arglist)[source]¶ With a command name and a list of arguments, convert the arguments to Python values and find the corresponding method on the AMQP channel object.
Returns: tuple of (method, processed_args).
-
identchars= u'.'¶
-
inc_counter= count(2)¶
-
needs_reconnect= False¶
-
parseline(line)[source]¶ Parse input line.
Returns: tuple of three items: (command_name, arglist, original_line)
-
prompt¶
-
prompt_fmt= u'{self.counter}> '¶
-
class
celery.bin.amqp.Spec(*args, **kwargs)[source]¶ AMQP Command specification.
Used to convert arguments to Python values and display various help and tooltips.
Parameters: - args – see
args. - returns – see
returns.
- args – see
-
class
celery.bin.amqp.amqp(app=None, get_app=None, no_color=False, stdout=None, stderr=None, quiet=False, on_error=None, on_usage_error=None)[source]¶ AMQP Administration Shell.
Also works for non-amqp transports (but not ones that store declarations in memory).
Examples:
celery amqp start shell mode celery amqp help show list of commands celery amqp exchange.delete name celery amqp queue.delete queue celery amqp queue.delete queue yes yes