One of Snappy's key aspects is centered around collecting pieces of content (snaps), which are securely stored on your computer and neatly organized. This is great for fueling your inspiration and keeping track of your snapshots, while keeping the desktop clean. In order to mount the snapshot, you need to create a directory that will be used as the snapshot’s mount point. I suggest using the /private/tmp folder to create a directory named snappy so the mount point will be removed automatically when you log out of your Mac. At the Terminal prompt, enter the following: mkdir /private/tmp/snappy. The recent upgrade of port:snappy had to migrate to CMake but did so using the obsolete cmake 1.0 PG, doesn't follow the out-of-source build dir guideline, and above all lost the shared library which isn't built by default. We’ll show you the directory path where Homebrew keeps packages, and also share a few other ways to see what and where Homebrew has installed anything onto a Mac. This is obviously aimed at more advanced Mac users who rely on the command line and Homebrew, and this won’t be applicable to anyone else. 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
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.
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 |
This is a native .NET port of Google Snappy compression/decompression library. The only implementation that is stable, fast, up to date with latest Snappy improvements, and most importantly does not depend on native Snappy binaries. Works everywhere .NET Core runs.
Release Notes
see release history - https://github.com/aloneguid/IronSnappy/releases
Dependencies
.NETStandard 1.4
- NETStandard.Library(>= 1.6.1)
- System.Memory(>= 4.5.3)
.NETStandard 1.6
- NETStandard.Library(>= 1.6.1)
- System.Memory(>= 4.5.3)
.NETStandard 2.0
- System.Memory(>= 4.5.3)
.NETStandard 2.1
- System.Memory(>= 4.5.3)
Used By
NuGet packages (2)
Showing the top 2 NuGet packages that depend on IronSnappy:
Package | Downloads |
---|---|
Parquet.Net Pure managed .NET library to read and write Apache Parquet files, targeting .NET Standand 1.4 and up.Linux, Windows and Mac are first class citizens, but also works everywhere .NET is running (Android, iOS, IOT). Has zero dependencies on thrid-party libraries or any native code. Provides both low-level access to Apache Parquet files, and high-level utilities for more traditional and humanly understandable row-based access. Includes automatic serializer/deserializer from C# classes into parquet files that works by generating MSIL (bytecode) on the fly and is therefore super fast. | |
AvroConvert |
Snappy Mac Library Folder
GitHub repositories (2)
Snappy Mac
Showing the top 2 popular GitHub repositories that depend on IronSnappy:
Snappy Apple Farm
Repository | Stars |
---|---|
mukunku/ParquetViewer Simple windows desktop application for viewing & querying Apache Parquet files | |
aloneguid/parquet-dotnet |
Version History
Version | Downloads | Last updated |
---|---|---|
1.3.0 | 96,880 | 10/27/2020 |
1.2.4 | 6,765 | 6/25/2020 |
1.2.2 | 195,283 | 5/16/2020 |
1.2.1 | 210 | 5/12/2020 |
1.2.0 | 155 | 5/12/2020 |
1.1.0 | 20,095 | 2/5/2020 |
1.0.1 | 238 | 2/5/2020 |
1.0.0 | 194 | 2/4/2020 |