Python3 AsyncIO Labnode driver
Project description
LabNode
This is the Python3 AsyncIO API library for the Labnode system.
The library is fully type-hinted.
Documentation
The full documentation can be found on GitHub Pages: https://patrickbaus.github.io/labnode_async/. I use the Numpydoc style for documentation and Sphinx for compiling it.
Setup
To install the library in a virtual environment (always use venvs with every project):
python3 -m venv env # virtual environment, optional
source env/bin/activate
pip install labnode-async
Usage
This library makes use of asynchronous context managers to hide all connection related stuff and also handle cleanup. By the way: Context managers are great!
Connect to the remote endpoint, and it will automatically enumerate the Labnode and create the correct device.
from labnode_async import IPConnection
# Create a device and start coding
async with IPConnection("192.1680.0.2") as device:
# Add your code here
...
See examples/ for more working examples.
Versioning
I use SemVer for versioning. For the versions available, see the tags of this repository.
Authors
- Patrick Baus - Initial work - PatrickBaus
License
This project is licensed under the GPL v3 license - see the LICENSE file for details.
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
Built Distribution
Hashes for labnode_async-0.16.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 58ef3495bbd01eb4216322f04f631866cced8b5872488ca7f9ed5b101e7f67ee |
|
MD5 | db9a8169a33ae3ff1195891b190b093e |
|
BLAKE2b-256 | fc6273c8ad7d22f6cdeec4ae7c432048a5a54bef60b2e47e0405a676a1d263bf |