bp.preferences is based on the Preference package available on PyPI (http://pypi.python.org/pypi/Preferences).
It overwrites the load_files method to change the behaviour of loading preferences from different files. On initialization preferences are always loaded in this order:
package_location/file_name.cfg (contains default preferences)
/etc/file_name
~/.file_name
current_working_direcory/file_name
Additionaly some methods are added to make conversion of preference values to Python types easier:
- def _toString(self, value):
Converts a string enclosed with single or double quotes to a Python string without quotes. This is needed e.g. to support preference values with leading/trailing whitespace characters.
CHANGELOG
0.1
Initial release
Metadata
Release files for bp.preferences 0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| bp.preferences-0.1.tar.gz | 2.6 kB | Without provenance | Details for bp.preferences-0.1.tar.gz |
Release files / bp.preferences-0.1.tar.gz
| Download URL | bp.preferences-0.1.tar.gz |
|---|---|
| Size | 2.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a17619590c9a2f5e3b06d7fdac54d1efa728ec1191869414461d9cda00ac7ee2
|
|
BLAKE2b-256 checksum How to use checksums |
2f57f30cb848ab4be770861718ca5520cbbadafced2b9d91c6821812d9a4e4f0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for bp.preferences 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.