pythonGroupMsg Queue multicast broadcast
cython Broadcasting to multiple queues
Recently, I’m going to do something like chat software. After a lot of testing, I’ve done this thing.
Performance is 13 times faster than py direct circular transmission
install
pip install pythonGroupMsg
push msg
python
import pythonGroupMsg
import datetime
import logging
e = []
if __name__ == '__main__':
aatime = datetime.datetime.now()
for c in range(1,3):
e.append(c)
a = pythonGroupMsg.GroupMessage(profix="id:", idlist=e,loglevel=logging.INFO)
a.initAllGroup()
print("100000 queue init",(datetime.datetime.now() -aatime).microseconds/1000000,"s")
bbtime = datetime.datetime.now()
for d in range(1,10):
a.sendAllQueue("hello world"+str(d))
print("100 message send on queue",(datetime.datetime.now() - bbtime).microseconds/1000000,"s")
a.addGroup("chat",660)
a.addGroup("chat",661)
a.addGroup("chat",662)
print(a.setGroup)
a.sendGroup("chat","helloworldsadasdasd")
a.sendGroup("chat","helloworldsadasdasdas")
for _ in range(0,2):
print(a.poll(660))
print(a.poll(661))
print(a.poll(662))
a.removeIdOfGroup("chat",660)
a.sendGroup("chat","helloworldsadasdasd")
a.sendGroup("chat","helloworldsadasdasdas")
for _ in range(0,2):
print(a.poll(660))
print(a.poll(661))
print(a.poll(662))
a.removeGroup("chat")
print(a.setGroup)
print(a.allQueue)
a.removeQueue(660)
a.removeQueue(1)
a.removeQueue(2)
print(a.allQueue)
Metadata
Release files for pythonGroupMsg 0.0.8
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 | Actions |
|---|---|---|---|---|
| pythonGroupMsg-0.0.8.tar.gz | 454.3 kB | Without provenance | Details for pythonGroupMsg-0.0.8.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pythonGroupMsg-0.0.8-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for pythonGroupMsg-0.0.8-py2.py3-none-any.whl |
Total release size: 915.7 kB
Release files / pythonGroupMsg-0.0.8.tar.gz
| Download URL | pythonGroupMsg-0.0.8.tar.gz |
|---|---|
| Size | 454.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
15e38a80a57781bc7768afe1efd3fb29747e3c205b3a5f87d15db8a0e25b0ae1
|
|
BLAKE2b-256 checksum How to use checksums |
f13ddd44d0e6387375ca014324f6ea36e4f7bacc4418d7c6fa811dc883351f50
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1
|
Release files / pythonGroupMsg-0.0.8-py2.py3-none-any.whl
| Download URL | pythonGroupMsg-0.0.8-py2.py3-none-any.whl |
|---|---|
| Size | 461.4 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
7cc53c732d42a8e1597eeb4dea566681e9f13c07bc2384809eba70d896d21d10
|
|
BLAKE2b-256 checksum How to use checksums |
1c09b066def26f1b5e188b6f80508faaecec14a3d99ede642b1c6df37a50e6bc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1
|
Security for pythonGroupMsg 0.0.8
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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.