Useful functions for working with IEEE 2030.5 (SEP2)
Project description
SEP2-Tools
This library provides some useful functions for working with IEEE 2030.5 (SEP2).
Note this library used to also include some functions for creating and validating certificates. This has now been moved to a seperate SEP2-Certs package.
Helper Functions
Generating IDs
from sep2tools.ids import generate_mrid
EXAMPLE_PEN = 1234
mrid = generate_mrid(EXAMPLE_PEN)
print(mrid) # 2726-D70C-C6C2-40DB-B78E-9B38-0000-1234
Bitmap Hex Mappings
Some helper functions are provided for calculating the hex representation of SEP2 bitmap fields.
from sep2tools.hexmaps import get_role_flag
binval, hexval = get_role_flag(is_mirror=1, is_der=1, is_submeter=1)
print(binval) # 0000000001001001
print(hexval) # 0049
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 sep2tools-0.5.0.tar.gz.
File metadata
- Download URL: sep2tools-0.5.0.tar.gz
- Upload date:
- Size: 11.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.11 {"installer":{"name":"uv","version":"0.11.11","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Fedora Linux","version":"44","id":"","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
487e849d1fed84a85461f5b2cd0b4cfcac100cc3c12e158a9230171e36dc14ed
|
|
| MD5 |
fc576cfdef2becc71429f8c25c1b1185
|
|
| BLAKE2b-256 |
3e51eab2a944d0e872168467db580d0bca22c39cb2b16398b8fb2cffb17ae84b
|
File details
Details for the file sep2tools-0.5.0-py3-none-any.whl.
File metadata
- Download URL: sep2tools-0.5.0-py3-none-any.whl
- Upload date:
- Size: 13.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.11 {"installer":{"name":"uv","version":"0.11.11","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Fedora Linux","version":"44","id":"","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3abf8c3876b2f57a088096a4d0cf7938c83575a4908afcfdb351c54dad070eb1
|
|
| MD5 |
be6b75ee93238cf278fd8472d0261979
|
|
| BLAKE2b-256 |
a9cc8513bd3ff544af11c1362e276a9f5935058e763e18143e9684ad13fd115f
|