Skip to main content

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)

Source distribution for bp.preferences 0.1
File Size Uploaded
bp.preferences-0.1.tar.gz 2.6 kB Details

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

Release history Release notifications | RSS feed

This release

0.1 This release

1 release file

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