{ "info": { "author": "Caltech IMSS ADS", "author_email": "imss-ads-staff@caltech.edu", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "Intended Audience :: Science/Research", "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", "Operating System :: POSIX", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Topic :: Scientific/Engineering", "Topic :: Software Development :: Libraries", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "python-ew\n=========\n\nThis is a 2019 updating of the [PythonEw](https://github.com/osop/osop-python-ew) Python 2.x compatible modules by\n[OSOP](http://www.osop.com.pa) to work with Python 3.x\n\n`python-ew` is a Python wrapper for accessing a Earthworm shared memory rings, allowing you to extend the Earthworm\nsystem with Python code.\n\n[Earthworm](http://earthwormcentral.org) itself is a set of open source programs, tools and libraries that are used in\nthe development of software for maintaining seismic networks, research and other seismological and geophysical\napplications.\n\n**Supported message types**:\n\n* `TYPE_HEARTBEAT`: `python_ew.HeartBeatRing`\n* `TYPE_STATUS`: `python_ew.StatusRing`, `python_ew.StatusMessage`\n* `TYPE_TRACEBUF2`: `python_ew.Tracebuf2Ring`, `python_ew.Tracebuf2Message`\n\n\n## Installation\n\nIn order to install `python-ew`, you need to have first installed Earthworm itself. This module builds successfully on\nLinux against `earthworm-7.9` compiled with `EWBITS=64` and with \"`-m64 -fPIC`\" added to `GLOBALFLAGS` in\n`${EW_HOME}/environment/ew_linux.bash`. Your milage may vary for other versions of Earthworm, or on other platforms.\n\nTo compile the `python-ew` C extensions, we need to find the Earthworm `.o` and `.h` files. We'll look in the following\nplaces:\n\nLibraries:\n\n* `${EW_HOME}/lib`\n* `${EW_HOME}/earthworm_7.9/lib`\n\nInclude files:\n\n* `${EW_HOME}/include`\n* `${EW_HOME}/earthworm_7.9/include`\n\nThus, ensure that the `EW_HOME` environment variable is set apporpriately.\n\nThen:\n\n```\npip install python-ew\n```\n\n## Example usage\n\n### Reading TRACEBUF2 messages\n\nLet's say your ring with `TYPE_TRACEBUF2` messages is named `WAVE_RING`, and you want to get all messages regardless of\nwhat module created them:\n\n```\n> python3\n>>> from python_ew import Tracebuf2Ring\n>>> ring = Tracebuf2Ring('WAVE_RING', 'MOD_WILDCARD')\n>>> messages = ring.read()\n>>> messages[0]\n{'pinno': 0, 'nsamp': 100, 'starttime': 1564770703.968393, 'endtime': 1564770704.958393, 'samprate': 100.0, 'sta': 'FOO', 'net': 'XX', 'chan': 'HNN', 'loc': '--', 'version': '20', 'datatype': 'i4', 'quality': '', 'pad': '', 'samples': [-22129, -22130, -22131, -22132, -22129, -22130, -22128, -22128, -22130, -22128, -22130, -22128, -22128, -22129, -22129, -22129, -22129, -22130, -22127, -22128, -22129, -22128, -22128, -22130, -22131, -22128, -22131, -22131, -22128, -22128, -22132, -22130, -22125, -22128, -22129, -22126, -22128, -22130, -22133, -22132, -22131, -22132, -22130, -22131, -22128, -22129, -22132, -22127, -22129, -22129, -22129, -22132, -22130, -22127, -22129, -22131, -22127, -22128, -22131, -22128, -22128, -22130, -22129, -22130, -22129, -22128, -22133, -22128, -22129, -22133, -22131, -22130, -22128, -22131, -22130, -22128, -22132, -22132, -22129, -22127, -22129, -22132, -22130, -22132, -22133, -22128, -22129, -22130, -22129, -22130, -22128, -22129, -22130, -22131, -22130, -22128, -22129, -22130, -22129, -22129]}\n````", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/caltechads/python-ew", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "python-ew", "package_url": "https://pypi.org/project/python-ew/", "platform": "", "project_url": "https://pypi.org/project/python-ew/", "project_urls": { "Bug Tracker": "https://github.com/caltechads/python-ew/issues", "Documentation": "https://github.com/caltechads/python-ew", "Home Page": "https://github.com/caltechads/python-ew", "Homepage": "https://github.com/caltechads/python-ew" }, "release_url": "https://pypi.org/project/python-ew/2.1.3/", "requires_dist": null, "requires_python": ">=3.6", "summary": "Allow reading from and writing to Earthworm shared memory ring buffers.", "version": "2.1.3" }, "last_serial": 5858362, "releases": { "2.1.1": [ { "comment_text": "", "digests": { "md5": "a4e55a5099f5ba80059adeb7874a6f38", "sha256": "22e5cf467b3d329f47c1e98f18cdaa8c0a55623602a83655354ae1af9d1aa0fc" }, "downloads": -1, "filename": "python_ew-2.1.1.tar.gz", "has_sig": false, "md5_digest": "a4e55a5099f5ba80059adeb7874a6f38", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 26413, "upload_time": "2019-09-19T18:54:48", "url": "https://files.pythonhosted.org/packages/93/30/c6fd167a0b1f7b8bb38842291e866ae8aaa59042a583ed11954ba70bf7e9/python_ew-2.1.1.tar.gz" } ], "2.1.2": [ { "comment_text": "", "digests": { "md5": "4d0128f6f101b5a1da562ad55cfe0b38", "sha256": "e4a77305ff8724ea083fe19e0ff339427cc0149068132642a2289a54d2cd3753" }, "downloads": -1, "filename": "python_ew-2.1.2.tar.gz", "has_sig": false, "md5_digest": "4d0128f6f101b5a1da562ad55cfe0b38", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 26410, "upload_time": "2019-09-19T19:07:11", "url": "https://files.pythonhosted.org/packages/8b/c9/98b765ee80055cd6e832c3e87365073136586b9b508d13e7e790f9cd480a/python_ew-2.1.2.tar.gz" } ], "2.1.3": [ { "comment_text": "", "digests": { "md5": "78216878c3383d280a79aea327aedd97", "sha256": "613c79949bfa0f86d0f04ee642b50c546438a599cba73a508a27b3916768d62d" }, "downloads": -1, "filename": "python_ew-2.1.3.tar.gz", "has_sig": false, "md5_digest": "78216878c3383d280a79aea327aedd97", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 26565, "upload_time": "2019-09-19T19:50:04", "url": "https://files.pythonhosted.org/packages/12/34/cfff41edd247d125b31f08ebdb015944307bd3059bdb19240fc313aaf72a/python_ew-2.1.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "78216878c3383d280a79aea327aedd97", "sha256": "613c79949bfa0f86d0f04ee642b50c546438a599cba73a508a27b3916768d62d" }, "downloads": -1, "filename": "python_ew-2.1.3.tar.gz", "has_sig": false, "md5_digest": "78216878c3383d280a79aea327aedd97", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 26565, "upload_time": "2019-09-19T19:50:04", "url": "https://files.pythonhosted.org/packages/12/34/cfff41edd247d125b31f08ebdb015944307bd3059bdb19240fc313aaf72a/python_ew-2.1.3.tar.gz" } ] }