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
1df5e6ae
Commit
1df5e6ae
authored
7 months ago
by
Piotr Maślanka
Browse files
Options
Downloads
Patches
Plain Diff
argumentify added
parent
5206612f
No related branches found
No related tags found
No related merge requests found
Pipeline
#63917
passed with stages
in 2 minutes and 26 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CHANGELOG.md
+1
-0
1 addition, 0 deletions
CHANGELOG.md
coolamqp/objects.py
+5
-1
5 additions, 1 deletion
coolamqp/objects.py
docs/how-to-guide.rst
+9
-0
9 additions, 0 deletions
docs/how-to-guide.rst
with
15 additions
and
1 deletion
CHANGELOG.md
+
1
−
0
View file @
1df5e6ae
...
...
@@ -5,6 +5,7 @@ v2.0.1
======
*
removed extra logging from argumentify
*
user will be notified upon declaring an auto-delete durable exchange
v2.0.0
======
...
...
This diff is collapsed.
Click to expand it.
coolamqp/objects.py
+
5
−
1
View file @
1df5e6ae
...
...
@@ -37,7 +37,7 @@ class MessageProperties(BasicContentPropertyList):
:type correlation_id: binary type (max length 255) (AMQP as shortstr)
:param reply_to: address to reply to
:type reply_to: binary type (max length 255) (AMQP as shortstr)
:param expiration: message expiration specification
:param expiration: message expiration specification
(in milliseconds)
:type expiration: binary type (max length 255) (AMQP as shortstr)
:param message_id: application message identifier
:type message_id: binary type (max length 255) (AMQP as shortstr)
...
...
@@ -207,6 +207,7 @@ class Exchange(object):
:param name: exchange name
:param arguments: either a list of (bytes, values) or a dict of (str, value) to pass as an extra argument
:param type: type of the exchange. So far, valid types are
'
direct
'
,
'
fanout
'
,
'
topic
'
and
'
headers
'
"""
__slots__
=
(
'
name
'
,
'
type
'
,
'
durable
'
,
'
auto_delete
'
,
'
arguments
'
)
...
...
@@ -224,6 +225,9 @@ class Exchange(object):
self
.
auto_delete
=
auto_delete
self
.
arguments
=
argumentify
(
arguments
)
if
self
.
auto_delete
and
self
.
durable
:
warnings
.
warn
(
'
What is your purpose in declaring a durable auto-delete exchange?
'
,
UserWarning
)
assert
isinstance
(
self
.
name
,
six
.
text_type
)
assert
isinstance
(
self
.
type
,
six
.
binary_type
)
...
...
This diff is collapsed.
Click to expand it.
docs/how-to-guide.rst
+
9
−
0
View file @
1df5e6ae
...
...
@@ -102,3 +102,12 @@ In order to make use of an anonymous queue, you must first :meth:`coolamqp.clust
raise ValueError if you try to do that, anyway.
Anonymous queues must be auto_delete and exclusive, ValueError will be raised otherwise.
Who am I talking to?
--------------------
To identify the server you're talking to just connect and use :meth:`coolamqp.clustering.Cluster.properties`,
which will return the following class:
.. autoclass:: coolamqp.objects.ServerProperties
:members:
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