Skip to main content

numpy array over zmq sockets

Project description

Zmqnumpy module implements a series of functions used to exchange numpy ndarrays between U{zeromq<http://www.zeromq.org>} sockets. Serializtion of numpy arrays happens using the numpy.ndarray.tostring method which preserves portability to standard C binary format, enabling data exchange with different programming languages. A very simple protocol is defined in order to exchange array data, the multipart messages will be composed of:

  1. identifier string name

  2. the numpy array element type (dtype) in its string representation

  3. numpy array shape encoded as a binary numpy.int32 array

  4. the array data encoded as string using numpy.ndarray.tostring()

This protocol guarantees that numpy array can be carried around and recostructed uniquely without errors on both ends of a connected pair enabling an efficient interchange of data between processes and nodes.

@author: Marco Bartolini @contact: marco.bartolini@gmail.com @version: 0.1

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

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

Source Distribution

zmqnumpy-0.1.tar.gz (3.1 kB view details)

Uploaded Source

File details

Details for the file zmqnumpy-0.1.tar.gz.

File metadata

  • Download URL: zmqnumpy-0.1.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for zmqnumpy-0.1.tar.gz
Algorithm Hash digest
SHA256 0aa74ecb78ce447124d34222437db19862895287bcdbd0ec166cd9bedb605667
MD5 c8afdfa6ea49930d0031d6a45464f838
BLAKE2b-256 b1eb19c027d23915a1d5a189116df4d873cd56018d55bbc01e639811e5d943d3

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page