# SRM Autonomous Surface Vehicle Messaging Queue API
------
The team SRMASV uses this repository as an API to transfer data from one process or device to another process or device.
------
### Installation
------
To install just type in the following command:
`pip install asvmq`
There are three type of topologies involved:
1. [x] Topic Topology
2. [ ] Work Queue Topology
3. [ ] Merge Topology
## Instructions for Use:
#### Publisher
The `publisher` objects sends data over RabbitMQ broker, acting as the sole messenger to send data over the `asvmq` exchange.
The message has to either be an instance of a protobuf message, or it must be a string to be sent over, otherwise the publisher will generate an error and not send your message altogether.
The syntax of Publisher is asvmq.Publisher(**topic_name**,**object_type**,hostname, port)
Here, the required arguments are bolded.
If the parameter passed to the publish method is a protobuf message, you need not serialise the message, but instead pass the protobuf object to the method itself.
To use the `publisher` object, write the code in the following manner:
```
import asvmq
import asvprotobuf.*_pb2
pub = asvmq.Publisher("hello", asvprotobuf.sensor_pb2.Imu)
while True:
pub.publish("Hello world!!")
```
------
The team SRMASV uses this repository as an API to transfer data from one process or device to another process or device.
------
### Installation
------
To install just type in the following command:
`pip install asvmq`
There are three type of topologies involved:
1. [x] Topic Topology
2. [ ] Work Queue Topology
3. [ ] Merge Topology
## Instructions for Use:
#### Publisher
The `publisher` objects sends data over RabbitMQ broker, acting as the sole messenger to send data over the `asvmq` exchange.
The message has to either be an instance of a protobuf message, or it must be a string to be sent over, otherwise the publisher will generate an error and not send your message altogether.
The syntax of Publisher is asvmq.Publisher(**topic_name**,**object_type**,hostname, port)
Here, the required arguments are bolded.
If the parameter passed to the publish method is a protobuf message, you need not serialise the message, but instead pass the protobuf object to the method itself.
To use the `publisher` object, write the code in the following manner:
```
import asvmq
import asvprotobuf.*_pb2
pub = asvmq.Publisher("hello", asvprotobuf.sensor_pb2.Imu)
while True:
pub.publish("Hello world!!")
```
Metadata
Release files for asvmq 0.1.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| asvmq-0.1.6.tar.gz | 5.2 kB | Without provenance | Details |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| asvmq-0.1.6-py3.7.egg | Legacy Egg format | - | - | Details |
| asvmq-0.1.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 25.4 kB
Release files / asvmq-0.1.6.tar.gz
| Download URL | asvmq-0.1.6.tar.gz |
|---|---|
| Size | 5.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8ad249f013efa939725205a9dfda613c478b86b0e177daf28b9a3d46b89b7a2f
|
|
BLAKE2b-256 checksum How to use checksums |
2a668b4cd7c7b77443613f3e06144fd133aaf4cf2525d5945b10798bd2c36b12
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.7.1 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.7.2
|
Release files / asvmq-0.1.6-py3.7.egg
| Download URL | asvmq-0.1.6-py3.7.egg |
|---|---|
| Size | 13.5 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
db5ca2238e5931e23708ceb933c24f96b3b08e7c6cf132faf90491d5de44be6e
|
|
BLAKE2b-256 checksum How to use checksums |
750b1664d2a88f5ff33816a544066c733091fba15e63364d10aa5fb55f31a29a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.7.1 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.7.2
|
Release files / asvmq-0.1.6-py3-none-any.whl
| Download URL | asvmq-0.1.6-py3-none-any.whl |
|---|---|
| Size | 6.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
83404580bf9ff9ce3478e9c6819cc11179c29dc5f965b08aabcf8cb01f2a23ec
|
|
BLAKE2b-256 checksum How to use checksums |
03993a2dce91bcd059ad29939ed6248ff858cc0fc00d8518226ddec17f8c1675
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.7.1 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.7.2
|
Security for asvmq 0.1.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.