All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
MregClient(user_agent=)parameter for setting a custom user agent.
0.1.5 - 2026-03-26
ObjectRef.fieldfield to declare the name of the field thevaluepertains to. Defaults to"id". This allows referencing objects by fields other than their primary ID (e.g.field="ipaddress").
- Docstrings converted from Sphinx-style to Google-style.
Community.remove_host()ipaddressparameter now defaults toNone.ObjectRef.idrenamed toObjectRef.value. Sincefieldcan now point to non-ID fields,valuemore accurately describes the attribute as the value of whichever field is referenced.
0.1.4 - 2026-03-24
mreg_api.events.EventLevelenum with values DEBUG, INFO, WARNING, ERROR, CRITICAL to represent the severity level of events.mreg_api.events.EventLog.get_by_level(level: EventLevel)method to retrieve events with exactly the given level.mreg_api.events.EventLog.get_at_or_above(level: EventLevel)method to retrieve events at or above the given severity level.
mreg_api.events.Eventnow has alevelattribute of typeEventLevelin addition to the existingkindattribute. This allows for more granular categorization of events by severity level in handlers.mreg_api.events.EventKindnow only describes the type of the event, not its severity.mreg_api.events.EventKind.INFOrenamed toEventKind.NOTICEto avoid ambiguity withEventLevel.INFO.
mreg_api.events.EventKind.WARNING. Moved toEventLevelenum.
0.1.3 - 2026-03-23
- Event log functionality to MREG API client, including event recording and retrieval, with the ability for consumers to subscribe to events.
- Accessed via
MregClient.events, which is an instance ofmreg_api.events.EventLog. - Event log max size can be controlled via the
event_log_sizeparameter toMregClient(default: 100). Passing inNonemeans unlimited size.
- Accessed via
FrozenModelnote system, replaced with the more comprehensive and flexible event log system.
0.1.2 - 2026-03-18
- All models with
getorfetchmethods inmreg_api.models.modelsare now accessible as attributes ofMregClientin lowercase form. For example,MregClient().hostgives access to theHostmodel. timeoutparameter toMregClientto configure request timeouts.page_sizeparameter toMregClientto configure default page size for list GET requests.Host.add_mxmethod to add an MX record to a host.Host.remove_mxmethod to remove an MX from a host.MX.create_mxconvenience method to create an MX record.
0.1.0 - 2026-01-27
- Initial release of MREG API client library.