Skip to main content

Useful functions for working with IEEE 2030.5 (SEP2)

Project description

SEP2-Tools

PyPI version PyPi downloads

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sep2tools-0.5.1.tar.gz (11.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sep2tools-0.5.1-py3-none-any.whl (13.8 kB view details)

Uploaded Python 3

File details

Details for the file sep2tools-0.5.1.tar.gz.

File metadata

  • Download URL: sep2tools-0.5.1.tar.gz
  • Upload date:
  • Size: 11.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.15 {"installer":{"name":"uv","version":"0.11.15","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

Hashes for sep2tools-0.5.1.tar.gz
Algorithm Hash digest
SHA256 b7934dbea9f5e8bec20ea1d8b7738e4c8904c0d675bd061ae32e860e50addf97
MD5 8a7a11dbee837b5c584e49ab3976e780
BLAKE2b-256 36059c9d8154a1dc0f4cd04e9b7c60cd5a98ca59df9688c4587095777ec66140

See more details on using hashes here.

File details

Details for the file sep2tools-0.5.1-py3-none-any.whl.

File metadata

  • Download URL: sep2tools-0.5.1-py3-none-any.whl
  • Upload date:
  • Size: 13.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.15 {"installer":{"name":"uv","version":"0.11.15","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

Hashes for sep2tools-0.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0804f3a245d99a5c8e49e2cf4ccd581c41e3b1deeaee5f5a0e5da0082140385b
MD5 808075fb68ea69772a049b4bf9510749
BLAKE2b-256 24197ec70c44c1a9101d09abcdea27ab36077b3e31f3fbad271edbd5eea67456

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