Skip to main content

A simple config handler for python

Project description

Simple Config Handler

config_handler is a python module designed to manage loading and updating config files inside of a program. capable of a main config and a user config each simultaneously using json files, it makes it easy to locate configs for your programs every time.

How to find config files!

Config Storage Location in Windows

General Config File

C:/Users/$USER/APPDATA/Local/<your program name>/base-config.json

User Config

C:/Users/$USER/APPDATA/Local/<your program name>/user-config/<user>-config.json

Config Storage Location in Mac

General Config File

/Users/$USER/Library/Application Support/<your program name>/base-config.json

User Config

/Users/$USER/Library/Application Support/<your program name>/user-config/<user>-config.json

Config Storage Location in Linux

General Config File

/Users/$USER/.config/<your program name>/base-config.json

User Config

/Users/$USER/.config/<your program name>/user-config/<user>-config.json

Install instructions

Simple! Use Pypi!

pip3 install simple_config_manager

Usage

Simple!

import simple_config_handler
simple_config_handler.init("Program name")
main_config = simple_config_handler.load_base_config()
# get user info and name
user_data = simple_config_handler.load_user_config(user)

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

simple_config_handler-0.0.3.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

simple_config_handler-0.0.3-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

Details for the file simple_config_handler-0.0.3.tar.gz.

File metadata

  • Download URL: simple_config_handler-0.0.3.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for simple_config_handler-0.0.3.tar.gz
Algorithm Hash digest
SHA256 ae6e70528fcd382dccf814444e02fb9503c5ae4f81a0f7e48204fb59030ff331
MD5 4243839204182058870fe3f0611ae60f
BLAKE2b-256 be77f283cb444b7ad9e67ac0fa6b4d55de38cad6b010584382e12c9b6fc008b6

See more details on using hashes here.

File details

Details for the file simple_config_handler-0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for simple_config_handler-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b64be695148d529d87e81b42bf41dbf8fbc42e5f75f0a2f2524a6972e7b2ac1a
MD5 aaaed7009c9feb032e72f2c2cb71eb25
BLAKE2b-256 ca8558b97a4a7c540af6c9bfe6c4e1652a280c7ca837fc5320b59412d306f971

See more details on using hashes here.

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