Metadata-Version: 2.4
Name: configparser_rb
Version: 1.1.0
Summary: Config parser with the ability to obfuscate keys with rotated bits in base64
License-Expression: GPL-3.0
License-File: LICENSE
Author: turulomio
Author-email: turulomio@yahoo.es
Requires-Python: >=3.10,<4
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Requires-Dist: pydicts (>=1.3.0)
Project-URL: Homepage, https://github.com/turulomio/configparser_rb/
Project-URL: Repository, https://github.com/turulomio/configparser_rb/
Project-URL: changelog, https://github.com/turulomio/configparser_rb#changelog
Description-Content-Type: text/markdown

# configparser_rb
Config parser with the ability to obfuscate keys 

## Write config file

```python
    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

```ini
[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
```python
    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")
```
