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-903.17.tar.gz (89.9 kB view details)

Uploaded Source

Built Distributions

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

Uploaded CPython 3.9 Windows x86-64

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

Uploaded CPython 3.9 Windows x86

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

Uploaded CPython 3.8 Windows x86-64

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

Uploaded CPython 3.8 Windows x86

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

Uploaded CPython 3.7m Windows x86-64

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

Uploaded CPython 3.7m Windows x86

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

Uploaded CPython 3.6m Windows x86-64

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

Uploaded CPython 3.6m Windows x86

File details

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

File metadata

  • Download URL: python_ics-903.17.tar.gz
  • Upload date:
  • Size: 89.9 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.tar.gz
Algorithm Hash digest
SHA256 53fa5510b4ed583383f061f3b82569448c0751e8864cb128521d3c59961fe74b
MD5 81c402d6d6540184df323101f1852f3e
BLAKE2b-256 2dd48ad5b98279e40bcaf0d3cc74e1ccee75674cba235dfd29e70727b50fd1c6

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: python_ics-903.17-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 165.0 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-903.17-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 117129939bb9edc9d82dcc55add4e139276176ad800a83526a7c0f7e1b3609fc
MD5 d57db5ac2d83d22f40205a4549559a07
BLAKE2b-256 4314bf5de3a2cb1b613d1fb0ceece0ff4bd0a5ab7de0245bde8faebe8f7e3875

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: python_ics-903.17-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.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-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 f9dafa5404d0e1967802193fdb29ce4aa1329e547cd27063df5a8cf882896919
MD5 3265a4b7302db3c7ffd7f13dbe57b1f8
BLAKE2b-256 93b415955afe7cc7c419cb5416f0562b4f5e6bfcba1bd0e1689ee6b67fad7c94

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: python_ics-903.17-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 160.4 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-903.17-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 449e6b5fdbceba93b32648a0147842d9b67aae979379aa05b8f9cb6a3333b5b3
MD5 6e151cbc0cdc7946ae9ea5a92b54ccab
BLAKE2b-256 304a0c39cc8c0382d959cd39735f8cf86ac7223204f8021e3ebfa3245a588d92

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: python_ics-903.17-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.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-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 647bd6f02ff44188a2bf721f8e6b91ea7cdad97866a5d4495e907688bdd31a6a
MD5 9d9e99aa114b8ffb9fe23abc722034a8
BLAKE2b-256 1d8d4b8ef3f203f28c40b7a535e672ddc781ad58e73cb257cfc61fdaec787529

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: python_ics-903.17-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.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-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 f2176106e0eb76141285514e976f46dfa77437f129f8ce2e41cbb6f5a79e2b33
MD5 ae8b5c5cd105dc18932f1c0a5697514c
BLAKE2b-256 6073240b1b40433855c3ff99eaa74b33d47b26881dce76b990a25fb73f379437

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: python_ics-903.17-cp37-cp37m-win32.whl
  • Upload date:
  • Size: 171.9 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.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-cp37-cp37m-win32.whl
Algorithm Hash digest
SHA256 8bdede933a4a1c9d9a064f748cb540c7abc788d6e667bc4f180ede4a2449003d
MD5 022602e0795ba623d60cbb3223475d99
BLAKE2b-256 d73f24aac15008ca9032efb92f9e746dd913565e8edb3e8db8361e9652aed471

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: python_ics-903.17-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.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-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 61d99ab8d38866685244a5d93ce73024124bbf49c4066a5f631a0f6425e1568a
MD5 b8ae7e3ace445da33043962e8d44387e
BLAKE2b-256 7522385595925ed634f9aba6d47e9c82c7ce85f21a0585504e49b0d75dd4a942

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: python_ics-903.17-cp36-cp36m-win32.whl
  • Upload date:
  • Size: 171.9 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-903.17-cp36-cp36m-win32.whl
Algorithm Hash digest
SHA256 43e33f5b34125fb9eb5e227c5cebd2001703fe614a4030a4757e8697faba1f73
MD5 764f8bb92ca11f26f7504712a247b046
BLAKE2b-256 b249a62b03d02120c36582d1fd43f54b13c0aa08c265a1febf80a225d89c8b5e

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