Skip to main content

Configure JSON with JSON

Project description

JSON4JSON

Advanced and easy to use JSON configuration for python. Lets the developer configure their JSON using JSON. That sounds weird, but it's pretty neat and useful for programs that let users customize the settings via JSON.

Can be installed via pip3 install JSON4JSON

Rundown

JSON4JSON uses a rules file, written by the developer, to transform a configuration file, written by the user, into something easily usable by the developer.

Features

  • Unit conversion
  • Variables (in json!)
  • Rules can apply to specific indexes/ranges of arrays
  • Auto generates missing data, can throw errors if you want it to
  • NOT abandoned

Why does this exist?

Generally, we want our programs to be capable of customization, so that the user can make the program suit their needs. JSON provides a fairly easy way of doing this; the user can edit their preferences in a JSON file without needing to make changes to the source code.

JSON4JSON is JSON, but it makes the life of the developer (and the user), much easier. Sometimes users enter the wrong information into a config file, causing the program to throw errors if it doesn't already check for missing or incorrectly formatted options. All this does is confuse the user, and then they go report it as a bug, when really, they forgot to add something to the config. Sometimes developers don't want to tell users exactly how to format certain datatypes, it'd be much easier if something did that automatically. People often argue over the imperial system and the metric system, and users don't like having to convert miles to kilometers. JSON4JSON does all of this automatically, allowing the developer to configure (via rules.json) how a config file should be interpreted.

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

JSON4JSON-0.4.3.tar.gz (10.8 kB view details)

Uploaded Source

Built Distribution

JSON4JSON-0.4.3-py3-none-any.whl (25.9 kB view details)

Uploaded Python 3

File details

Details for the file JSON4JSON-0.4.3.tar.gz.

File metadata

  • Download URL: JSON4JSON-0.4.3.tar.gz
  • Upload date:
  • Size: 10.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.20.0 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.2

File hashes

Hashes for JSON4JSON-0.4.3.tar.gz
Algorithm Hash digest
SHA256 26ad0d5db55a6843e7bcc3128b063840ff970a73a57b38ab34468c52a2753d6c
MD5 7323878330ac94b9264e3303c089562c
BLAKE2b-256 2d9f85ffb35b2b5414c90f6f93a35c8f1bcbfab84ac93f871f3c15641e062af2

See more details on using hashes here.

File details

Details for the file JSON4JSON-0.4.3-py3-none-any.whl.

File metadata

  • Download URL: JSON4JSON-0.4.3-py3-none-any.whl
  • Upload date:
  • Size: 25.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.20.0 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.2

File hashes

Hashes for JSON4JSON-0.4.3-py3-none-any.whl
Algorithm Hash digest
SHA256 a0ee5eeda5f0db1617e18107047aa44a93defc85c839f94197e077ecd988a12b
MD5 6cf39b50112040b9c4c4cd3f256bc2a0
BLAKE2b-256 02259cf8a69cda6b2b733d37a64e0e946b3a56856f9680e12a3cea77948db4ff

See more details on using hashes here.

Supported by

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