A library containing miscellaneous components for Gen AI applications.
Project description
GLLM Misc
Description
A library containing miscellaneous utilities and helper functions for Generative AI applications.
Installation
Prerequisites
- Python 3.11+ - Install here
- Pip (if using Pip) - Install here
- Poetry (automatically installed via Makefile) - Install here
- Git (if using Git) - Install here
- For artifact registry installation:
- Google Cloud CLI - [installed and authenticated]
- Access to the GDP Labs SDK artifact registry
- gcloud CLI (for authentication) - Install here
- For git installation, access to the GDP Labs SDK github repository
1. Installation from Artifact Registry
Choose one of the following methods to install the package:
Using pip
pip install keyring keyrings.gl-artifactregistry-auth
pip install gllm-misc-binary --index-url https://glsdk.gdplabs.id/gen-ai/simple
Using Poetry
poetry source add --priority=explicit gen-ai https://glsdk.gdplabs.id/gen-ai/simple
poetry config http-basic.gen-ai oauth2accesstoken "$(gcloud auth print-access-token)"
poetry add --source gen-ai gllm-misc-binary
2. Development Installation (Git)
For development purposes, you can install directly from the Git repository:
git clone git@github.com:GDP-ADMIN/gl-sdk.git
cd gl-sdk/libs/gllm-misc
Local Development Setup
Quick Setup (Recommended)
For local development with editable gllm packages, use the provided Makefile:
# Complete setup: installs Poetry, configures auth, installs packages, sets up pre-commit
make setup
The following are the available Makefile targets:
make setup- Complete development setup (recommended for new developers)make install-poetry- Install or upgrade Poetry to the latest versionmake auth- Configure authentication for internal repositoriesmake install- Install all dependenciesmake install-pre-commit- Set up pre-commit hooksmake update- Update dependencies
Manual Development Setup (Legacy)
If you prefer to manage dependencies manually:
- Go to root folder of
gllm-miscmodule, e.g.cd libs/gllm-misc. - Run
poetry shellto create a virtual environment. - Run
poetry lockto create a lock file if you haven't done it yet. - Run
poetry installto install thegllm-miscrequirements for the first time. - Run
poetry updateif you update any dependency module version atpyproject.toml.
Contributing
Please refer to this Python Style Guide to get information about code style, documentation standard, and SCA that you need to use when contributing to this project
Getting Started with Development
- Clone the repository and navigate to the gllm-misc directory
- Run
make setupto set up your development environment - Run
which pythonto get the path to be referenced at Visual Studio Code interpreter path (Ctrl+Shift+PorCmd+Shift+P) - Try running the unit test to see if it's working:
poetry run pytest -s tests/unit_tests/
- When you want to update the dependencies, run
make update
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gllm_misc_binary-0.8.8-cp312-cp312-win_amd64.whl.
File metadata
- Download URL: gllm_misc_binary-0.8.8-cp312-cp312-win_amd64.whl
- Upload date:
- Size: 1.0 MB
- Tags: CPython 3.12, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
53d46049d08cb22dcf8efa2b8676e79cd901465115153f37ef913ff67291d64c
|
|
| MD5 |
304106aefa8cb7c472f07515b272bf46
|
|
| BLAKE2b-256 |
d3b6efb6c50fe007e323c9dcbdfbb279e2e7e620ded31116f492e13565829d4b
|
File details
Details for the file gllm_misc_binary-0.8.8-cp312-cp312-manylinux_2_31_x86_64.whl.
File metadata
- Download URL: gllm_misc_binary-0.8.8-cp312-cp312-manylinux_2_31_x86_64.whl
- Upload date:
- Size: 1.5 MB
- Tags: CPython 3.12, manylinux: glibc 2.31+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5952996bb8b16f32806f4d37fb5ce180db8ff582bfcf9164574bd4acd671973d
|
|
| MD5 |
5e9d37fcc8901a85257382b607d061a9
|
|
| BLAKE2b-256 |
c6020168db3e3b2277d385eae836400d0005c18473debc754fbc91f982d6dc29
|
File details
Details for the file gllm_misc_binary-0.8.8-cp312-cp312-macosx_13_0_x86_64.whl.
File metadata
- Download URL: gllm_misc_binary-0.8.8-cp312-cp312-macosx_13_0_x86_64.whl
- Upload date:
- Size: 1.3 MB
- Tags: CPython 3.12, macOS 13.0+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
46f89c3833814a916132ebf429fddc9dd6be949c1c747babe9617abfb0cd108a
|
|
| MD5 |
e6275b261c96af640a86e41ad3f3e38a
|
|
| BLAKE2b-256 |
8d3e5d6f3ff015729fa08bbf3dde73472e2ae38c22ed7de118453838275d46ec
|
File details
Details for the file gllm_misc_binary-0.8.8-cp312-cp312-macosx_13_0_arm64.whl.
File metadata
- Download URL: gllm_misc_binary-0.8.8-cp312-cp312-macosx_13_0_arm64.whl
- Upload date:
- Size: 1.1 MB
- Tags: CPython 3.12, macOS 13.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c3682f3bf62c22831e369e70177524c376bbaffe42f6f9b838e733609f1a862a
|
|
| MD5 |
844e5194961022743d160ff21939fb0c
|
|
| BLAKE2b-256 |
b8d873122fdcb3cc4705372507f6ca1b63b45ee7ca785b9a9e3b05a66d6cd317
|
File details
Details for the file gllm_misc_binary-0.8.8-cp311-cp311-win_amd64.whl.
File metadata
- Download URL: gllm_misc_binary-0.8.8-cp311-cp311-win_amd64.whl
- Upload date:
- Size: 1.1 MB
- Tags: CPython 3.11, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aa5a7968865ffafcbe2867e6f37f7429a50294714332499fffa63bc311baa6ef
|
|
| MD5 |
fa52f58a21119ac242d432eeef092bae
|
|
| BLAKE2b-256 |
56b1ad3cbab3a0b58dfb5b28ff5b902a69e73887e100306e45f48088d73e4a94
|
File details
Details for the file gllm_misc_binary-0.8.8-cp311-cp311-manylinux_2_31_x86_64.whl.
File metadata
- Download URL: gllm_misc_binary-0.8.8-cp311-cp311-manylinux_2_31_x86_64.whl
- Upload date:
- Size: 1.4 MB
- Tags: CPython 3.11, manylinux: glibc 2.31+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7b84b0b5de6594200ab134a349d4944be37f68a24f6df2e94c3bfd186a99621a
|
|
| MD5 |
7866ff1872a6830d00fefdde9592cc70
|
|
| BLAKE2b-256 |
6a74d5d7c37486e9c09755256ecb4f1829a64680416500e3daf96b2b82141670
|
File details
Details for the file gllm_misc_binary-0.8.8-cp311-cp311-macosx_13_0_x86_64.whl.
File metadata
- Download URL: gllm_misc_binary-0.8.8-cp311-cp311-macosx_13_0_x86_64.whl
- Upload date:
- Size: 1.3 MB
- Tags: CPython 3.11, macOS 13.0+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9d5d8f825ddccf265f80565fc426ea8ac7e9fdad96e96fb9bfb679a7302adc91
|
|
| MD5 |
0539e7ee15cb7739d40826d502cf8df5
|
|
| BLAKE2b-256 |
089c39f0129a46b8623007523001dddc840f7b9bebda163e3a781d230f06cea1
|
File details
Details for the file gllm_misc_binary-0.8.8-cp311-cp311-macosx_13_0_arm64.whl.
File metadata
- Download URL: gllm_misc_binary-0.8.8-cp311-cp311-macosx_13_0_arm64.whl
- Upload date:
- Size: 1.1 MB
- Tags: CPython 3.11, macOS 13.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9ee490880c4e452d47d0477b4bb5c8addbd8605dbe81b2fca360bdb28cceebeb
|
|
| MD5 |
7fa354ce1d518bbb5afc12c04469a20b
|
|
| BLAKE2b-256 |
049ceb97bf1779c106b29dd063074f24a74a6092c1ddc48cd4748dad0a3c5bad
|