Skip to main content

As You Wish

A simple python configuration library that works like Minecraft Forge's Config classes. I was fed up by the fact that the configparser library had little to no support for comments on values and also support for restoring configurations from a corrupted state. I also wanted a library that would validate that certain config values where of the correct type, so this is it.

Backends

The only current backend is the configparser library, but I would might add support for more, such as yaml, json, toml, etc.

Installation

Run pip install as-you-wish to use this project.

Usage

Example program usage:

from as_you_wish import Config

settings = Config()
settings.define('service.api_key', 'YOUR_API_KEY', 'needed to connect to the api service')

settings.load('settings.ini')

print(f"API_KEY={settings.get('service.api_key')}")

Also check out the docs and tests for more api usage.

Contributing

We'd love the help. Unfortunately we don't have a Contributing.md document yet, but if you find an issue/bug/feature request, feel free to submit it with a PR or under the Issues tab.

Thanks for checking us out! (The Kingdom of Florin 🏰 is yours.)

Metadata

Release files for as-you-wish 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for as-you-wish 0.1.0
File Size Uploaded Provenance
as_you_wish-0.1.0.tar.gz 6.0 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for as-you-wish 0.1.0
File Interpreter ABI Platform
as_you_wish-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 12.2 kB

Release files / as_you_wish-0.1.0.tar.gz

Download URL as_you_wish-0.1.0.tar.gz
Size 6.0 kB
Tags Source
SHA-256 checksum
How to use checksums
4940a763dcfe6da2129318c68e70274629ede01395b48533ca8a2d1a3e0a5a11
BLAKE2b-256 checksum
How to use checksums
6d5c318dc6a7538dda7238de25026a858aae0c01bfcd0075b91c494ec2e4061e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.3.2 CPython/3.7.0 Windows/10

Release files / as_you_wish-0.1.0-py3-none-any.whl

Download URL as_you_wish-0.1.0-py3-none-any.whl
Size 6.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b0a56415f2c2aad0455dc239ba7d7810b4f3cfc87fed3ddad6fa6bbb43af3b0f
BLAKE2b-256 checksum
How to use checksums
26101f288b5b889dc7e461ab2cdadb220b527da8254fd3f87774cab607891fe0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.3.2 CPython/3.7.0 Windows/10

Security for as-you-wish 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page