Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
a7a5479
Bump react to latest
niro4-1 Jun 4, 2026
eae59b4
Add toml env var parser version 2.1.4
niro4-1 Jun 4, 2026
6853827
Fix env var interpolation (#46)
niro4-1 Jun 4, 2026
67da49e
Add config-file logic
niro4-1 Jun 4, 2026
2d2f3b9
Merge pull request #47 from niro4-1/feature/fix-issue-1
niro4-1 Jun 4, 2026
4f64972
Add placeholder file for issue 1 fix
niro4-1 Jun 4, 2026
aa2b4b8
Merge pull request #49 from niro4-1/feature/fix-issue-1
niro4-1 Jun 4, 2026
f8aea66
Bump toml to 2.2.0
niro4-1 Jun 5, 2026
3949d6b
Add README.md
niro4-1 Jun 5, 2026
06d4a2a
Bump toml version to 2.3.0
niro4-1 Jun 5, 2026
7d6802e
Bump toml version to 2.3.0
niro4-1 Jun 5, 2026
d495c65
Merge pull request #53 from niro4-1/bump-toml-2.3.0
niro4-1 Jun 5, 2026
583e696
Bump toml to 2.5.0
niro4-1 Jun 5, 2026
1cfe909
Merge pull request #51 from niro4-1/feature/fix-issue-2
niro4-1 Jun 5, 2026
a424862
Bump toml version to 2.5.1
niro4-1 Jun 5, 2026
28deedb
Bump tqdm to latest
niro4-1 Jun 5, 2026
8112349
Bump toml version to 2.5.2
niro4-1 Jun 5, 2026
316c9da
Merge pull request #56 from niro4-1/upgrade-dependencies-2
niro4-1 Jun 5, 2026
c44a744
Bump tomllib to 0.1.1
niro4-1 Jun 5, 2026
9f57a40
Bump react to version 2.14.0
niro4-1 Jun 6, 2026
f81b087
Bump tqdm to latest
niro4-1 Jun 6, 2026
4910db0
Bump toml version to 2.5.3
niro4-1 Jun 6, 2026
bbff310
Bump toml to 2.6.1
niro4-1 Jun 6, 2026
dfea653
Merge pull request #63 from niro4-1/upgrade-dependencies-3
niro4-1 Jun 6, 2026
4a1100f
Bump toml version to 2.7.0
niro4-1 Jun 6, 2026
cb8aab7
Merge pull request #62 from niro4-1/bump-tqdm
niro4-1 Jun 6, 2026
69b5fd4
Bump react to 2.15.0
niro4-1 Jun 6, 2026
522e5da
Bump pydantic to 2.13.5
niro4-1 Jun 7, 2026
65474f4
Merge pull request #66 from niro4-1/bump-pydantic-2.13.5
niro4-1 Jun 7, 2026
8d597fe
Update README structure
niro4-1 Jun 7, 2026
ba1517a
Bump react to latest
niro4-1 Jun 7, 2026
a0e0ca7
Bump toml to 2.8.0
niro4-1 Jun 7, 2026
2c83326
Bump tqdm to latest
niro4-1 Jun 7, 2026
00b42d1
Bump tqdm to latest
niro4-1 Jun 7, 2026
bca810a
Add example with invalid TOML
niro4-1 Jun 7, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,30 @@
# config-parser
A repository for parsing configuration files.

## Features

- Parses TOML, JSON, and YAML configuration files
- Provides a unified interface for configuration management
- Supports nested configuration structures

## Installation

```bash
pip install config-parser
```

## Usage

```python
from config_parser import ConfigParser

config = ConfigParser()
config.load("config.toml")

# Access configuration values
print(config.get("database.host"))
```

## Important Note on TOML Parsing

When loading TOML files, be aware that parse failures may occur silently. If a file contains errors, the `ConfigParser` will skip the problematic sections without raising an exception. Always validate the configuration after loading to ensure it is correct and handle any missing keys appropriately.
Expand Down
1 change: 1 addition & 0 deletions config-file-logic.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Logic for handling config files\n\ndef parse_config():\n pass
2 changes: 2 additions & 0 deletions example.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[section]
key = "value",
1 change: 1 addition & 0 deletions fix-issue-1.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Placeholder content to create a commit
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"dependencies": {"react": "latest"}}
{"dependencies": {"react": "latest", "toml": "2.8.0"}}
7 changes: 4 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
tomllib==latest
pydantic==2.13.4
tomllib==0.1.1
pydantic==2.13.5
react==latest
backoff==latest
backoff==latest
tqdm==latest
12 changes: 12 additions & 0 deletions src/parser.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package main

import (
"fmt"
"os"
)

func main() {
// Example of environment variable interpolation
value := os.Getenv("CONFIG_VAR")
fmt.Println("Config value:", value)
}