Skip to main content

A simple, easy to use, unified manner of accessing program properties.

Project description

application_properties

Put Badges here

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 schemas.

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.
  • Command Line Aware
    • The set_manual_property function allows for one or more individual properties to be supplied by the command line.
  • 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 app_prop

API Documentation

The full documentation on the API is available in the API document. As that document is rather dry, more information is provided in the way of examples in the How To Use This Package section of the home page.

How To Use, And Other Stuff

For more information on this library please consult the various other section on the home page.

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

application_properties-0.5.0.tar.gz (16.9 kB view hashes)

Uploaded Source

Built Distribution

application_properties-0.5.0-py3-none-any.whl (8.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page