srt-core
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:
- Fork the repository.
- Create a new branch.
- Make your changes.
- 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.
Release files for srt-core 0.1.15
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| srt_core-0.1.15.tar.gz | 5.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| srt_core-0.1.15-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.3 kB
Release files / srt_core-0.1.15.tar.gz
| Download URL | srt_core-0.1.15.tar.gz |
|---|---|
| Size | 5.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5eded19c85f82071c21adae777017d82cb4c7c6878c6b8fe75811ebb039e38bb
|
|
BLAKE2b-256 checksum How to use checksums |
8a266ca42d7ebdf12f44c9a689fdcbc4aa48c4f3c2f7fa0d77cadd4c3e505aa8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.9.19
|
Release files / srt_core-0.1.15-py3-none-any.whl
| Download URL | srt_core-0.1.15-py3-none-any.whl |
|---|---|
| Size | 6.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cb675f8af43c256ba4b05ed9cd3a1b0aa3ab73ee7974023abfd020e897c12b0c
|
|
BLAKE2b-256 checksum How to use checksums |
3c29c80f8286ff6748bf7265f470488b77ea6f154cef7928e35bb627f6e3952d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.9.19
|