2 files were added to this release more than 14 days after its initial publication. Inspect the release files before installing.
This release is a pre-release and may not be stable for production use.
=============
This is a Python-based socket client for Global Cache GC100 digital I/O interface
The global cache GC100 features an array of digital inputs / IR outputs (switchable),
serial ports, and solid state relays, accessible via a TCP interface.
More info can be found at the manufaturer's website: https://www.globalcache.com/products/gc-100/
python-gc100 provides a TCP client to interface with a GC100.
Currently serial port communication and IR functions are not supported.
Digital input (including notification mode) and changing relay state are supported.
Usage
-----
Given a callback function
>>> def callback_fn(state):
>>> print(state)
Initialize the connection to the socket server
>>> hostname = 'myserver'
>>> port = 4998
>>> gc = gc100.GC100SocketClient(hostname,port)
Example, if you want to read and print the state of module address '4:1':
>>> gc.read_input('4:1', callback_fn)
Or turn the relay on at address '3:2', and confirm its new state:
>>> gc.write_switch('3:2', 1, callback_fn)
Turn it off again:
>>> gc.write_switch('3:2', 0, callback_fn)
If you want to subscribe to be notified (push) of state changes to digital input '4:3':
>>> gc.subscribe_notify('4:3', callback_fn)
Close the connection
>>> gc.quit()
Compatibility
------------
This module is only tested with Python 3.5.2, and will definitely not be compatible with python 2.x
Author and License
------------------
This software is (c) 2017 David Grant <davegravy@gmail.com>
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
GC100 is a trademark of Global Cache, with whom the author of this software is not
affiliated in any way other than using some of the their hardware
Release files for python-gc100 1.0.3a0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Files added late
2 files were uploaded more than 14 days after the first file in this release.
While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.
We recommend inspecting the release files before installing.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| python-gc100-1.0.3a0.tar.gz | 5.2 kB | Details |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| python_gc100-1.0.3a0-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
| python_gc100-1.0.3a0-py2-none-any.whl | Python 2 | none | any | Details |
Total release size: 17.5 kB
Release files / python-gc100-1.0.3a0.tar.gz
| Download URL | python-gc100-1.0.3a0.tar.gz |
|---|---|
| Size | 5.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b61b8098951ccd3a4acbfc99b95a866372b77f28a6c363d6feb1a2ca2edbc02e
|
|
BLAKE2b-256 checksum How to use checksums |
4fe3bdee12ea9145460faeb0759cf71d9ab0c55550ca4ef25ecf98aa98618ba2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / python_gc100-1.0.3a0-py2.py3-none-any.whl
File added late
This file was uploaded more than 14 days after the first file in this release.
While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.
We recommend inspecting the release file before installing.
| Download URL | python_gc100-1.0.3a0-py2.py3-none-any.whl |
|---|---|
| Size | 6.2 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
130a0541e04577ec616900c26770973679faca6e79a7d63fa537cc53132b767c
|
|
BLAKE2b-256 checksum How to use checksums |
1b069d1143a907fba5c0edfd626a46d589debeea5f1ba36bd082217e21d24c1a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / python_gc100-1.0.3a0-py2-none-any.whl
File added late
This file was uploaded more than 14 days after the first file in this release.
While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.
We recommend inspecting the release file before installing.
| Download URL | python_gc100-1.0.3a0-py2-none-any.whl |
|---|---|
| Size | 6.2 kB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
87c11f4b245d2f2b48fda8ea488e3e5b4860b0692f729d0ce902a40e7317985f
|
|
BLAKE2b-256 checksum How to use checksums |
c66ce9b3d549a3e6b6d40309c0526ac61bc08b804d1b4cf3f2cc4f71c8f03d67
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |