-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
44 lines (40 loc) · 1.7 KB
/
setup.py
File metadata and controls
44 lines (40 loc) · 1.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
from distutils.core import setup
setup(name='zmqnumpy',
version='0.2',
author="Marco Bartolini",
author_email = "marco.bartolini@gmail.com",
url = "https://github.com/flyingfrog81/zmqnumpy/",
download_url = "",
license = "mit",
py_modules = ['zmqnumpy'],
requires = ["numpy", "pyzmq"],
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python",
],
description="numpy array over zmq sockets",
long_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.2
""",
)