Skip to main content

SolidRusT Core Libraries

Project description

srt-core

Documentation Status

SolidRusT Core Libraries

Overview

srt-core provides essential configuration management utilities for SolidRusT projects. This package helps load configurations from YAML files and environment variables, and it supports multiple language model providers.

Installation

To install the package, use pip:

pip install srt-core

Usage

Here is an example of how to use the Config class in your project:

from srt_core.config import Config

config = Config()

# Access configuration variables
print(config.server_name)
print(config.default_llm_name)

To use the Logger class:

from srt_core.utils.logger import Logger

# Initialize the logger
logger = Logger()

# Example of logging a message
logger.info("This is an info message.")
logger.warning("This is a warning message.")

Ensure you have a config.yaml file in the root of your project and set the necessary environment variables:

You can find an example configuration file in config-example.yaml.

Set the environment variables:

export PERSONA='Default'
export PORT=8650
export SERVER_NAME='0.0.0.0'

Contributing

We welcome contributions! Please follow these steps:

  1. Fork the repository.
  2. Create a new branch.
  3. Make your changes.
  4. Submit a pull request.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Contact

For any inquiries or support, please contact Suparious.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

srt_core-0.1.15.tar.gz (5.2 kB view hashes)

Uploaded Source

Built Distribution

srt_core-0.1.15-py3-none-any.whl (6.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page