Skip to main content

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


Download files

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

Source Distribution

python_ics-904.18.tar.gz (99.1 kB view details)

Uploaded Source

Built Distributions

python_ics-904.18-cp39-cp39-win_amd64.whl (165.8 kB view details)

Uploaded CPython 3.9 Windows x86-64

python_ics-904.18-cp39-cp39-win32.whl (154.2 kB view details)

Uploaded CPython 3.9 Windows x86

python_ics-904.18-cp38-cp38-win_amd64.whl (162.6 kB view details)

Uploaded CPython 3.8 Windows x86-64

python_ics-904.18-cp38-cp38-win32.whl (154.5 kB view details)

Uploaded CPython 3.8 Windows x86

python_ics-904.18-cp37-cp37m-win_amd64.whl (188.8 kB view details)

Uploaded CPython 3.7m Windows x86-64

python_ics-904.18-cp37-cp37m-win32.whl (154.3 kB view details)

Uploaded CPython 3.7m Windows x86

python_ics-904.18-cp36-cp36m-win_amd64.whl (188.8 kB view details)

Uploaded CPython 3.6m Windows x86-64

python_ics-904.18-cp36-cp36m-win32.whl (174.1 kB view details)

Uploaded CPython 3.6m Windows x86

File details

Details for the file python_ics-904.18.tar.gz.

File metadata

  • Download URL: python_ics-904.18.tar.gz
  • Upload date:
  • Size: 99.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.4.2 requests/2.22.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.7.4

File hashes

Hashes for python_ics-904.18.tar.gz
Algorithm Hash digest
SHA256 fbe5d256daf204677718d1c4118d731874528124109a160fb085e551fb1225bf
MD5 1ea23dcbac8c7a4c2306216540044cf6
BLAKE2b-256 fa5e5896d61b827080a59a914ad3e86efc6efae8f8956876112c3fdf098165f2

See more details on using hashes here.

Provenance

File details

Details for the file python_ics-904.18-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: python_ics-904.18-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 165.8 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.4.2 requests/2.22.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.7.4

File hashes

Hashes for python_ics-904.18-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 fde8e8904fc82411767b3678f892d0ea0500332b4744f86a334a2998183d3c30
MD5 9be540591f9d040308c3db623f6f2faa
BLAKE2b-256 e8137e78f48e369a31b9644353500c39831d7206e9ab06a695463ec9e2e5fc34

See more details on using hashes here.

Provenance

File details

Details for the file python_ics-904.18-cp39-cp39-win32.whl.

File metadata

  • Download URL: python_ics-904.18-cp39-cp39-win32.whl
  • Upload date:
  • Size: 154.2 kB
  • Tags: CPython 3.9, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.4.2 requests/2.22.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.7.4

File hashes

Hashes for python_ics-904.18-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 c466b94b68bf3db1cc44be310570f650be98aac075602afc48240af7c1cce2f5
MD5 886c1b8770f0b67500c77dca07a0a031
BLAKE2b-256 04100dd8a8460d43587015fba53f7ae65dceb021c5b3e214a6852be374df7adf

See more details on using hashes here.

Provenance

File details

Details for the file python_ics-904.18-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: python_ics-904.18-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 162.6 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.4.2 requests/2.22.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.7.4

File hashes

Hashes for python_ics-904.18-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 be7fc276c1be0369ba53e2c4a262d00b2d4d5e37cf5590a7f70d406066e9d84a
MD5 645ec253934170038da6ba9119769ad8
BLAKE2b-256 825e0d078d680be528502230bcc9b529af8ce180ad7b8df538ba151e34dd1a11

See more details on using hashes here.

Provenance

File details

Details for the file python_ics-904.18-cp38-cp38-win32.whl.

File metadata

  • Download URL: python_ics-904.18-cp38-cp38-win32.whl
  • Upload date:
  • Size: 154.5 kB
  • Tags: CPython 3.8, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.4.2 requests/2.22.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.7.4

File hashes

Hashes for python_ics-904.18-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 f29abb91809a24997711758ebe7a9a8ebbdb33d91ab9580471d1df2263201589
MD5 5f338fb95661ef157b6b1ef7f361a5bb
BLAKE2b-256 d9acfeba027753b81060cbf74588a7bf051204a0c7492e1e62d9e0eedd4eb956

See more details on using hashes here.

Provenance

File details

Details for the file python_ics-904.18-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: python_ics-904.18-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 188.8 kB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.4.2 requests/2.22.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.7.4

File hashes

Hashes for python_ics-904.18-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 3c10bd0580796e9cef95d7be494df741a13a631c93a49378e4a34d85c369be51
MD5 accc17a36e9915fc19efcd1ff640a2e2
BLAKE2b-256 423da3cce921946a846d3d27f7a835ad1902f40e686fd58c80d59632322e2499

See more details on using hashes here.

Provenance

File details

Details for the file python_ics-904.18-cp37-cp37m-win32.whl.

File metadata

  • Download URL: python_ics-904.18-cp37-cp37m-win32.whl
  • Upload date:
  • Size: 154.3 kB
  • Tags: CPython 3.7m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.7.9

File hashes

Hashes for python_ics-904.18-cp37-cp37m-win32.whl
Algorithm Hash digest
SHA256 242cd8b4e83cae8ea4f50a49485b236bd4134769aafb8b21e23e34718867da23
MD5 74b0c007800de4420e576929aaf5b7a5
BLAKE2b-256 f6d44769a6eb74c3d3f15f8c7b2d19d269eac2ea54ecf8be06837b2334e39b7f

See more details on using hashes here.

Provenance

File details

Details for the file python_ics-904.18-cp36-cp36m-win_amd64.whl.

File metadata

  • Download URL: python_ics-904.18-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 188.8 kB
  • Tags: CPython 3.6m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.4.2 requests/2.22.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.7.4

File hashes

Hashes for python_ics-904.18-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 0b45534ae32c0f9c041e72128a6dead19531b439093f98e5ea08587e4152fd7e
MD5 245b1980f71d6dde3f7d2071b66902d4
BLAKE2b-256 7e2d11c490b9b6d90e246a00a24e5ed34b9ef3a5b879dbe1c8e5d7e0610d9585

See more details on using hashes here.

Provenance

File details

Details for the file python_ics-904.18-cp36-cp36m-win32.whl.

File metadata

  • Download URL: python_ics-904.18-cp36-cp36m-win32.whl
  • Upload date:
  • Size: 174.1 kB
  • Tags: CPython 3.6m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.4.2 requests/2.22.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.7.4

File hashes

Hashes for python_ics-904.18-cp36-cp36m-win32.whl
Algorithm Hash digest
SHA256 492dfab5052571677ac96db4aa83b651c7b46efaf71c106cfcfbdd0efc7a8e2b
MD5 c275b4187b6676109e4427ac40a5139a
BLAKE2b-256 1839781a41aa35096ba0952dc8fdb5d33439db6583de2c6bd89bb84238a16178

See more details on using hashes here.

Provenance

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