15-09-2021

Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

Using snappy-java with Tomcat 6 (or higher) Web Server. Simply put the snappy-java's jar to WEB-INF/lib folder of your web application. Usual JNI-library specific problem no longer exists since snappy-java version 1.0.3 or higher can be loaded by multiple class loaders in the same JVM by using native code injection to the parent class loader. It seems you didn't install Snappy-C library Try it.as already a fellow commented for your post UPDATE: See more highly upvoted post below, which includes instructions to install on DEB-based, RPM-based, and Mac OS (Brew). If you ever reboot your computer, the default Apple startup sound will return. But you can use two commands on a jailbroken macOS gadget to turn the custom chime into a permanent boot sound (enter them after Step 6): 1) The first command looks like this: snappy -f / -l. It will turn into a long string as the macOS snap is named. 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.

#55583closeddefect (fixed)

Reported by:Owned by:raimue (Rainer Müller)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: snappy

Attachments (2)

Snappy Mac Library Folder

snappy.diff​ (802 bytes) - added by RJVB (René Bertin)3 years ago.
patch-build-shared+static.diff​ (2.6 KB) - added by RJVB (René Bertin)3 years ago.

Download all attachments as: .zip

Change History (13)

Changed 3 years ago by RJVB (René Bertin)

comment:1follow-up: 2 Changed 3 years ago by ryandesign (Ryan Schmidt)

Cc:ryandesign added
Keywords:haspatch added
Summary:port:snappy : restore shared library build (and use the up-to-date cmake PG)snappy @1.1.7: restore shared library build (and use the up-to-date cmake PG)

comment:2 in reply to: 1 ; follow-up: 3 Changed 3 years ago by ryandesign (Ryan Schmidt)

comment:3 in reply to: 2 ; follow-up: 4 Changed 3 years ago by RJVB (René Bertin)

comment:4 in reply to: 3 ; follow-up: 5 Changed 3 years ago by ryandesign (Ryan Schmidt)

comment:5 in reply to: 4 Changed 3 years ago by RJVB (René Bertin)

Changed 3 years ago by RJVB (René Bertin)

comment:6 Changed 3 years ago by RJVB (René Bertin)

comment:7 Changed 3 years ago by raimue (Rainer Müller)

comment:8 Changed 3 years ago by raimue (Rainer Müller)

comment:9 Changed 3 years ago by RJVB (René Bertin)

comment:10 Changed 3 years ago by raimue (Rainer Müller)

Owner: set to raimue
Resolution:fixed
Status:newclosed

comment:11 Changed 3 years ago by raimue (Rainer Müller)

Note: See TracTickets for help on using tickets.
Latest version

Released:

asyncio async/await nsq support

Project description

if you dont like the pynsq(which use tornado) way to interact with nsq, then this library may be suitable for you

Snappy

you can use this library as the common way to write things

Important

  • it is not stable yet

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 nsqio

Usage examples

All you need is a loop, then enjoy. you can refer to examples, as well.

Consumer:

Producer:

Requirements

Mac
  • Python_ 3.6+ https://www.python.org

  • nsq_ http://nsq.io

  • python-snappy

    1. ubuntu:
      • sudo apt-get install libsnappy-dev
      • pip install python-snappy
    2. centos:
      • sudo yum install snappy-devel
      • pip install python-snappy
    3. mac:
      • brew install snappy # snappy library from Google
      • CPPFLAGS='-I/usr/local/include -L/usr/local/lib' pip install python-snappy

License

The nsqio is offered under MIT license.

Release historyRelease notifications | RSS feed

0.0.12

0.0.11

Snappy Mac

0.0.10

0.0.9

0.0.8

0.0.7

0.0.6

See Full List On Github.com

0.0.5

0.0.4

0.0.3

0.0.2

0.0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for nsqio, version 0.0.12
Filename, sizeFile typePython versionUpload dateHashes
Filename, size nsqio-0.0.12.tar.gz (18.7 kB) File type Source Python version None Upload dateHashes
Close

Hashes for nsqio-0.0.12.tar.gz

Hashes for nsqio-0.0.12.tar.gz
AlgorithmHash digest
SHA25691747bc9614108d2abc21514e20d8448dc087d8623e59f8aba0af2063f908c8e
MD5277fd803cc65d72e5db4729b0e4d71d6
BLAKE2-256941ff021c7d6de92d46bb19d597acf261a73406ec1db6061f0dab389ab76b76b