Metadata-Version: 2.4
Name: ssb-nudb-config
Version: 2025.11.5
Summary: The config for NUDB - Nasjonal utdanningsdatabase
License-Expression: MIT
License-File: LICENSE
Author: Markus Storeide
Author-email: rku@ssb.no
Maintainer: Statistics Norway, Education statistics Department (360)
Requires-Python: >=3.11,<4.0
Classifier: Development Status :: 3 - Alpha
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Requires-Dist: ipykernel (>=7.0.0)
Requires-Dist: pydantic (>=2.5)
Project-URL: Changelog, https://github.com/statisticsnorway/ssb-nudb-config/releases
Project-URL: Documentation, https://statisticsnorway.github.io/ssb-nudb-config
Project-URL: Homepage, https://github.com/statisticsnorway/ssb-nudb-config
Project-URL: Repository, https://github.com/statisticsnorway/ssb-nudb-config
Description-Content-Type: text/markdown

# Nudb_Config

[![PyPI](https://img.shields.io/pypi/v/ssb-nudb-config.svg)][pypi status]
[![Status](https://img.shields.io/pypi/status/ssb-nudb-config.svg)][pypi status]
[![Python Version](https://img.shields.io/pypi/pyversions/ssb-nudb-config)][pypi status]
[![License](https://img.shields.io/pypi/l/ssb-nudb-config)][license]

[![Documentation](https://github.com/statisticsnorway/ssb-nudb-config/actions/workflows/docs.yml/badge.svg)][documentation]
[![Tests](https://github.com/statisticsnorway/ssb-nudb-config/actions/workflows/tests.yml/badge.svg)][tests]
[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=statisticsnorway_ssb-nudb-config&metric=coverage)][sonarcov]
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=statisticsnorway_ssb-nudb-config&metric=alert_status)][sonarquality]

[![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white)][pre-commit]
[![Black](https://img.shields.io/badge/code%20style-black-000000.svg)][black]
[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)
[![Poetry](https://img.shields.io/endpoint?url=https://python-poetry.org/badge/v0.json)][poetry]

[pypi status]: https://pypi.org/project/ssb-nudb-config/
[documentation]: https://statisticsnorway.github.io/ssb-nudb-config
[tests]: https://github.com/statisticsnorway/ssb-nudb-config/actions?workflow=Tests
[sonarcov]: https://sonarcloud.io/summary/overall?id=statisticsnorway_ssb-nudb-config
[sonarquality]: https://sonarcloud.io/summary/overall?id=statisticsnorway_ssb-nudb-config
[pre-commit]: https://github.com/pre-commit/pre-commit
[black]: https://github.com/psf/black
[poetry]: https://python-poetry.org/


## Installation
You can install _Nudb_Config_ via [pip] from [PyPI]:

```console
poetry add ssb-nudb-config
```


## Usage
The most important object in the package are the "settings":
```python
from nudb_config import settings

print(settings.paths)
```

Indexing into the config should be possible with dot-notation AND common dict-convenience methods, these should all return the same value:
```python
settings.variables.fnr
settings.variables["fnr"]
settings.variables.get("fnr")
```


Please see the [Reference Guide] for details.

## Contributing

Contributions are very welcome.
To learn more, see the [Contributor Guide].

## License

Distributed under the terms of the [MIT license][license],
_Nudb_Config_ is free and open source software.

## Issues

If you encounter any problems,
please [file an issue] along with a detailed description.

## Credits

This project was generated from [Statistics Norway]'s [SSB PyPI Template].

[statistics norway]: https://www.ssb.no/en
[pypi]: https://pypi.org/
[ssb pypi template]: https://github.com/statisticsnorway/ssb-pypitemplate
[file an issue]: https://github.com/statisticsnorway/ssb-nudb-config/issues
[pip]: https://pip.pypa.io/

<!-- github-only -->

[license]: https://github.com/statisticsnorway/ssb-nudb-config/blob/main/LICENSE
[contributor guide]: https://github.com/statisticsnorway/ssb-nudb-config/blob/main/CONTRIBUTING.md
[reference guide]: https://statisticsnorway.github.io/ssb-nudb-config/reference.html

