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.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ulagen-1.1.0.tar.gz | 19.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ulagen-1.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 26.5 kB
Release files / ulagen-1.1.0.tar.gz
| Download URL | ulagen-1.1.0.tar.gz |
|---|---|
| Size | 19.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
95d6616f8b0defa919c98c0f76c886ad0ec972a22cb7ea6ad881c49c7fe4c84d
|
|
BLAKE2b-256 checksum How to use checksums |
03afcb728ccd60976bdf7670ee09d4f0a85d375cd7a34b6136a518e86049135b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.0 {"installer":{"name":"uv","version":"0.13.0","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}
|
Release files / ulagen-1.1.0-py3-none-any.whl
| Download URL | ulagen-1.1.0-py3-none-any.whl |
|---|---|
| Size | 7.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
75fac894789763b8a4cc1af0a0d5dab94f133bdd6eb01fe9dcfa3d46a27eab3d
|
|
BLAKE2b-256 checksum How to use checksums |
7b9a38f6e3cb9a9ef47950bae732c16260d6c9a271e1c2985f53d834c3668284
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.0 {"installer":{"name":"uv","version":"0.13.0","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}
|