Skip to main content

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


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.4.0.tar.gz (12.0 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.4.0-py3-none-any.whl (13.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sep2tools-0.4.0.tar.gz
  • Upload date:
  • Size: 12.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Fedora Linux","version":"43","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.4.0.tar.gz
Algorithm Hash digest
SHA256 143cf474131f9eeb27eb508d5aa1826f1372216b3b0872f50bcf4ff5ad55deef
MD5 53a8a85827fc1132970759137ea167c6
BLAKE2b-256 ab66b89310ad573cfa3f8c7a34c4f9d06466b7a157311fefeea77df2ec51c0fb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sep2tools-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 13.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Fedora Linux","version":"43","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.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d525cf4db6e0ed8e423089f67833b8ba0b6b6650629ab6e289f1e3403000b7f2
MD5 eafe216cc9e431ebbc36e3f0edc512b9
BLAKE2b-256 1977311f1a9b057576e33cfeff83a81d914202c1d4262aa8305fc88b65f7355d

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