Download the file for your platform. If you're not sure which to choose, learn more about installing packages. Snappy for iOS allows you to easily capture, annotate, share and manage screenshots. With Cloud Drive enabled, your snaps are synced across all your Apple devices. Portable across various operating systems; Snappy-java contains native libraries built for Window/Mac/Linux, etc. Snappy-java loads one of these libraries according to your machine environment (It looks system properties, os.name and os.arch). If no native library for your platform is found, snappy-java will fallback to pure-java implementation.
Latest versionReleased:
asyncio async/await nsq support
Project description
Snappy Mac Library Audio
async nsq with asyncio
if you dont like the pynsq(which use tornado) way to interact with nsq, then this library may be suitable for you
you can use this library as the common way to write things
Important
from version 1.0.0 asyncnsq has a break change in api
it is not stable yet
you may want to use stable ' pip install asyncnsq0.4.5'
Features
Http Client
- support all the method nsq http supplied
Tcp Client
Connection
- low level connection.
Reader
reader from both lookupd for auto finding nsqd
list of known nsqd but they can not use together.
above two can't use together
Writer
- all the common method for nsqd writer
Next Features
different reader protocol support
more doc to write
more tests
Install
pip install asyncnsq
Usage examples
All you need is a loop, then enjoy. you can refer to examples, as well.
Snappy Mac Library Folder
Consumer:
Producer:
Requirements
Python_ 3.6+ https://www.python.org
nsq_ http://nsq.io
python-snappy
- ubuntu:
- sudo apt-get install libsnappy-dev
- pip install python-snappy
- centos:
- sudo yum install snappy-devel
- pip install python-snappy
- mac:
- brew install snappy # snappy library from Google
- CPPFLAGS='-I/usr/local/include -L/usr/local/lib' pip install python-snappy
- ubuntu:
Running Tests
install nsq requirements
- install nsqhttps://nsq.io/deployment/installing.html
install requirements (in a virtual environment)
pip install aiohttp python-snappy
pip install pytest
dev test package if you want autotest support
run the auth server in a separate terminal session
python -m aiohttp.web -H localhost -P 8080 asyncnsq.http.auth:create_dev_auth_server
run nsq in separate terminal sessions
- if you've built nsq through
make
,cd
into thebuild
directory of nsq ./nsqlookupd
./nsqd --lookupd-tcp-address=localhost:4160 -auth-http-address=localhost:8080
- if you've built nsq through
run tests
python runtests.py
example output:
pytest
just pytest will do all the trick
License
The asyncnsq is offered under MIT license.
Release historyRelease notifications | RSS feed
1.2.1
1.2.0
1.1.2
1.1.1
1.1.0
1.0.1
1.0.0
0.4.6
0.4.5
0.4.4
0.4.3
0.4.2
0.4.1
0.4.0
0.3.9
0.3.8
0.3.7
0.3.6
0.3.5
0.3.4
0.3.3
0.3.0
0.2.1
0.2.0
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Filename, size | File type | Python version | Upload date | Hashes |
---|---|---|---|---|
Filename, size asyncnsq-1.2.1-py3-none-any.whl (35.1 kB) | File type Wheel | Python version py3 | Upload date | Hashes |
Hashes for asyncnsq-1.2.1-py3-none-any.whl
Algorithm | Hash digest |
---|---|
SHA256 | c8fb9a3ba5c2d23a9f4c900d7083e7816aa16e2667bb657054d264c8174a3870 |
MD5 | 240f4406e60c8cbae1a0044867aa75de |
BLAKE2-256 | 66ee57440b432d95147851e04f4af442fce9e26d074719ee9876f502c6ab2bc1 |