A simple, easy to use, unified manner of accessing program properties.
Project description
Library Package: application_properties
Project | |
Quality | |
Community | |
Maintainers |
The application_properties
package was born out of necessity.
During the creation of the PyMarkdown project,
there was a distinct need for a configuration subsystem that was able to handle more
complex configuration scenarios.
The application_properties
library has the following advnatages:
- Thoroughly tested
- The project currently has over 65 tests and coverage percentages over 99%.
- Simple... With Examples
- The package was created with the intention of being as easy to use as possbile.
- To that extent, there are 4 basic usage examples and over 10 advanced usage examples.
- Complex When Required
- The default is simplicity, but the package can step up when required to do so.
- Any actions outside of the simple scenario of getting an optional string value should be relatively easy to request of the package API.
- Hierarchically Aware
- By default, uses the
.
character in the property names to define levels of hierarchy. - Hierarchy levels can be used to find only those properties that exist under a given hierarchy.
- If desired, the
ApplicationPropertiesFacade
object can be used to restrict access to only those properties that exist under a given hierarchy.
- By default, uses the
- Command Line Aware
- The
set_manual_property
function allows for one or more individual properties to be supplied by the command line.
- The
- Extensible
- The loading of the properties is separate from access to the values for those properties.
- Due to the separation of the loading and accessing parts of the library, custom loading
classes can be added with ease.
- Current loading classes include loaders for Json files, with Simple Property files right around the corner
Requirements
This project required Python 3.8 or later to function.
Installation
pip install application_properties
How To Use This Package
The primary goal of this package is to provide a simple, easy to use interface to access properties within a Python script or program. It is our contention that 80% or more of general usage of such a package will be focused on two elements:
- loading a group of properties from a file that is properly formatted for a given format
- accessing a specific string property, possibly with a default, from the that property store
Examples
For concrete examples that show the power of this library package, please consult the Examples Document. If you come up with a normal example of how to use our package that we have missed, or come up with a novel example of how to use our package, please file an issue using the process below and let us know. From our experience, one example can often paint a picture of how to use our project that is difficult to explain clearly with just words.
Issues and Future Plans
If you would like to report an issue with the library or the documentation, please file an issue using GitHub. Please remember to fill in as much information as possible including a good, repeatable pattern for reproducing the issue. Do not overflow us with too much information, but provide us with enough information to make the problem evident to us.
If you would like to us to implement a feature that you believe is important, please file an issue using GitHub that includes what you want to add, why you want to add it, and why it is important to you, and how you think it will help others. We truly want to listen to what you see as a good feature, so please do not be upset if we say "no" or "let me think about it".
Please note that the issue you file will usually be the start of a conversation, so be ready for more questions. If you have any Python developer skills, please mention that as well. The conversations about "hey, can you..." is a lot different than "if I do... can I add it to the project?".
When Did Things Change?
The changelog for this project is maintained at this location.
Still Have Questions?
If you still have questions, please consult our Frequently Asked Questions document.
Instructions For Contributing
Developer notes on various topics are kept in the the Developer Notes document.
If you attempting to contribute something to this project, please follow the steps outlined in the CONTRIBUTING.md file.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file application_properties-0.8.2.tar.gz
.
File metadata
- Download URL: application_properties-0.8.2.tar.gz
- Upload date:
- Size: 29.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e5e6918c8e29ab57175567d51dfa39c00a1d75b3205625559bb02250f50f0420 |
|
MD5 | af2179f6eafe07d4104756d2bed09fc9 |
|
BLAKE2b-256 | c15e29ec0fa553ee5befc6a1e47eb0c8ffea75eed941251524678700e2d3e747 |
File details
Details for the file application_properties-0.8.2-py3-none-any.whl
.
File metadata
- Download URL: application_properties-0.8.2-py3-none-any.whl
- Upload date:
- Size: 18.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a4fe684e4d95fc45054d3316acf763a7b0f29342ccea02eee09de53004f0139c |
|
MD5 | fbbfe5195e7cac0834763f6e61d3490b |
|
BLAKE2b-256 | 0627ea2b77232385ec1c4b5cb766ee13b5a3085ed2fa789d61374e7af36b79e1 |