[GH-ISSUE #693] Refactor config loading system to use django-environ, python-decouple, dynaconf, or pydantic #1945

Open
opened 2026-03-01 17:55:14 +03:00 by kerem · 2 comments
Owner

Originally created by @pirate on GitHub (Apr 6, 2021).
Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/693

We should move away from my old hand-coded config loading system to a library that can handle it for us:

these are my favorite configuration/settings management libraries for python

Originally created by @pirate on GitHub (Apr 6, 2021). Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/693 We should move away from my old hand-coded config loading system to a library that can handle it for us: - https://github.com/henriquebastos/python-decouple/ (most features, supports ini, .env, environment variables, and python) - https://github.com/joke2k/django-environ (simplest option, supports .env, environment variables, and python) - https://pydantic-docs.helpmanual.io/usage/settings/ (uses the python type hinting system) - https://github.com/rochacbruno/dynaconf (inspired by 12-factor, similar to django-environ) these are my favorite configuration/settings management libraries for python
Author
Owner

@mAAdhaTTah commented on GitHub (Apr 11, 2021):

pydantic also has a new validate_arguments decorator: https://pydantic-docs.helpmanual.io/usage/validation_decorator/ which may be useful to replace the current enforce_types decorator.

<!-- gh-comment-id:817343214 --> @mAAdhaTTah commented on GitHub (Apr 11, 2021): `pydantic` also has a new `validate_arguments` decorator: https://pydantic-docs.helpmanual.io/usage/validation_decorator/ which may be useful to replace the current `enforce_types` decorator.
Author
Owner

@pirate commented on GitHub (Jan 24, 2024):

coming soon, decided to use django-solo for simplicity https://github.com/ArchiveBox/ArchiveBox/pull/1327

<!-- gh-comment-id:1908687522 --> @pirate commented on GitHub (Jan 24, 2024): coming soon, decided to use django-solo for simplicity https://github.com/ArchiveBox/ArchiveBox/pull/1327
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ArchiveBox#1945
No description provided.