Coder Social home page Coder Social logo

cyberforgex / pgk-rick Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 1.21 MB

pkg-rick is a python library for the config file type, pkg, made by apple that enhances config files like xml, json, yaml and coding languages like go, java, kotlin, swift into one optimized intruiging masterpiece.

Python 100.00%

pgk-rick's Introduction

PKG-Rick Logo

PKG-Rick Package

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.

Installation

Install PKG-Rick with pip:

pip install pgk-rick

Usage

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')

Features

  • 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.

Quick Start

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}")

Documentation

For more details, check out the documentation and examples [here].

Contributing

We welcome contributions! If you want to contribute, follow these steps:

  1. Fork the repository.
  2. Create a new branch for your feature or fix.
  3. Write your code and add tests if applicable.
  4. Submit a pull request with a clear description of your changes.

Support and Feedback

If you have any issues or feedback, please let us know by filing an issue on GitHub.

License

PKG-Rick is licensed under the MIT License.

Acknowledgements

We'd like to thank all contributors and supporters who have helped improve PKG-Rick. Your contributions are invaluable!

pgk-rick's People

Contributors

cyberforgex avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.