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) 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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

python_ics-907.5.post1-cp310-cp310-macosx_10_13_universal2.whl (964.8 kB view details)

Uploaded CPython 3.10macOS 10.13+ universal2 (ARM64, x86-64)

python_ics-907.5.post1-cp39-cp39-macosx_10_13_universal2.whl (964.8 kB view details)

Uploaded CPython 3.9macOS 10.13+ universal2 (ARM64, x86-64)

python_ics-907.5.post1-cp38-cp38-macosx_11_0_universal2.whl (965.0 kB view details)

Uploaded CPython 3.8macOS 11.0+ universal2 (ARM64, x86-64)

python_ics-907.5.post1-cp37-cp37m-macosx_10_13_x86_64.whl (862.8 kB view details)

Uploaded CPython 3.7mmacOS 10.13+ x86-64

File details

Details for the file python_ics-907.5.post1-cp310-cp310-macosx_10_13_universal2.whl.

File metadata

  • Download URL: python_ics-907.5.post1-cp310-cp310-macosx_10_13_universal2.whl
  • Upload date:
  • Size: 964.8 kB
  • Tags: CPython 3.10, macOS 10.13+ universal2 (ARM64, x86-64)
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/29.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.6 tqdm/4.61.2 importlib-metadata/4.6.1 keyring/23.0.1 rfc3986/1.5.0 colorama/0.4.4 CPython/3.7.9

File hashes

Hashes for python_ics-907.5.post1-cp310-cp310-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 8c4378438a2ed6806c5dedf4bc39d73f548996b987d52ea4298c71d2d8a1fbce
MD5 f5d7051ab8a7344aca01044489cd1807
BLAKE2b-256 e427c5612c6d9a8ee7fd9e7a36d40b0d297f8d9522a3ac2209d559ab0fcadf33

See more details on using hashes here.

File details

Details for the file python_ics-907.5.post1-cp39-cp39-macosx_10_13_universal2.whl.

File metadata

  • Download URL: python_ics-907.5.post1-cp39-cp39-macosx_10_13_universal2.whl
  • Upload date:
  • Size: 964.8 kB
  • Tags: CPython 3.9, macOS 10.13+ universal2 (ARM64, x86-64)
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/29.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.6 tqdm/4.61.2 importlib-metadata/4.6.1 keyring/23.0.1 rfc3986/1.5.0 colorama/0.4.4 CPython/3.7.9

File hashes

Hashes for python_ics-907.5.post1-cp39-cp39-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 e77c85881bcc6c8f347ee052ee9a4d17092a4c1ff96dee5ecf186fbf7e3bc087
MD5 d4ab1d7d9b80d37e788d8da6f4700cc1
BLAKE2b-256 eb7727152777aca041fab310623771e28823aa975fb52cf598e92065304e3774

See more details on using hashes here.

File details

Details for the file python_ics-907.5.post1-cp38-cp38-macosx_11_0_universal2.whl.

File metadata

  • Download URL: python_ics-907.5.post1-cp38-cp38-macosx_11_0_universal2.whl
  • Upload date:
  • Size: 965.0 kB
  • Tags: CPython 3.8, macOS 11.0+ universal2 (ARM64, x86-64)
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/29.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.6 tqdm/4.61.2 importlib-metadata/4.6.1 keyring/23.0.1 rfc3986/1.5.0 colorama/0.4.4 CPython/3.7.9

File hashes

Hashes for python_ics-907.5.post1-cp38-cp38-macosx_11_0_universal2.whl
Algorithm Hash digest
SHA256 68fb89054325306e3a39198622d3a2c5972e4e6171f38bbf6f761ffeef3e9eff
MD5 cb9a570fa64eca7eed8190204cbac40a
BLAKE2b-256 398b1197c9efa71b83b2d2caa8adb1b11958faa5074f594111d82430e8d5542b

See more details on using hashes here.

File details

Details for the file python_ics-907.5.post1-cp37-cp37m-macosx_10_13_x86_64.whl.

File metadata

  • Download URL: python_ics-907.5.post1-cp37-cp37m-macosx_10_13_x86_64.whl
  • Upload date:
  • Size: 862.8 kB
  • Tags: CPython 3.7m, macOS 10.13+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/29.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.6 tqdm/4.61.2 importlib-metadata/4.6.1 keyring/23.0.1 rfc3986/1.5.0 colorama/0.4.4 CPython/3.7.9

File hashes

Hashes for python_ics-907.5.post1-cp37-cp37m-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 8f446ea7b47c05ea44b1fe50d5ae0d2f9959731bf9dfc090b96021197b8da22e
MD5 d217c1a329d6a834994833ee5f7d65c3
BLAKE2b-256 f3ac1a598bf5f252a754b52f6bdc1e82c8fe29f30796ac884e52728dc1fed620

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page