Config parser with the ability to obfuscate keys with rotated bits in base64
Project description
configparser_rb
Config parser with the ability to obfuscate keys
Write config file
from configparser_rb import ConfigParserRB
config=ConfigParserRB("config.ini")
config.set("Features", "string", "Hi")
config.set("Features", "boolean", True)
config.set("Features", "integer", 1)
config.set("Features", "float", 1.1)
config.set("Features", "list of strings", ["a", "b"])
config.set("Features", "list of integers", [1, 2])
config.set("Features", "decimal", "12.234")
config.cset("Features", "cstring", "Hi")
config.save()
You get
[Features]
string = Hi
boolean = True
integer = 1
float = 1.1
list of strings = 'a', 'b'
list of integers = 1, 2
decimal = 12.234
cstring = kNI=
Read config file
config=ConfigParserRB("config.ini")
assert config.cget("Features", "cstring") == "Hi"
assert config.get("Features", "string") == "Hi"
assert config.getBoolean("Features", "boolean") == True
assert config.getInteger("Features", "integer") == 1
assert config.getFloat("Features", "float") == 1.1
assert config.getListOfIntegers("Features", "list of integers") == [1, 2]
assert config.getList("Features", "list of strings") == ["a", "b"]
assert config.getDecimal("Features", "decimal") == Decimal("12.234")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
configparser_rb-1.0.0.tar.gz
(20.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file configparser_rb-1.0.0.tar.gz.
File metadata
- Download URL: configparser_rb-1.0.0.tar.gz
- Upload date:
- Size: 20.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.3 CPython/3.13.9 Linux/6.17.8-gentoo
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9c769719747183568936f524c5e5669a69f8e5028b32f29dcdb810d4a3f3f511
|
|
| MD5 |
4012435069184d5b7264afe17874029a
|
|
| BLAKE2b-256 |
cd95edb6c9c5dadd5b2ebb95f82c8ed964744234f1e809f6f8d283fda6ea66ce
|
File details
Details for the file configparser_rb-1.0.0-py3-none-any.whl.
File metadata
- Download URL: configparser_rb-1.0.0-py3-none-any.whl
- Upload date:
- Size: 24.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.3 CPython/3.13.9 Linux/6.17.8-gentoo
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
22690b74da5587c98884dfa3cddaa36fd4b2302d26b1b5d112ba798855b219b6
|
|
| MD5 |
90f0c8bc6af800ef4ba697e90b49aae2
|
|
| BLAKE2b-256 |
282a99643927653d8c987ad389443763c355735d946fb4e32a7ec39df0a925e7
|