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.

Files for python-ics, version 4.4
Filename, size File type Python version Upload date Hashes
Filename, size python_ics-4.4-cp34-cp34m-win32.whl (117.8 kB) File type Wheel Python version cp34 Upload date Hashes View
Filename, size python_ics-4.4-cp34-cp34m-win_amd64.whl (128.2 kB) File type Wheel Python version cp34 Upload date Hashes View
Filename, size python_ics-4.4-cp35-cp35m-win32.whl (96.3 kB) File type Wheel Python version cp35 Upload date Hashes View
Filename, size python_ics-4.4-cp35-cp35m-win_amd64.whl (109.1 kB) File type Wheel Python version cp35 Upload date Hashes View
Filename, size python_ics-4.4-cp36-cp36m-win32.whl (99.9 kB) File type Wheel Python version cp36 Upload date Hashes View
Filename, size python_ics-4.4-cp36-cp36m-win_amd64.whl (115.2 kB) File type Wheel Python version cp36 Upload date Hashes View
Filename, size python_ics-4.4-cp37-cp37m-win32.whl (99.9 kB) File type Wheel Python version cp37 Upload date Hashes View
Filename, size python_ics-4.4-cp37-cp37m-win_amd64.whl (115.2 kB) File type Wheel Python version cp37 Upload date Hashes View
Filename, size python_ics-4.4-cp38-cp38-win32.whl (100.8 kB) File type Wheel Python version cp38 Upload date Hashes View
Filename, size python_ics-4.4-cp38-cp38-win_amd64.whl (116.9 kB) File type Wheel Python version cp38 Upload date Hashes View
Filename, size python_ics-4.4.tar.gz (89.0 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page