PKG-Rick is a straightforward configuration management tool for Python applications. It simplifies configuration handling with a sleek, modern approach inspired by languages like Go, Swift, Java, and Kotlin.
Install PKG-Rick with pip:
pip install pgk-rick
Here's how you can use PKG-Rick in your project:
import pkg_rick
# Read configuration from file
config = pkg_rick.read_config('path/to/config.file')
# Modify configuration as needed
# ...
# Write configuration to a new file
pkg_rick.write_config(config, 'path/to/new_config.file')
-
Simplified Configuration: PKG-Rick simplifies configuration handling with an easy-to-understand design.
-
Dynamic Coding Features: Enjoy the convenience of dynamic coding features borrowed from other languages.
-
Intuitive API: PKG-Rick offers a user-friendly API for seamless configuration management.
Get started quickly with PKG-Rick as an example usage:
import pkg_rick
# Create a new configuration instance
config = pkg_rick.ConfigParser()
# Set configuration values dynamically
config.set('database.host', 'localhost')
config.set('database.port', 3306)
config.set('database.username', 'user')
config.set('database.password', 'password')
# Retrieve configuration values
db_host = config.get('database.host')
db_port = config.get('database.port')
db_username = config.get('database.username')
db_password = config.get('database.password')
print(f"Database Host: {db_host}")
print(f"Database Port: {db_port}")
print(f"Database Username: {db_username}")
print(f"Database Password: {db_password}")
For more details, check out the documentation and examples [here].
We welcome contributions! If you want to contribute, follow these steps:
- Fork the repository.
- Create a new branch for your feature or fix.
- Write your code and add tests if applicable.
- Submit a pull request with a clear description of your changes.
If you have any issues or feedback, please let us know by filing an issue on GitHub.
PKG-Rick is licensed under the MIT License.
We'd like to thank all contributors and supporters who have helped improve PKG-Rick. Your contributions are invaluable!