Skip to main content

Polidoro Config

Polidoro Config it is a configuration manager for you project

Code Quality CodeQL Upload Python Package Documentation Status
Latest Version GitHub Release Date
GitHub commits since latest release (by SemVer including pre-releases) GitHub last commit
GitHub issues GitHub pull requests

Coverage Quality Gate Status Security Rating Maintainability Rating Reliability Rating
Code Smells Duplicated Lines (%) Vulnerabilities Bugs Technical Debt
DeepSource
PyPI

Python Versions
GitHub branch check runs
GitHub branch check runs
GitHub branch check runs

Basic Usage

Create a class inheriting from ConfigBase

from pconfig import ConfigBase

class Config(ConfigBase):
	DB_HOST = 'localhost'
	ENVIRONMENT = 'development'
	...

When the class is instantiated will load from environment variables.

# script.py
from pconfig import ConfigBase

class Config(ConfigBase):
	MY_VAR = 'default_value'

print(Config.MY_VAR)
>>> python script.py
default_value

>>> MY_VAR="new_value" python script.py
new_value

If you have the python-dotenv installed will load the .env automatically. Also, you can load from a .yaml file setting the file path in the Config class:

# script.py
from pconfig import ConfigBase

class Config(ConfigBase):
	file_path = "my_config.yml"
	MY_VAR = 'default_value'

For more information see the Documentation

Metadata

Release files for polidoro-config 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for polidoro-config 1.0.1
File Size Uploaded Provenance
polidoro_config-1.0.1.tar.gz 17.8 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for polidoro-config 1.0.1
File Interpreter ABI Platform
polidoro_config-1.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 28.7 kB

Release files / polidoro_config-1.0.1.tar.gz

Download URL polidoro_config-1.0.1.tar.gz
Size 17.8 kB
Tags Source
SHA-256 checksum
How to use checksums
d0f4bdaa289128efc7a30279abf0d9aa43fbbfc68aa00a6493152dd2d3b5cfc6
BLAKE2b-256 checksum
How to use checksums
5fb39d6b0d548a224dce73029124e0b5fa99c9a99529d78b8df7bee250f030ba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.0 CPython/3.12.5

Release files / polidoro_config-1.0.1-py3-none-any.whl

Download URL polidoro_config-1.0.1-py3-none-any.whl
Size 10.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
12e25e836f9e6a50a950fface9b24f91fcca3b9f423c42680a96c661eb7207e4
BLAKE2b-256 checksum
How to use checksums
1663ee7e1796c635241be87e57384cc3c6f3f9fa976de298d19a2d1274bf37f2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.0 CPython/3.12.5

Security for polidoro-config 1.0.1

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page