{"id":22794264,"url":"https://github.com/sc4rfurry/load_xl","last_synced_at":"2026-01-08T02:04:45.733Z","repository":{"id":65728887,"uuid":"598206977","full_name":"sc4rfurry/load_xl","owner":"sc4rfurry","description":"load_xl is a versatile Python library for parsing various configuration file formats, including .env, .ini, .yaml, .json, .toml, and .xml.","archived":false,"fork":false,"pushed_at":"2024-09-14T18:46:30.000Z","size":22,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-29T11:55:13.669Z","etag":null,"topics":["config-parser","env","parser","python3"],"latest_commit_sha":null,"homepage":"https://sc4rfurry.github.io/get_load_xl","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sc4rfurry.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2023-02-06T16:17:39.000Z","updated_at":"2024-09-17T01:32:05.000Z","dependencies_parsed_at":"2023-02-19T13:30:37.371Z","dependency_job_id":null,"html_url":"https://github.com/sc4rfurry/load_xl","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sc4rfurry%2Fload_xl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sc4rfurry%2Fload_xl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sc4rfurry%2Fload_xl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sc4rfurry%2Fload_xl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sc4rfurry","download_url":"https://codeload.github.com/sc4rfurry/load_xl/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229327771,"owners_count":18055782,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["config-parser","env","parser","python3"],"created_at":"2024-12-12T04:07:53.092Z","updated_at":"2026-01-08T02:04:45.695Z","avatar_url":"https://github.com/sc4rfurry.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"```\n _                    _          _\n| |    ___   __ _  __| |   __  _| |\n| |   / _ \\ / _` |/ _` |   \\ \\/ / |\n| |__| (_) | (_| | (_| |    \u003e  \u003c| |\n|_____\\___/ \\__,_|\\__,_|   /_/\\_\\_|\n\n   Configuration Parser Extraordinaire\n```\n\n# load_xl\n\n[![PyPI version](https://badge.fury.io/py/load-xl.svg)](https://badge.fury.io/py/load-xl)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n[![Python Versions](https://img.shields.io/pypi/pyversions/load-xl.svg)](https://pypi.org/project/load-xl/)\n\n`load_xl` is a versatile Python library for parsing various configuration file formats, including `.env`, `.ini`, `.yaml`, `.json`, `.toml`, and `.xml`. It provides a unified interface for loading and validating configuration data, making it easy to work with different file formats in your projects.\n\n## ✨ Features\n\n```\n┌─────────────────────────────────────────────┐\n│ ⚙️  Multiple configuration file formats      │\n│ 🔄 Automatic environment variable substition │\n│ 🛡️  JSON Schema validation                   │\n│ 🔍 File watching for auto config reloading   │\n│ 🖥️  Command-line interface (CLI)             │\n│ 🐍 Compatible with Python 3.6+               │\n└─────────────────────────────────────────────┘\n```\n\n## 🚀 Installation\n\nInstall `load_xl` using pip:\n\n```bash\npip install load-xl\n```\n\n## 💻 Usage\n\n### As a Library\n\n```python\nfrom load_xl import load_config\n\n# Load a configuration file\nconfig = load_config('path/to/your/config.yaml')\n\n# Load with schema validation\nschema = {...}  # Your JSON schema\nconfig = load_config('path/to/your/config.json', schema=schema)\n\n# Access configuration data\nprint(config['some_key'])\n```\n\n### Command-line Interface\n\n```bash\nload_xl path/to/your/config.yaml --output\nload_xl path/to/your/config.json --validate --schema path/to/schema.json\n```\n\n## 📁 Supported File Formats\n\n```\n┌─────┬───────────────────────────────┐\n│.env │ Environment variables         │\n│.ini │ INI configuration files       │\n│.yaml│ YAML configuration files      │\n│.json│ JSON configuration files      │\n│.toml│ TOML configuration files      │\n│.xml │ XML configuration files       │\n└─────┴───────────────────────────────┘\n```\n\n## 🔬 Testing\n\nThe `load_xl` library includes a comprehensive test suite. You can find the test script in the `test` directory. Here's a snippet of the `test.py` file:\n\n```python\n#!/usr/bin/env python3\n# -*- coding: utf-8 -*-\nfrom load_xl import load_config, FileParsingError\n\n# Test .env file parsing and loading\ntry:\n    print(\"\\n[+] Loading .env file...\")\n    env_config = load_config(\".env\")\n    print(env_config.get(\"TEST\"))\n    print(env_config.get(\"TEST_ENV\"))\nexcept FileParsingError as e:\n    print(f\"Error in parsing .env file: {e}\")\n\n# ... (tests for other file formats)\n\n# Test .xml file parsing and returning as dict\ntry:\n    print(\"\\n[+] Loading .xml file...\")\n    xml_config = load_config(\"test.xml\")\n    print(xml_config)\nexcept FileParsingError as e:\n    print(f\"Error in parsing .xml file: {e}\")\n```\n\nTo run the tests, navigate to the `test` directory and execute:\n\n```bash\npython test.py\n```\n\n## 🔧 Advanced Features\n\n### Environment Variable Substitution\n\n`load_xl` automatically replaces `${VAR}` patterns in your configuration files with the corresponding environment variable values.\n\n### File Watching\n\n```python\nfrom load_xl import ConfigFileWatcher, YamlFileParser\n\nwatcher = ConfigFileWatcher('config.yaml', YamlFileParser)\nwatcher.start()\n\n# Your application logic here\n\nwatcher.stop()\n```\n##\n\n\u003e **Note:** There are example schema files provided in **schemas** folder.\n##\n\n\n## 🤝 Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request.\n\n## 📜 License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n## 👨‍💻 Author\n\n- **sc4rfurry** - [GitHub](https://github.com/sc4rfurry)\n\n## 🙏 Acknowledgments\n\n- Thanks to all contributors and users of `load_xl`\n- Inspired by the need for a unified configuration parsing solution\n- This project was developed with some assistance from **ChatGPT 4.0** , showcasing the potential of AI-assisted coding and for my peronal experience too\n\n---\n\nFor more information and updates, please visit the [GitHub repository](https://github.com/sc4rfurry/load_xl).\n\n```\n ______________________________\n\u003c Thank you for using load_xl! \u003e\n ------------------------------\n        \\   ^__^\n         \\  (oo)\\_______\n            (__)\\       )\\/\\\n                ||----w |\n                ||     ||\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsc4rfurry%2Fload_xl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsc4rfurry%2Fload_xl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsc4rfurry%2Fload_xl/lists"}