https://github.com/mrthearman/django-settings-holder
Object that allows settings to be accessed with attributes.
https://github.com/mrthearman/django-settings-holder
developer-tools django python settings
Last synced: 7 months ago
JSON representation
Object that allows settings to be accessed with attributes.
- Host: GitHub
- URL: https://github.com/mrthearman/django-settings-holder
- Owner: MrThearMan
- License: mit
- Created: 2022-01-09T15:24:33.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-11-18T21:49:48.000Z (7 months ago)
- Last Synced: 2024-11-18T22:52:47.629Z (7 months ago)
- Topics: developer-tools, django, python, settings
- Language: Python
- Homepage: https://pypi.org/project/django-settings-holder/
- Size: 3.25 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# Django Settings Holder
[![Coverage Status][coverage-badge]][coverage]
[![GitHub Workflow Status][status-badge]][status]
[![PyPI][pypi-badge]][pypi]
[![GitHub][licence-badge]][licence]
[![GitHub Last Commit][repo-badge]][repo]
[![GitHub Issues][issues-badge]][issues]
[![Downloads][downloads-badge]][pypi][![Python Version][version-badge]][pypi]
[![PyPI - Django Version][django]][pypi]```shell
pip install django-settings-holder
```---
**Documentation**: [https://mrthearman.github.io/django-settings-holder/](https://mrthearman.github.io/django-settings-holder/)
**Source Code**: [https://github.com/MrThearMan/django-settings-holder/](https://github.com/MrThearMan/django-settings-holder/)
**Contributing**: [https://github.com/MrThearMan/django-settings-holder/blob/main/CONTRIBUTING.md](https://github.com/MrThearMan/django-settings-holder/blob/main/CONTRIBUTING.md)
---
This library provides utilities for Django extensions that want to define their own settings dictionaries.
Settings can be included in a SettingsHolder that allows them to be accessed via attributes.
User defined settings can be reloaded automatically to the SettingsHolder from the `setting_changed` signal.
Functions in dot import notation are automatically imported so that the imported function is available in
the SettingsHolder. You can also define validators for settings that will be run when the setting is first accessed.[coverage-badge]: https://coveralls.io/repos/github/MrThearMan/django-settings-holder/badge.svg?branch=main
[status-badge]: https://img.shields.io/github/actions/workflow/status/MrThearMan/django-settings-holder/test.yml?branch=main
[pypi-badge]: https://img.shields.io/pypi/v/django-settings-holder
[licence-badge]: https://img.shields.io/github/license/MrThearMan/django-settings-holder
[repo-badge]: https://img.shields.io/github/last-commit/MrThearMan/django-settings-holder
[issues-badge]: https://img.shields.io/github/issues-raw/MrThearMan/django-settings-holder
[version-badge]: https://img.shields.io/pypi/pyversions/django-settings-holder
[django]: https://img.shields.io/pypi/djversions/django-settings-holder
[downloads-badge]: https://img.shields.io/pypi/dm/django-settings-holder[coverage]: https://coveralls.io/github/MrThearMan/django-settings-holder?branch=main
[status]: https://github.com/MrThearMan/django-settings-holder/actions/workflows/test.yml
[pypi]: https://pypi.org/project/django-settings-holder
[licence]: https://github.com/MrThearMan/django-settings-holder/blob/main/LICENSE
[repo]: https://github.com/MrThearMan/django-settings-holder/commits/main
[issues]: https://github.com/MrThearMan/django-settings-holder/issues