Library for interfacing with Intrepid devices in Python
Project description
# python_ics
Python C Code module for interfacing to the icsneo40 dynamic library. Code tries to respect PEP 8 (https://www.python.org/dev/peps/pep-0008/). Function naming convention does not follow the tradition c style icsneo40 naming convention as the python_ics module name acts as the namespace (icsneo portion of the function) and function names are suppose to be lowercase with underscores instead of mixedCase like icsneo API.
# Installing
pip install python_ics
Placing icsneo40.dll in the system path as the api uses this DLL extensively.
# How to use
#### Documentation
http://python-ics.readthedocs.io/
#### C API can be mimiced almost identically by doing the following:
>>> import ics as icsneo >>> devices = icsneo.FindNeoDevices() >>> for device in devices: ... print(device.Name, device.SerialNumber) ... neoVI FIRE 59886
#### Recommended Python way by doing the following:
>>> import ics >>> devices = ics.find_devices() >>> for device in devices: ... print(device.Name, device.SerialNumber) ... neoVI FIRE 59886
It should be noted that ics.NeoDevice is used a little bit differently than the C API. ics.NeoDevice contains two extra members:
ics.NeoDevice.AutoHandleClose and ics.NeoDevice._Handle The handle normally returned from icsneoOpenNeoDevice() is stored inside _Handle and setting AutoHandleClose to True (Default) will automatically close the handle when the ics.NeoDevice goes out of scope.
# License - MIT
Copyright (c) 2017 Intrepid Control Systems, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for python_ics-4.3-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a1780af42181f71f8c19349fb5f0c3e6f77799de3fff52d137aa0b41a5a5d9f6 |
|
MD5 | 51648d466e9bee43612324fb2caf902b |
|
BLAKE2b-256 | 7ad4a6277c9e8f54f2f4bff95029ea679642e51aea6f985f8481a7c738793dd3 |
Hashes for python_ics-4.3-cp38-cp38-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 93dd59d9974d9b161ebb39703e0e35c4a6ef86630338e29aa355f3b9cf3539a2 |
|
MD5 | d00ea6be3ee8da7a7bc556299fbf7201 |
|
BLAKE2b-256 | 436066ba8cddea29b2aab8989ceadc721736b30442055d0f1f74c759ffd1dc97 |
Hashes for python_ics-4.3-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b35db404995627156e84aa393765b6911794ad71ea5cc7cd36d35d97bc5e6d90 |
|
MD5 | f317e3feda045aecacbede02148416bc |
|
BLAKE2b-256 | 72432d616b9d36470d8c287ea44ace2de4548ce80a55344a1f7ec3397346e30e |
Hashes for python_ics-4.3-cp37-cp37m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3690a32475edd05c30986a5c1615261e4b30dbfab712b9f7aa89b79600ab9a1b |
|
MD5 | 6d93892f4dec20adb3b9a45ef4cad995 |
|
BLAKE2b-256 | 448c0787d8ebf6c1da509397249c4b4de535c36bc2ac8dba38817a9535f88d27 |
Hashes for python_ics-4.3-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e9ed83044d605387b253bf3d712e44de43009c0fd0cd342d2b53a54337980573 |
|
MD5 | 8880131ea7691a432479248e7daab1eb |
|
BLAKE2b-256 | 15ec11b06783db26a34df8e792025a1d7dbbb370619cce7e1f48fae48793cbc9 |
Hashes for python_ics-4.3-cp36-cp36m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 64bbb47c60c7fe2acab7d2313cd60bcb56bcd61442d5e9cf27923432cd4d1ed6 |
|
MD5 | 6d382df7b81e0e04530058f073ef80a8 |
|
BLAKE2b-256 | 74a5cf0cfe91cdf4b36cb7b57be6183071028b8c469aabb427ad6dc1801c80ca |
Hashes for python_ics-4.3-cp35-cp35m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 909f4d52504eff3a98ee31779b5437a2974182bf89aa1a885ebeb9e0e12ba4d2 |
|
MD5 | b6d47764c8ed6ea5b252516fc89e1271 |
|
BLAKE2b-256 | c535e17202e52168a74ee42dbf54a19bbc996be0714c4312e52dc80749e659fb |
Hashes for python_ics-4.3-cp35-cp35m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 021a7f363943ccb312663219c178ec44e264393da666a33825555ee0cda74d85 |
|
MD5 | b475044d6080751899fbf2474639d5ad |
|
BLAKE2b-256 | cf5c7b6de5f80cec8cf172b53a5a623e0ad13b04c87b7e56f8aa05a571ebc3a2 |
Hashes for python_ics-4.3-cp34-cp34m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 28af2208b767fd0fc0c3430efd9842addf3d5904f2a62817054c22a8f68eb6e7 |
|
MD5 | 0fb2491f0d583c0a95c9a4598bd94372 |
|
BLAKE2b-256 | 951f5724c053c690ff3edeb6433215926381a3742d89be8ae8c0d2612680cedc |
Hashes for python_ics-4.3-cp34-cp34m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 38c0b34e4e1e0915d06987ac37cd96e29f0dceca06c9eda98de022938ba708bc |
|
MD5 | 06a8dea783b9028abe9dece4ae71a8fe |
|
BLAKE2b-256 | c2b4baae83d67241cb02fe63d7955a865c5ca0033501a2dfb54e80ea3f422de6 |