Skip to main content

Python library for Neptune Systems Apex

Project description

PyNepSys

Python package to interface with the Neptune Systems Apex. Tested against an Apex Classic, handles reading probe and outlet state, and setting outlets to ON, OFF, AUTO modes.

Usage

from pynepsys import Apex
apex = Apex('192.168.0.2','admin','pass')

connection_status = await apex.validate_connection()
if connection_status != 'success':
 raise Exception('Cannot connect to Apex: ' + connection_status)
# connect and pull metadata about probes and outlets.
await apex.fetch_current_state()

outlet = apex.outlets['KalkMixer']
# This just updates the local copy to auto mode
outlet.enable_auto()
# Push the state to the Apex
await apex.update_outlet(outlet)
# The mode is auto, but we don't know if it's on or off
# until we refetch state. We can hold on to the outlet instance.
assert not outlet.is_on() and not outlet.is_off()
# Fetch again
await apex.fetch_current_state()

assert outlet.is_auto() == True
assert outlet.is_on() or outlet.is_off()

Neptune Systems Apex Aquacontroller:

http://www.neptunesystems.com/products/apex-controllers/apex-controller-system/

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

pynepsys-1.2.1.tar.gz (4.1 kB view details)

Uploaded Source

File details

Details for the file pynepsys-1.2.1.tar.gz.

File metadata

  • Download URL: pynepsys-1.2.1.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.7

File hashes

Hashes for pynepsys-1.2.1.tar.gz
Algorithm Hash digest
SHA256 15a3ac9ffd29cb6b17e84243a3f96b0224049d9d04635d078a2c0eda8f82f6f3
MD5 a75689e4d4c3cb4b17a8ef0a64ef8f34
BLAKE2b-256 895090f29e84b0bebde3c967f138d24c2f6242bd2c240cf1e63658fa33deb745

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page