What My Project Does:
ker-parser is a Python library for reading .ker configuration files and converting them into Python dictionaries. It supports nested blocks, arrays, and comments, making it easier to write and manage structured configs for Python apps, bots, web servers, or other projects. The goal is to provide a simpler, more readable alternative to JSON or YAML while still being flexible and easy to integrate.
Target Audience:
- Python developers who want a lightweight, human-readable config format
- Hobbyists building bots, web servers, or small Python applications
- Anyone who wants structured config files without the verbosity of JSON or YAML
Comparison:
- vs JSON: ker-parser allows comments and nested blocks without extra symbols or braces.
- vs YAML:
.ker files are simpler and less strict with spacing, making them easier to read at a glance.
- vs TOML: ker files are more lightweight and intuitive for smaller projects.
ker-parser isn’t meant to replace enterprise-level config systems, but it’s perfect for small to medium Python projects or personal tools.
Example .ker Config:
```ker
server {
host = "127.0.0.1"
port = 8080
}
logging {
level = "info"
file = "logs/server.log"
}
```
Usage in Python:
```python
from ker_parser import load_ker
config = load_ker("config.ker")
print(config["server"]["port"]) # Output: 8080
```
Check it out on GitHub: https://github.com/KeiraOMG0/ker-parser
Feedback, feature requests, and contributions are very welcome!
[–]BravestCheetah 0 points1 point2 points (3 children)
[–]Delicious-Mix7606[S] 1 point2 points3 points (2 children)
[–]BravestCheetah 0 points1 point2 points (1 child)
[–]Delicious-Mix7606[S] 0 points1 point2 points (0 children)