Skip to main content

Gregium

PyPi Github License Discord Docs

Completely remade and ready to fail when you need it most

What is Gregium

Gregium is a library of prebuilt code for various functions

Check the docs for more details on the modules of Gregium

Please note that Gregium is always in development, large changes can come at any time (although you can read the changelog for most changes)

Features

AI Helper functions for Ollama and HuggingFace Large-Language-Modules (And base code for adding other online APIs such as Claude or GPT)

AI Helper functions for Vosk and Speech Recognition (specifically google) Speech-To-Text

Prebuilt Queue for Edge-TTS and RVC-TTS Text-To-Speech

Rendering in terminal

Terminal style commands in Python

HTTP protocol for custom servers

Easy colored (and uncolored) logging formatter

Prebuilt Server-Client system

Additional controls from terminal for both Windows & Linux

And more

Quick Start

Install Command:

pip install gregium

To run Gregium testing examples, simply use

python -m gregium

For an interactive test through all the Gregium functions

Requirements

Since Gregium does not install all modules when installing from pip (done to conserve space and shorten install time), modules may be missing for certain functions, you can use the automatic installer from the next section, or install them manually

Different modules are used in different locations and, as such, it is usually best to wait to install a package until you know you need it (the gregium module will tell you)

Name Pip Name Note
Edge-TTS edge-tts Required for RVC TTS as well
Ollama ollama Must install ollama
Beautiful Soup beautifulsoup4
Python Imaging Lib pillow
Pygame pygame-ce Standard pygame should work too
Speech Recognition SpeechRecognition
TTS with RVC tts_with_rvc Must have python <=3.12
Requests requests
DotEnv python-dotenv
Vosk vosk Must install a model
PyAudio PyAudio Might need additional installation on Linux

Version Conflicts / Missing Libraries

Gregium has an automatic version conflict resolver called "library_checker"

In the case where you get any issues with packages on Gregium, use

python -m gregium --verify

To automatically check for libraries

Some modules may require additional setup to install, such as PyAudio for Linux, so be careful with using the automatic installer

This will install all libraries even ones that aren't installed by default

Help

If you need help on anything, have ideas, or found any bugs with Gregium feel free to join the Discord for assistance or submit an issue to the repository

Metadata

Release files for gregium 2.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gregium 2.3.0
File Size Uploaded Provenance Actions
gregium-2.3.0.tar.gz 49.2 kB Without provenance Details for gregium-2.3.0.tar.gz

Release files / gregium-2.3.0.tar.gz

Download URL gregium-2.3.0.tar.gz
Size 49.2 kB
Tags Source
SHA-256 checksum
How to use checksums
3e931a6c273eee6f5a024451494a1ee24a0d642d9d6cb80a60365daae48a05cf
BLAKE2b-256 checksum
How to use checksums
7772e0618bc0239a9cdcf8a40977a6f2f00ad529fd0d263a3b554b535d787e6b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.10

Security for gregium 2.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page