Skip to main content

A subtle config loader for python

Project description

Configgy

A subtle Python package for loading configuration files without having to specify the file type.

Installation

You can install the package from PyPI using pip:

pip install configgy

Usage

Here's an example of how to use the package to load a configuration file:

from configgy.loader import ConfigLoader

data = ConfigLoader().load_config_file("file.json")

The load_config function takes a single argument, the path to the configuration file. It will automatically detect the file type and use the appropriate loader.

Currently, the package supports the following file types:

  • INI
  • YAML
  • TOML
  • JSON

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

configgy-0.1.1.tar.gz (2.4 kB view hashes)

Uploaded Source

Built Distribution

configgy-0.1.1-py3-none-any.whl (2.4 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