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


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

python_ics-903.17.post2.tar.gz (94.6 kB view details)

Uploaded Source

Built Distributions

python_ics-903.17.post2-cp39-cp39-win_amd64.whl (165.1 kB view details)

Uploaded CPython 3.9Windows x86-64

python_ics-903.17.post2-cp39-cp39-win32.whl (152.1 kB view details)

Uploaded CPython 3.9Windows x86

python_ics-903.17.post2-cp38-cp38-win_amd64.whl (160.5 kB view details)

Uploaded CPython 3.8Windows x86-64

python_ics-903.17.post2-cp38-cp38-win32.whl (152.5 kB view details)

Uploaded CPython 3.8Windows x86

python_ics-903.17.post2-cp37-cp37m-win_amd64.whl (186.7 kB view details)

Uploaded CPython 3.7mWindows x86-64

python_ics-903.17.post2-cp37-cp37m-win32.whl (172.0 kB view details)

Uploaded CPython 3.7mWindows x86

python_ics-903.17.post2-cp36-cp36m-win_amd64.whl (186.7 kB view details)

Uploaded CPython 3.6mWindows x86-64

python_ics-903.17.post2-cp36-cp36m-win32.whl (172.0 kB view details)

Uploaded CPython 3.6mWindows x86

File details

Details for the file python_ics-903.17.post2.tar.gz.

File metadata

  • Download URL: python_ics-903.17.post2.tar.gz
  • Upload date:
  • Size: 94.6 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-903.17.post2.tar.gz
Algorithm Hash digest
SHA256 c6a47b52b677bc0c217c62bf4e03adeefd00bc8c8b536a35af63df60fe7c09f2
MD5 df5da6782c846816ec89205d31e07f4f
BLAKE2b-256 c6afeb3fe06194c36c7464455f05124d5d01d4bef2e265a7bc91561a5d0b3026

See more details on using hashes here.

File details

Details for the file python_ics-903.17.post2-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: python_ics-903.17.post2-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 165.1 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.5.0.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.8.0

File hashes

Hashes for python_ics-903.17.post2-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 daefa24ae556764e2778f46214a1f936af2573b70a8557f2942cf0cfddcdc3d1
MD5 3598cf5948f512273b4af782371929dc
BLAKE2b-256 34d4832ef8861b77bbfcb82e8eb48a74a60703426c52c3a638e7405e205c2e35

See more details on using hashes here.

File details

Details for the file python_ics-903.17.post2-cp39-cp39-win32.whl.

File metadata

  • Download URL: python_ics-903.17.post2-cp39-cp39-win32.whl
  • Upload date:
  • Size: 152.1 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.5.0.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.8.0

File hashes

Hashes for python_ics-903.17.post2-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 439ca8eb8d15d6900cc1fa6d8973ec54ba2be05c3845a7b65fa22bbd05aa88df
MD5 287d81de2150d78f330a1decd94f90f0
BLAKE2b-256 2161c94ffcb29914d510b5948b33bda6e048905141aa8a3a650dfb98c6625cac

See more details on using hashes here.

File details

Details for the file python_ics-903.17.post2-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: python_ics-903.17.post2-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 160.5 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.5.0.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.8.0

File hashes

Hashes for python_ics-903.17.post2-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 aee5884c6daf02afc615d4cf40c0db4f5168daa588caed1904f64e82c064afc9
MD5 0571118f0db9130eb11674e6ead1af9f
BLAKE2b-256 f66e2a6fe328a1f72d98e4d56da8439c08924e85db0f6c40bee0500c90d57031

See more details on using hashes here.

File details

Details for the file python_ics-903.17.post2-cp38-cp38-win32.whl.

File metadata

  • Download URL: python_ics-903.17.post2-cp38-cp38-win32.whl
  • Upload date:
  • Size: 152.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.5.0.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.8.0

File hashes

Hashes for python_ics-903.17.post2-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 237b023e9bf74da91ecc519a41de9da9a6e200b842a723e7e000620b2b98b884
MD5 6e7d196837cae8da1d103600ca511661
BLAKE2b-256 bebf7b3bfb45f0c58bd2c773e96e85c326a7c31b98a1f37238113de0bb35b9b7

See more details on using hashes here.

File details

Details for the file python_ics-903.17.post2-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: python_ics-903.17.post2-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 186.7 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.5.0.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.8.0

File hashes

Hashes for python_ics-903.17.post2-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 579764c60460ef8e432f37b3293dba4c0e0480a2abd893ba0576e8aa5fb76b1d
MD5 100eb95817191849dbf69e0eead04014
BLAKE2b-256 9a68382543d5688ae21c6df6d9a3ad723054fe17943120d8f6bcdbaf2616fc03

See more details on using hashes here.

File details

Details for the file python_ics-903.17.post2-cp37-cp37m-win32.whl.

File metadata

  • Download URL: python_ics-903.17.post2-cp37-cp37m-win32.whl
  • Upload date:
  • Size: 172.0 kB
  • Tags: CPython 3.7m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.5.0.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.8.0

File hashes

Hashes for python_ics-903.17.post2-cp37-cp37m-win32.whl
Algorithm Hash digest
SHA256 54e9523c364d0f3beb49b2f63cc0dc343d3c015d1d54472b76d741452e8cf9b6
MD5 844e76562e7b561e81bb844537290685
BLAKE2b-256 1bccb83bd719b9f0c23be29f872f1972502abced44b0dba938071423eec8d1db

See more details on using hashes here.

File details

Details for the file python_ics-903.17.post2-cp36-cp36m-win_amd64.whl.

File metadata

  • Download URL: python_ics-903.17.post2-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 186.7 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.5.0.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.8.0

File hashes

Hashes for python_ics-903.17.post2-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 842acc26af903f69e93133b2e3ee8f05f1fe0131a59ea93d18666d2afaef0c03
MD5 817c5bc5f60d7907b40af47e816967bf
BLAKE2b-256 b8d7dbfafe3e1f48cd6eea68cab667f65e9e44270f9a7b13dcc9789aee1ebb6f

See more details on using hashes here.

File details

Details for the file python_ics-903.17.post2-cp36-cp36m-win32.whl.

File metadata

  • Download URL: python_ics-903.17.post2-cp36-cp36m-win32.whl
  • Upload date:
  • Size: 172.0 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.5.0.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.8.0

File hashes

Hashes for python_ics-903.17.post2-cp36-cp36m-win32.whl
Algorithm Hash digest
SHA256 9ff9732e1a1bb4095c5ae9f0fa8251c27bdbed2e1560c4b7875715da53dcba30
MD5 7d33078f8111f2a0a78fc0427f1e0e47
BLAKE2b-256 14f5a75868fb3052c95e5f8f933218950d0154aaf35c2fbc79af1775a6cff0a4

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