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


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

Uploaded Source

Built Distributions

python_ics-906.7-cp310-cp310-win_amd64.whl (167.7 kB view details)

Uploaded CPython 3.10 Windows x86-64

python_ics-906.7-cp310-cp310-win32.whl (159.7 kB view details)

Uploaded CPython 3.10 Windows x86

python_ics-906.7-cp39-cp39-win_amd64.whl (167.8 kB view details)

Uploaded CPython 3.9 Windows x86-64

python_ics-906.7-cp39-cp39-win32.whl (159.8 kB view details)

Uploaded CPython 3.9 Windows x86

python_ics-906.7-cp38-cp38-win_amd64.whl (168.2 kB view details)

Uploaded CPython 3.8 Windows x86-64

python_ics-906.7-cp38-cp38-win32.whl (160.2 kB view details)

Uploaded CPython 3.8 Windows x86

python_ics-906.7-cp37-cp37m-win_amd64.whl (168.0 kB view details)

Uploaded CPython 3.7m Windows x86-64

python_ics-906.7-cp37-cp37m-win32.whl (159.9 kB view details)

Uploaded CPython 3.7m Windows x86

python_ics-906.7-cp36-cp36m-win_amd64.whl (167.9 kB view details)

Uploaded CPython 3.6m Windows x86-64

python_ics-906.7-cp36-cp36m-win32.whl (159.9 kB view details)

Uploaded CPython 3.6m Windows x86

File details

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

File metadata

  • Download URL: python_ics-906.7.tar.gz
  • Upload date:
  • Size: 104.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.6.1 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.7.9

File hashes

Hashes for python_ics-906.7.tar.gz
Algorithm Hash digest
SHA256 39f5a30251c4a6bcdc6ca0694e8ceb813ccc932fa70a3b18f0680d93439c5907
MD5 1af2a4326ac3c46391237785e00b8e78
BLAKE2b-256 1fcc5d989559e8c7be991038e847c43135925691251c65594d1936b085f68b7e

See more details on using hashes here.

Provenance

File details

Details for the file python_ics-906.7-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: python_ics-906.7-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 167.7 kB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.6.1 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.7.9

File hashes

Hashes for python_ics-906.7-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 7e95590ad96192d5fa10f55439cf28d26fe3a8b60624204f9debed28cfc1b75c
MD5 de972568817dd19ea59adca97ce037f5
BLAKE2b-256 f5f4b4fc451d8526f321ed7293850be15ab28a27314779a457f1f3f0179ec114

See more details on using hashes here.

Provenance

File details

Details for the file python_ics-906.7-cp310-cp310-win32.whl.

File metadata

  • Download URL: python_ics-906.7-cp310-cp310-win32.whl
  • Upload date:
  • Size: 159.7 kB
  • Tags: CPython 3.10, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.6.1 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.7.9

File hashes

Hashes for python_ics-906.7-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 3d88a88d56b6e46f78f079301f9e26a5b207937b375b9471ddc32c63fc313583
MD5 ccc739867b1e76bd7ab07dc425cdb04b
BLAKE2b-256 d446ca3380bf9199778686553ecf4927fc687558549eaa6764ec404c9a9a162c

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: python_ics-906.7-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 167.8 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.6.1 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.7.9

File hashes

Hashes for python_ics-906.7-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 ee8a63c08a0357c9a1da6bbdb53e7f27451e818372a0d5bfb6c20c49e03c427b
MD5 a3d9ad532ddc38f948a53a3a129bba77
BLAKE2b-256 0c3b45eec61c93312ba3a2d947481c69a819c46a84a202e427857b5e06cf0e6c

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: python_ics-906.7-cp39-cp39-win32.whl
  • Upload date:
  • Size: 159.8 kB
  • Tags: CPython 3.9, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.6.1 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.7.9

File hashes

Hashes for python_ics-906.7-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 6cc24e1d1f1d25c7e5cc1a7ce6332323ad9f06d462951ff9077c25159fcaa4c8
MD5 b4837b78fc54ff93369fffcaeca5e8a7
BLAKE2b-256 aad31aa6464d036f03bfd17a0e52395a622ec8ab146d99735278408139511040

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: python_ics-906.7-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 168.2 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.6.1 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.7.9

File hashes

Hashes for python_ics-906.7-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 7fa5e977293e41fdc3f3cdc117c1c8fbf075f737d4795924da0feb5004ab50f7
MD5 b23ac88218a07ea9f19c361d3ad01a3f
BLAKE2b-256 536da83c95a9f2b420bdbcff968ee889599689e61f7414742d8ff74ad69d8f18

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: python_ics-906.7-cp38-cp38-win32.whl
  • Upload date:
  • Size: 160.2 kB
  • Tags: CPython 3.8, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.6.1 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.7.9

File hashes

Hashes for python_ics-906.7-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 c08c885c46dd4c7be64ea40bfb57ea46dbcb7576ada0c1fb3b56e2ad4aea3228
MD5 0983de89dc3fc933424fdfc40fb6248c
BLAKE2b-256 0380534d43d0a6404e21b13dff083fa3b4a0ee5ef7071513e1aa3a80b037a83e

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: python_ics-906.7-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 168.0 kB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.6.1 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.7.9

File hashes

Hashes for python_ics-906.7-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 20ae40f1c825c62352f73e323be7cef1e1f8b9dcdabac3495766c7be81c8f195
MD5 9e06ea81845fac935902e1fd9a0f0d40
BLAKE2b-256 c6c3a18f4cb39bc9805418be474706100d7ba1cc422f008f7e82585cd378868a

See more details on using hashes here.

Provenance

File details

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

File metadata

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

File hashes

Hashes for python_ics-906.7-cp37-cp37m-win32.whl
Algorithm Hash digest
SHA256 8a9a56a3a5138cc8841b6c56634de96e541e4a59d0e2d766cf2170c59461ce77
MD5 f46b2de02300f6858d6e8b81aa979308
BLAKE2b-256 a25ca1b55fa7a07cced398d38d3025ee07cc514aadca35601d885e5fe6458a96

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: python_ics-906.7-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 167.9 kB
  • Tags: CPython 3.6m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.6.1 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.7.9

File hashes

Hashes for python_ics-906.7-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 b14db424e5da24acf0887dbb61334b09a07a41936f3f046f51444beff7dc4ff9
MD5 539370dce23b4e71932e99cc802a1085
BLAKE2b-256 a08ae3952b6cff61a693831043cc4ea1fcb1307af40feeef3bc39cd797f19954

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: python_ics-906.7-cp36-cp36m-win32.whl
  • Upload date:
  • Size: 159.9 kB
  • Tags: CPython 3.6m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.6.1 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.7.9

File hashes

Hashes for python_ics-906.7-cp36-cp36m-win32.whl
Algorithm Hash digest
SHA256 87d3f8434ffeeedf78af1dcb1fc01533d2c0c2341226350169550a83c36314ae
MD5 8200ab88425e1c36fbe60c22a5c1f219
BLAKE2b-256 690cd1e1b8cee093423f07d7f0f3313555ac9b885b209bb90dd84d9a38a6c4e8

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