Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
coolamqp
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
public
coolamqp
Commits
d235129e
Commit
d235129e
authored
8 years ago
by
Piotr Maślanka
Browse files
Options
Downloads
Patches
Plain Diff
v0.89
parent
038319b8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
coolamqp/attaches/consumer.py
+5
-3
5 additions, 3 deletions
coolamqp/attaches/consumer.py
setup.py
+1
-1
1 addition, 1 deletion
setup.py
with
6 additions
and
4 deletions
coolamqp/attaches/consumer.py
+
5
−
3
View file @
d235129e
...
...
@@ -7,9 +7,8 @@ import warnings
from
coolamqp.framing.frames
import
AMQPBodyFrame
,
AMQPHeaderFrame
from
coolamqp.framing.definitions
import
ChannelOpenOk
,
BasicConsume
,
\
BasicConsumeOk
,
QueueDeclare
,
QueueDeclareOk
,
ExchangeDeclare
,
ExchangeDeclareOk
,
\
QueueBind
,
QueueBindOk
,
ChannelClose
,
BasicCancel
,
BasicDeliver
,
\
BasicAck
,
BasicReject
,
RESOURCE_LOCKED
,
BasicCancelOk
,
BasicQos
,
HARD_ERRORS
,
\
BasicCancel
,
BasicQosOk
QueueBind
,
QueueBindOk
,
ChannelClose
,
BasicDeliver
,
BasicCancel
,
\
BasicAck
,
BasicReject
,
RESOURCE_LOCKED
,
BasicCancelOk
,
BasicQos
,
BasicQosOk
from
coolamqp.uplink
import
HeaderOrBodyWatch
,
MethodWatch
from
concurrent.futures
import
Future
from
coolamqp.objects
import
Callable
...
...
@@ -64,6 +63,9 @@ class Consumer(Channeler):
fucking_memoryviews
=
False
):
"""
Note that if you specify QoS, it is applied before basic.consume is sent. This will prevent
the broker from hammering you into oblivion with a mountain of messages.
:param queue: Queue object, being consumed from right now.
Note that name of anonymous queue might change at any time!
:param on_message: callable that will process incoming messages
...
...
This diff is collapsed.
Click to expand it.
setup.py
+
1
−
1
View file @
d235129e
...
...
@@ -25,7 +25,7 @@ setup(name=u'CoolAMQP',
long_description
=
u
'''
Pure Python AMQP client, but with dynamic class generation and memoryviews FOR THE GODSPEED.
Also, handles your reconnects and transactionality THE RIGHT WAY
'''
,
requires
=
[
'
amqp
'
,
'
six
'
,
'
monotonic
'
],
requires
=
[
'
six
'
,
'
monotonic
'
,
'
futures
'
],
tests_require
=
[
"
nose
"
],
test_suite
=
'
nose.collector
'
,
classifiers
=
[
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment