Skip to main content

Simtricity Emlite Python APIs and CLI

This repository contains:

  • API to connect to and send EMOP messages to Emlite meters
  • a CLI (emop) for sending messages to the meters

Configure

Configuration steps:

  • create file ~/.simt/emlite.prod.env from Lastpass secret 'emop-cli-env-file (prod)'
  • create file ~/.simt/emlite.qa.env from Lastpass secret 'emop-cli-env-file (qa)'
  • ln -s ~/.simt/emlite.<qa|prod|custom>.env ~/.simt/emlite.env

NOTE:

  • FLY_DNS_SERVER needs the DNS that wireguard uses (on Linux look under resolvectl status for the interface and DNS)

see also https://www.notion.so/Emop-and-mediators-CLI-setup-834d32be5c794add8716399ab186abe8

Use

emop

emop env_show
emop env_set prod

emop --help

emop prepay_balance EML2137555666
emop csq EML2137555666
emop profile_log_1 --timestamp 2024-07-19T00:00 EML2137555666

Python API

You can also use the library directly in your Python scripts. The library offers two main client classes:

  • EmliteMediatorAPI: The core client for standard meter operations (reads, basic writes).
  • EmlitePrepayAPI: Extends the core API with prepay-specific functionality (balance, tokens, tariffs).

Initialization and Logging

The EmliteMediatorAPI constructor allows you to configure the connection and log verbosity.

import logging
from simt_emlite.mediator.api_core import EmliteMediatorAPI

# Initialize the client
# The logging_level parameter controls the verbosity of the internal logger.
# It uses the standard python logging module levels (DEBUG, INFO, WARNING, ERROR).
client = EmliteMediatorAPI(
    mediator_address="localhost:50051",
    logging_level=logging.WARNING  # Set to logging.DEBUG for verbose output
)

# Example Usage
serial = "EML2137555666"
try:
    voltage = client.instantaneous_voltage(serial)
    print(f"Meter {serial} voltage: {voltage}V")
except Exception as e:
    print(f"Error: {e}")

Metadata

Release files for simt-emlite 1.2.13

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for simt-emlite 1.2.13
File Actions
simt_emlite-1.2.13-cp314-cp314t-win_amd64.whl CPython 3.14 CPython 3.14 free-threading Windows x86-64 Details for simt_emlite-1.2.13-cp314-cp314t-win_amd64.whl
simt_emlite-1.2.13-cp314-cp314t-win32.whl CPython 3.14 CPython 3.14 free-threading Windows x86-32 Details for simt_emlite-1.2.13-cp314-cp314t-win32.whl
simt_emlite-1.2.13-cp314-cp314t-musllinux_1_2_x86_64.whl CPython 3.14 CPython 3.14 free-threading Linux musl 1.2+ x86-64 Details for simt_emlite-1.2.13-cp314-cp314t-musllinux_1_2_x86_64.whl
simt_emlite-1.2.13-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl CPython 3.14 CPython 3.14 free-threading Linux glibc 2.17+ x86-64, Linux glibc 2.28+ x86-64 Details for simt_emlite-1.2.13-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
simt_emlite-1.2.13-cp314-cp314t-macosx_11_0_arm64.whl CPython 3.14 CPython 3.14 free-threading macOS 11.0+ ARM64 Details for simt_emlite-1.2.13-cp314-cp314t-macosx_11_0_arm64.whl
simt_emlite-1.2.13-cp314-cp314-win_amd64.whl CPython 3.14 CPython 3.14 Windows x86-64 Details for simt_emlite-1.2.13-cp314-cp314-win_amd64.whl
simt_emlite-1.2.13-cp314-cp314-win32.whl CPython 3.14 CPython 3.14 Windows x86-32 Details for simt_emlite-1.2.13-cp314-cp314-win32.whl
simt_emlite-1.2.13-cp314-cp314-musllinux_1_2_x86_64.whl CPython 3.14 CPython 3.14 Linux musl 1.2+ x86-64 Details for simt_emlite-1.2.13-cp314-cp314-musllinux_1_2_x86_64.whl
simt_emlite-1.2.13-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl CPython 3.14 CPython 3.14 Linux glibc 2.17+ x86-64, Linux glibc 2.28+ x86-64 Details for simt_emlite-1.2.13-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
simt_emlite-1.2.13-cp314-cp314-macosx_11_0_arm64.whl CPython 3.14 CPython 3.14 macOS 11.0+ ARM64 Details for simt_emlite-1.2.13-cp314-cp314-macosx_11_0_arm64.whl
simt_emlite-1.2.13-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details for simt_emlite-1.2.13-cp313-cp313-win_amd64.whl
simt_emlite-1.2.13-cp313-cp313-win32.whl CPython 3.13 CPython 3.13 Windows x86-32 Details for simt_emlite-1.2.13-cp313-cp313-win32.whl
simt_emlite-1.2.13-cp313-cp313-musllinux_1_2_x86_64.whl CPython 3.13 CPython 3.13 Linux musl 1.2+ x86-64 Details for simt_emlite-1.2.13-cp313-cp313-musllinux_1_2_x86_64.whl
simt_emlite-1.2.13-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.17+ x86-64, Linux glibc 2.28+ x86-64 Details for simt_emlite-1.2.13-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
simt_emlite-1.2.13-cp313-cp313-macosx_11_0_arm64.whl CPython 3.13 CPython 3.13 macOS 11.0+ ARM64 Details for simt_emlite-1.2.13-cp313-cp313-macosx_11_0_arm64.whl

Total release size: 133.0 MB

Release files / simt_emlite-1.2.13-cp314-cp314t-win_amd64.whl

Download URL simt_emlite-1.2.13-cp314-cp314t-win_amd64.whl
Size 2.7 MB
Tags CPython 3.14 CPython 3.14 free-threading Windows x86-64
SHA-256 checksum
How to use checksums
158221d6ee3064be42aa48fea16c66d2126ed8275f7775883f1665fa4ce8ec01
BLAKE2b-256 checksum
How to use checksums
c1c56b01296c8f31c23b46ef6d85450a26fb8a3fa5165409320ac9ddbdd46a70
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / simt_emlite-1.2.13-cp314-cp314t-win32.whl

Download URL simt_emlite-1.2.13-cp314-cp314t-win32.whl
Size 2.4 MB
Tags CPython 3.14 CPython 3.14 free-threading Windows x86-32
SHA-256 checksum
How to use checksums
42dc707a35e8bb89715d05021bc8d42d1219d413ce7c113d3d6966ee5d694b56
BLAKE2b-256 checksum
How to use checksums
42e4d0ac3bfe76812dba59c504d741e120d6337c9a3b8e0e9bf687ed144bbb21
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / simt_emlite-1.2.13-cp314-cp314t-musllinux_1_2_x86_64.whl

Download URL simt_emlite-1.2.13-cp314-cp314t-musllinux_1_2_x86_64.whl
Size 19.4 MB
Tags CPython 3.14 CPython 3.14 free-threading Linux musl 1.2+ x86-64
SHA-256 checksum
How to use checksums
f2e5e9f5e29d7f340d9e4ed8930d1801373c72b713ee4cb3557a42ef108e1c34
BLAKE2b-256 checksum
How to use checksums
c5c0d3726b07950e2da6855ad50344017a7d6b56be0a004152a6837adb64f399
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / simt_emlite-1.2.13-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl

Download URL simt_emlite-1.2.13-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Size 19.9 MB
Tags CPython 3.14 CPython 3.14 free-threading Linux glibc 2.17+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
e9cabfd8a276497d4df5ae889d57713482c1d5a8b0d7039544c3d7ab8a328b63
BLAKE2b-256 checksum
How to use checksums
1cd94a2d09098f8052a6a97448c6ef287ba92ba3326915e1ae96bb16edfb9967
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / simt_emlite-1.2.13-cp314-cp314t-macosx_11_0_arm64.whl

Download URL simt_emlite-1.2.13-cp314-cp314t-macosx_11_0_arm64.whl
Size 3.0 MB
Tags CPython 3.14 CPython 3.14 free-threading macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
b7c86b620b967976214a1429864657f8cdf92c091a8f424cac9a299e5bad9be0
BLAKE2b-256 checksum
How to use checksums
a8a6e649b05065a9d5b3cc881db7c147f8afed0c69ea9046371f41d8013d88c3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / simt_emlite-1.2.13-cp314-cp314-win_amd64.whl

Download URL simt_emlite-1.2.13-cp314-cp314-win_amd64.whl
Size 2.4 MB
Tags CPython 3.14 Windows x86-64
SHA-256 checksum
How to use checksums
d8ca5b28f2f55676dc28188852f9bc5a3f2cc68009e3369d67e992193f1a3593
BLAKE2b-256 checksum
How to use checksums
1a7a516f4bb07dbd2bc4c9dde16bbeb5c8f42b887cdae6ef071f918ce67e3e2b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / simt_emlite-1.2.13-cp314-cp314-win32.whl

