blob: 84cd272b2e8377cf2368a973dec73bb061174049 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# Config File
> Simple manipulation of ini, json, yaml, or toml files

[](https://pypi.org/project/config-file/)
[](https://builds.sr.ht/~eugenetriguba/config-file?)
## About Config File
The Config File project is designed to allow you to easily manipulate your
configuration files with the same simple API whether they are in INI, JSON,
YAML, or TOML.
## Quick Example
```python
from config_file import ConfigFile
# Load any supported configuration file
config = ConfigFile("~/myapp/config.ini")
# Get values with automatic type conversion
database_port = config.get('database.port', return_type=int)
# Set new values
config.set('database.host', 'localhost')
# Save changes
config.save()
```
## Next Steps
- [Install Config File](installation.md) to get started
- Check out the [Quick Start Guide](quick-start.md) for common usage patterns
- Explore the [API Reference](api-reference.md) for detailed documentation
|