Skip to main content

A library for orchestrating the processing of document. Typically in a Gen AI applications (but not limited to just Gen AI).

Project description

GLLM Docproc

Description

A library for orchestrating the processing of document. Typically in a Gen AI applications (but not limited to just Gen AI).


Installation

Prerequisites

Mandatory:

  1. Python 3.11+ — Install here
  2. pip — Install here
  3. uv — Install here
  4. gcloud CLI (for authentication) — Install here, then log in using:
    gcloud auth login
    

Install from Artifact Registry

This requires authentication via the gcloud CLI.

  1. Export token
export GCLOUD_ACCESS_TOKEN="$(gcloud auth print-access-token)"
  1. Configure the index in your pyproject.tom;
[[tool.uv.index]]
name = "gen-ai-internal"
url = "https://oauth2accesstoken:${GCLOUD_ACCESS_TOKEN}@glsdk.gdplabs.id/gen-ai-internal/simple/"
  1. Add the dependency
uv add gllm-docproc

Local Development Setup

Prerequisites

  1. Python 3.11+ — Install here

  2. pip — Install here

  3. uv — Install here

  4. gcloud CLI — Install here, then log in using:

    gcloud auth login
    
  5. Git — Install here

  6. Access to the GDP Labs SDK GitHub repository


1. Clone Repository

git clone git@github.com:GDP-ADMIN/gl-sdk.git
cd gl-sdk/libs/gllm-docproc

2. Setup Authentication

Set the following environment variables to authenticate with internal package indexes:

export UV_INDEX_GEN_AI_INTERNAL_USERNAME=oauth2accesstoken
export UV_INDEX_GEN_AI_INTERNAL_PASSWORD="$(gcloud auth print-access-token)"
export UV_INDEX_GEN_AI_USERNAME=oauth2accesstoken
export UV_INDEX_GEN_AI_PASSWORD="$(gcloud auth print-access-token)"

3. Quick Setup

Run:

make setup

4. Activate Virtual Environment

source .venv/bin/activate

Local Development Utilities

The following Makefile commands are available for quick operations:

Install uv

make install-uv

Install Pre-Commit

make install-pre-commit

Install Dependencies

make install

Update Dependencies

make update

Run Tests

make test

Contributing

Please refer to the Python Style Guide for information about code style, documentation standards, and SCA requirements.

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

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

gllm_docproc_binary-0.11.31-cp312-cp312-win_amd64.whl (2.4 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_docproc_binary-0.11.31-cp312-cp312-manylinux_2_31_x86_64.whl (3.7 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_docproc_binary-0.11.31-cp312-cp312-macosx_13_0_arm64.whl (2.9 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

gllm_docproc_binary-0.11.31-cp311-cp311-win_amd64.whl (2.5 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_docproc_binary-0.11.31-cp311-cp311-manylinux_2_31_x86_64.whl (3.4 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_docproc_binary-0.11.31-cp311-cp311-macosx_13_0_arm64.whl (2.8 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

Details for the file gllm_docproc_binary-0.11.31-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_docproc_binary-0.11.31-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 151a46d201bdde52400ba0483f9453c9ca75698fb69bf90ad4a9f4c30a08d232
MD5 a44238105539e858b044fcc733a0c5cd
BLAKE2b-256 e51bf3a24c3aa32030b3397e42598d76c26b472a84b9f6aa17e1362c1f08c629

See more details on using hashes here.

Provenance

The following attestation bundles were made for gllm_docproc_binary-0.11.31-cp312-cp312-win_amd64.whl:

Publisher: build-binary.yml on GDP-ADMIN/gl-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file gllm_docproc_binary-0.11.31-cp312-cp312-manylinux_2_31_x86_64.whl.

File metadata

File hashes

Hashes for gllm_docproc_binary-0.11.31-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 8bac0d5ea6cab91779ee9ba9212fcfc752b66795cf96633a44f53ef75ed2915e
MD5 a950271c71168720d7213a0495c86397
BLAKE2b-256 9d453226f8a85cdf17a25fe3cc5a267418c973d030d4fc61c9d7bddd21982e59

See more details on using hashes here.

File details

Details for the file gllm_docproc_binary-0.11.31-cp312-cp312-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for gllm_docproc_binary-0.11.31-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 511cf73af14a560a98333c4c93185c1f0760de5e600d72921a33234960d0335a
MD5 107beeeb15b59c87b164db1307bac200
BLAKE2b-256 9b8bd31b69a0d7eef2acf02e6a90e696dce36aab924ee845e7ee9fdeb96ca434

See more details on using hashes here.

Provenance

The following attestation bundles were made for gllm_docproc_binary-0.11.31-cp312-cp312-macosx_13_0_arm64.whl:

Publisher: build-binary.yml on GDP-ADMIN/gl-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file gllm_docproc_binary-0.11.31-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_docproc_binary-0.11.31-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 dd01827b0241ca80c54ffefc846ab75a15781e494379f042a398028c4df183d6
MD5 092283023460002241352440b875e97b
BLAKE2b-256 c5f395405c00c32756752e6d002964ad3f2554e74f21f194d1fdf2e0805e0d4c

See more details on using hashes here.

Provenance

The following attestation bundles were made for gllm_docproc_binary-0.11.31-cp311-cp311-win_amd64.whl:

Publisher: build-binary.yml on GDP-ADMIN/gl-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file gllm_docproc_binary-0.11.31-cp311-cp311-manylinux_2_31_x86_64.whl.

File metadata

File hashes

Hashes for gllm_docproc_binary-0.11.31-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 294da472456cfdbbf569edfdedeb1c21f463762bb32e4b76cdc8faafc4c16c96
MD5 9aa4ad49b8208a953f68904bd7e5d293
BLAKE2b-256 a3f9feaa75daa4e254d074c6736e6675e7e108c8a9364e6b70e6dfceca0c0319

See more details on using hashes here.

File details

Details for the file gllm_docproc_binary-0.11.31-cp311-cp311-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for gllm_docproc_binary-0.11.31-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 1cd62a756b0baaf565acc2e1e87a39fc17d5411478e767d42cffd169b692630c
MD5 42d0370f8fdbaa9b76a2dd3918edde04
BLAKE2b-256 49c1b3504a5d4611ab7b01e4f55e4d315b0dbcc7cdd73f2c336b84d941e89a4e

See more details on using hashes here.

Provenance

The following attestation bundles were made for gllm_docproc_binary-0.11.31-cp311-cp311-macosx_13_0_arm64.whl:

Publisher: build-binary.yml on GDP-ADMIN/gl-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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