Download URL simt_emlite-1.2.13-cp314-cp314-win32.whl
Size 2.2 MB
Tags CPython 3.14 Windows x86-32
SHA-256 checksum
How to use checksums
a532f84326d27e47f02b3425faa3cf97f8bd5c296d58993ddfcc9a19862d2fbe
BLAKE2b-256 checksum
How to use checksums
182b427bbfcca0c056e9bbcbcf6d3d590717170edff4da079ee4c5fa5280cd31
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / simt_emlite-1.2.13-cp314-cp314-musllinux_1_2_x86_64.whl

Download URL simt_emlite-1.2.13-cp314-cp314-musllinux_1_2_x86_64.whl
Size 17.5 MB
Tags CPython 3.14 Linux musl 1.2+ x86-64
SHA-256 checksum
How to use checksums
a7def3b2f4b8aed427f27dc19b2fb3c4dd6b8dc9f2225845d1a3936d6cb06048
BLAKE2b-256 checksum
How to use checksums
0b567572a55c9e20523d7b8e8c65c876f3510fcc61ef6485dc7047fd0df31454
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / simt_emlite-1.2.13-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl

Download URL simt_emlite-1.2.13-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Size 17.9 MB
Tags CPython 3.14 Linux glibc 2.17+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
95bc263d9f5a36a5ca3ead5746eb0beb921e74d5407a31e73411434c1ccfab1b
BLAKE2b-256 checksum
How to use checksums
af470a8ba9170ac1fbd33cfa98f5a6b7d2bde5e86110841931a420a3f97ee812
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / simt_emlite-1.2.13-cp314-cp314-macosx_11_0_arm64.whl

Download URL simt_emlite-1.2.13-cp314-cp314-macosx_11_0_arm64.whl
Size 2.7 MB
Tags CPython 3.14 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
a7b3b0942e8834db0149be1e8132ed074c971346f2eb1f86562b88ce3f373e4f
BLAKE2b-256 checksum
How to use checksums
3f4025fa6531c530bf392aa67b8d4f4bff3b40e765322a3427e40a59d3159898
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / simt_emlite-1.2.13-cp313-cp313-win_amd64.whl

Download URL simt_emlite-1.2.13-cp313-cp313-win_amd64.whl
Size 2.4 MB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
31668dd91ba40fd6f9ade4cc05992b22d55f15f011df9b314aba6ee1532e1320
BLAKE2b-256 checksum
How to use checksums
10c9a77ca6adf991175736478c88e0ad731b60190aa27a059420750ba0f5a84a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / simt_emlite-1.2.13-cp313-cp313-win32.whl

Download URL simt_emlite-1.2.13-cp313-cp313-win32.whl
Size 2.1 MB
Tags CPython 3.13 Windows x86-32
SHA-256 checksum
How to use checksums
302780d834db615dbd32d818743a54a300e26d4aa8ba14dda53f8c791e76107b
BLAKE2b-256 checksum
How to use checksums
daa058cfea59aa353a3b0c3560af77d898ec0a67126257027d6200f93ade30e6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / simt_emlite-1.2.13-cp313-cp313-musllinux_1_2_x86_64.whl

Download URL simt_emlite-1.2.13-cp313-cp313-musllinux_1_2_x86_64.whl
Size 17.7 MB
Tags CPython 3.13 Linux musl 1.2+ x86-64
SHA-256 checksum
How to use checksums
de84f12734376ac24f176878cc11c3b2a551cfd2de598d7b5ba64fa43fb5aeb3
BLAKE2b-256 checksum
How to use checksums
41ae7825e34a38a96ed84e3fc2213575a93fc5a8084285227c5fcbd8278f3cae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / simt_emlite-1.2.13-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl

Download URL simt_emlite-1.2.13-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Size 18.1 MB
Tags CPython 3.13 Linux glibc 2.17+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
f4709d9493a5249c97db642cf6e5a7eaf47ab19ee01fb7e1439c4957f070ad60
BLAKE2b-256 checksum
How to use checksums
6a4c9f7d04b50149deba3c8ce631c56e7de72d817ab5e6687d7ffa30331b5584
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / simt_emlite-1.2.13-cp313-cp313-macosx_11_0_arm64.whl

Download URL simt_emlite-1.2.13-cp313-cp313-macosx_11_0_arm64.whl
Size 2.7 MB
Tags CPython 3.13 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
ce9fdc3b2fdb6b8809e766fb6d3388d8d4671bc3ba4686b0ef24d4f49f0d99b0
BLAKE2b-256 checksum
How to use checksums
7c242a7de8a5a35f5b6cf42a77e5d76b90e9538bc4d89d6392487a8ae9497ee2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for simt-emlite 1.2.13

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.2.13 This release

15 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page