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
File details
Details for the file python_ics-4.5.post2.tar.gz
.
File metadata
- Download URL: python_ics-4.5.post2.tar.gz
- Upload date:
- Size: 89.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/41.1.0 requests-toolbelt/0.8.0 tqdm/4.14.0 CPython/3.4.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 30ca52d5cdcdca2c16e76a0789b6bed5f3969364aecb935ebbcd443f64fc25a3 |
|
MD5 | 8db020a1001bff8666865709f2ca25d9 |
|
BLAKE2b-256 | c4640a14a7502d114c78e976503dd4d49c13fb5105807d9d72d1ced23c224521 |
Provenance
File details
Details for the file python_ics-4.5.post2-cp38-cp38-win_amd64.whl
.
File metadata
- Download URL: python_ics-4.5.post2-cp38-cp38-win_amd64.whl
- Upload date:
- Size: 116.8 kB
- Tags: CPython 3.8, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/41.1.0 requests-toolbelt/0.8.0 tqdm/4.14.0 CPython/3.4.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1e29597799cf32d03b00dc7b5979803ccafd9d644a898d956e6cbd4269d3cc06 |
|
MD5 | ed325b0afab583cfb59436878749138d |
|
BLAKE2b-256 | 8310645daf221284c974b0d21d0c2cacca4e097c7dcd5ea3d672aa1532c4973c |
Provenance
File details
Details for the file python_ics-4.5.post2-cp38-cp38-win32.whl
.
File metadata
- Download URL: python_ics-4.5.post2-cp38-cp38-win32.whl
- Upload date:
- Size: 100.9 kB
- Tags: CPython 3.8, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/41.1.0 requests-toolbelt/0.8.0 tqdm/4.14.0 CPython/3.4.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 129b59c4b8d55caa13f5f25cba289d5e9168896c86d1ea8b2e5ff397251da94e |
|
MD5 | d223c8f5a2d3a07e04f9a266a0ffac22 |
|
BLAKE2b-256 | 6008540a408b2f88d74a242497114cd3d1419d21160aa6fe56197ac3295ab476 |
Provenance
File details
Details for the file python_ics-4.5.post2-cp37-cp37m-win_amd64.whl
.
File metadata
- Download URL: python_ics-4.5.post2-cp37-cp37m-win_amd64.whl
- Upload date:
- Size: 115.3 kB
- Tags: CPython 3.7m, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/41.1.0 requests-toolbelt/0.8.0 tqdm/4.14.0 CPython/3.4.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4fe9b3f9d26b54c437596c568ab27cbf4d53e75110949c553988be851d7636f3 |
|
MD5 | 2f747706a96e6724c600a1a6b175813e |
|
BLAKE2b-256 | fd0e446c66784a1c341d1f7cb00a203e095e61c7ae1426e6f55d2b6d1231c37f |
Provenance
File details
Details for the file python_ics-4.5.post2-cp37-cp37m-win32.whl
.
File metadata
- Download URL: python_ics-4.5.post2-cp37-cp37m-win32.whl
- Upload date:
- Size: 99.9 kB
- Tags: CPython 3.7m, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/41.1.0 requests-toolbelt/0.8.0 tqdm/4.14.0 CPython/3.4.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7b71b95051fecf7c6da9e405a5b41ba4d577b4c0d9e2b8a5bd586261d6fb9860 |
|
MD5 | 1e15805f30126263fc9f40a3cd756e35 |
|
BLAKE2b-256 | 883e6d15839e9669a82c1cda2582ea252be22a9866cc50b3697475c39942f8e3 |
Provenance
File details
Details for the file python_ics-4.5.post2-cp36-cp36m-win_amd64.whl
.
File metadata
- Download URL: python_ics-4.5.post2-cp36-cp36m-win_amd64.whl
- Upload date:
- Size: 115.3 kB
- Tags: CPython 3.6m, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/41.1.0 requests-toolbelt/0.8.0 tqdm/4.14.0 CPython/3.4.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e8dc13f2fa43d1b7e2dacb68cbc0f2bb0f279eaecb4a466ba60a64ec9d49028f |
|
MD5 | c4a3f9bd19882abfe6a0a2130b7ee0e5 |
|
BLAKE2b-256 | e3c2e7d2db27e82254d74f3f294980b4c4dd9347ff0485eb4b51d239b00f1879 |
Provenance
File details
Details for the file python_ics-4.5.post2-cp36-cp36m-win32.whl
.
File metadata
- Download URL: python_ics-4.5.post2-cp36-cp36m-win32.whl
- Upload date:
- Size: 99.9 kB
- Tags: CPython 3.6m, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/41.1.0 requests-toolbelt/0.8.0 tqdm/4.14.0 CPython/3.4.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e198e2ce15f6d43fe02867cf1125bdeb052b6c459d8ac2c375b3614bdfd47a7c |
|
MD5 | 987ca68e4644a7572f507d333a45bd12 |
|
BLAKE2b-256 | ceacd79574ac70657a45c403ddd037b458a2d59af7d70057a5da311a09469db0 |
Provenance
File details
Details for the file python_ics-4.5.post2-cp35-cp35m-win_amd64.whl
.
File metadata
- Download URL: python_ics-4.5.post2-cp35-cp35m-win_amd64.whl
- Upload date:
- Size: 109.1 kB
- Tags: CPython 3.5m, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/41.1.0 requests-toolbelt/0.8.0 tqdm/4.14.0 CPython/3.4.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d0fa0d67dd906b646f6c3ee70f15862c130f5708255cff796facf639258c5947 |
|
MD5 | 08a3828304b0fb745b89340e82c7d021 |
|
BLAKE2b-256 | c4388dab18320d5f6d8fc284aad2cff38d7732673feef3947bc58f14580805d2 |
Provenance
File details
Details for the file python_ics-4.5.post2-cp35-cp35m-win32.whl
.
File metadata
- Download URL: python_ics-4.5.post2-cp35-cp35m-win32.whl
- Upload date:
- Size: 96.4 kB
- Tags: CPython 3.5m, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/41.1.0 requests-toolbelt/0.8.0 tqdm/4.14.0 CPython/3.4.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b637c3f9c4c054cec4819e474804567f9311bab811c42ae5189aced8c13d18f7 |
|
MD5 | 216a79fe445d6ce55449c67dbe735ac5 |
|
BLAKE2b-256 | 86dac9da0904254ca51d5bf400fe150531c7de0c1210d6700a436da2c1795b9c |
Provenance
File details
Details for the file python_ics-4.5.post2-cp34-cp34m-win_amd64.whl
.
File metadata
- Download URL: python_ics-4.5.post2-cp34-cp34m-win_amd64.whl
- Upload date:
- Size: 128.2 kB
- Tags: CPython 3.4m, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/41.1.0 requests-toolbelt/0.8.0 tqdm/4.14.0 CPython/3.4.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 00574c30dd8b8cff032bdbeada7471b07a385759f20427d1e9671a47add375c6 |
|
MD5 | 02b416cad62f0229e7e02b2fd72efe31 |
|
BLAKE2b-256 | 2118260a9f783bd72388689b2e21e9bfee598f379d0963dd2fe56c9beda2a659 |
Provenance
File details
Details for the file python_ics-4.5.post2-cp34-cp34m-win32.whl
.
File metadata
- Download URL: python_ics-4.5.post2-cp34-cp34m-win32.whl
- Upload date:
- Size: 117.9 kB
- Tags: CPython 3.4m, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/41.1.0 requests-toolbelt/0.8.0 tqdm/4.14.0 CPython/3.4.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 129cc43bac9b2e3a79ede294ed9723f691ced3dd889213ef1bdfd2a6d4b42209 |
|
MD5 | e7dfb9fe164f2c6a72820133e96188fb |
|
BLAKE2b-256 | 08fcc7176c6a773082d6e37ba52d5399558d748f8239f615be0fba6cc2a20023 |