MREG API 
mreg-api is a Python client library for the MREG
REST API. It gives you a typed, ergonomic interface to every MREG
resource through a single client
object with scoped namespaces for each resource type.
It provides optional caching of resources, automatic FQDN expansion of hostnames, and a consistent interface for all resource types. The client is compatible with Python 3.11 and later.
Documentation
https://unioslo.github.io/mreg-api/
Development
Set up a development environment with uv:
git clone git@github.com:unioslo/mreg-api.git
uv sync
Pre-commit Hooks
This project uses prek to manage pre-commit hooks for code quality and formatting. To set up the pre-commit hooks, run the following command:
uv tool install prek
Then, install the pre-commit hooks with:
prek install
Run the pre-commit checks manually with:
prek run
# Optionally for all files:
prek run --all-files
Metadata
Release files for mreg-api 0.4.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 | |
|---|---|---|---|
| mreg_api-0.4.0.tar.gz | 215.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mreg_api-0.4.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 311.8 kB
Release files / mreg_api-0.4.0.tar.gz
| Download URL | mreg_api-0.4.0.tar.gz |
|---|---|
| Size | 215.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1fc7da920ec921e608c553704bc20115447da9b407d1340eb12cb8bf5a2fb96c
|
|
BLAKE2b-256 checksum How to use checksums |
9148dfa7696b96b8b94264c93672fded05068c99eb5c9e1fd61fbacac0c14208
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 GitHub Actions, verified by PyPI on Aug 24, 2026.
Transparency logRelease files / mreg_api-0.4.0-py3-none-any.whl
| Download URL | mreg_api-0.4.0-py3-none-any.whl |
|---|---|
| Size | 96.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
48cd3cbfb48ec5b69acdf4d466da2c1c91e64ad91ff10085b891f729f187dcd5
|
|
BLAKE2b-256 checksum How to use checksums |
8cc1eda618d27db1351c05bed4cad5219d05ad592c64b2cbc89d936aae32bcde
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 GitHub Actions, verified by PyPI on Aug 24, 2026.
Transparency log