Skip to main content

ULAGen

Generate IPv6 ULA prefixes according to RFC4193, using the local node address (MAC-Address) and NTP time from an NTP server.

Usage

As standalone tool

▶ uvx ulagen
fdd0:7fb6:2ef0::/48

or

▶ pipx run ulagen
fdd0:7fb6:2ef0::/48

As a library

Returns an IPv6Network instance.

from ulagen import ULAGen

u = ULAGen()
network = u.generate()

Different NTP Server

By default, the package uses the pool.ntp.org pool servers to get the current NTP time. If you want to use a different server, use the --ntp-server ntp.example.com command line option or, when using the library, use ULAGen(ntp_server="ntp.example.com").

Fallback Mode

ULAs are generated in part from a local MAC-Address. When that local MAC-Address is unreliable (for example when it is locally assigned) ulagen will fall back to using the local machine ID instead. This uses the /etc/machine-id file on Linux or the IOPlatformUUID identifier on macOS.

If you always or never want to use that fallback, use the --fallback or --no-fallback options.

Metadata

Release files for ulagen 1.1.1

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

Source distribution (sdist)

Source distribution for ulagen 1.1.1
File Size Uploaded Provenance Actions
ulagen-1.1.1.tar.gz 19.0 kB With provenance Details for ulagen-1.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ulagen 1.1.1
File Interpreter ABI Platform Actions
ulagen-1.1.1-py3-none-any.whl Python 3 none any Details for ulagen-1.1.1-py3-none-any.whl

Total release size: 26.5 kB

Release files / ulagen-1.1.1.tar.gz

Download URL ulagen-1.1.1.tar.gz
Size 19.0 kB
Tags Source
SHA-256 checksum
How to use checksums
63745e8f186760b440f339949fbbfb94076af2528ed454f28205c78ed22f2efe
BLAKE2b-256 checksum
How to use checksums
d0608542ff931015c0914d2e62e84460e3ea13672ba198b48d79e4aa02564d47
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitLab CI/CD, verified by PyPI on Nov 13, 2026.

Transparency log

Release files / ulagen-1.1.1-py3-none-any.whl

Download URL ulagen-1.1.1-py3-none-any.whl
Size 7.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
125bd18c901795ec938ddbb49320611613935502a1d3eb83d35731e95731f506
BLAKE2b-256 checksum
How to use checksums
69cf2b9fecefbbd4940e2154f15ffaa750428f3a14d6c449345e2e801fa486ce
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitLab CI/CD, verified by PyPI on Nov 13, 2026.

Transparency log

Security for ulagen 1.1.1

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for ulagen-1.1.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitLab CI/CD, verified by PyPI on Nov 13, 2026.

Transparency log

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.

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