TCP/IP client for communicating with PriarieView
Project description
PyPrLink
A TCP/IP client for communicating with PrairieView. Alternate for PraireLink Application from Python. Python-PrairieLink (PyPrLink)
Installation
pip install pyprlink
Configuration
Create a .env file in your project directory with the following variables:
ADDRESS=your_server_address
PORT=your_port_number
LOG_LEVEL=INFO # or DEBUG or ERROR
Usage
As a Python Module
from pyprlink.tcp_client import ask_PV
# Send commands to PrairieView
ask_PV('-gmp', 'x') # Get microscope position
ask_PV('-pg', '3', '400') # Set page number and value
ask_PV('-x') # Exit command
From Command Line
After installation, you can use the pyprlink command directly:
# Get help
pyprlink --help
# Send commands
pypr -gmp x
pypr -pg 3 400
pypr -x
Development
Install development dependencies:
pip install -e ".[dev]"
Run tests:
pytest
Examples
Common commands:
pypr -gmp x- Get microscope positionpypr -pg 3 400- Set page parameterspypr -x- Exit command
License
This project is licensed under the MIT 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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyprlink-0.1.1.tar.gz.
File metadata
- Download URL: pyprlink-0.1.1.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
789aaeec3159129a9f77d5206633572fa57648af069853957bf7241817be3fb9
|
|
| MD5 |
2f426fba6f8028b65a6e14062adf4b90
|
|
| BLAKE2b-256 |
f9792e64d70f0cbc3eae29025fc4222f61dc76b00457b80fe1b9a1c306af4378
|
File details
Details for the file pyprlink-0.1.1-py3-none-any.whl.
File metadata
- Download URL: pyprlink-0.1.1-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d0cb0f0182a1c9d74a066fea8378b7e7836e5adaac4f7125af68553d3bdd79d5
|
|
| MD5 |
90dd3bea891229a9664298c8001e6637
|
|
| BLAKE2b-256 |
0ccb955b8d8e327450950d4cf9148a66dc4fa091ba0c796e0d45872530fa54c8
|