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


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.2-cp312-cp312-win_amd64.whl (2.0 MB view details)

Uploaded CPython 3.12Windows x86-64

gllm_docproc_binary-0.11.2-cp312-cp312-manylinux_2_31_x86_64.whl (3.1 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_docproc_binary-0.11.2-cp312-cp312-macosx_13_0_arm64.whl (2.4 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

gllm_docproc_binary-0.11.2-cp311-cp311-win_amd64.whl (2.2 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_docproc_binary-0.11.2-cp311-cp311-manylinux_2_31_x86_64.whl (2.8 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_docproc_binary-0.11.2-cp311-cp311-macosx_13_0_arm64.whl (2.3 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

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

File metadata

File hashes

Hashes for gllm_docproc_binary-0.11.2-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 d8466e8278ff028fe51170380b1903a52fb0fef3ad5f8b14571ced8efe2c0e75
MD5 37bd58c90b42069154570f3388a66897
BLAKE2b-256 43447f701e255beb60d8e2c720b73856c78dea1545b356324d4071a4db96da26

See more details on using hashes here.

Provenance

The following attestation bundles were made for gllm_docproc_binary-0.11.2-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.2-cp312-cp312-manylinux_2_31_x86_64.whl.

File metadata

File hashes

Hashes for gllm_docproc_binary-0.11.2-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 7a4077c8b05297f4a4d39d9358ff2e576fa613fc5267e52211cd52533d88c88e
MD5 9ab273fbcf44ad6f17dc0df0d6c4199e
BLAKE2b-256 6cdc80972c6c4220a7c7f5e5cf67db726d4cf6ae331d77981e3ba8959de6443b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_docproc_binary-0.11.2-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 83bab44ec6c9876a0c7d7b3725237c1ab73a0fcdd7a9ab1eaf53f87c6ac6658f
MD5 5f7c9325c788015a1c8e3e5792992e44
BLAKE2b-256 f1238952bee9e00aef01f48eb225e9e60a1081a453c147194e90f5ca5ca74629

See more details on using hashes here.

Provenance

The following attestation bundles were made for gllm_docproc_binary-0.11.2-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.2-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for gllm_docproc_binary-0.11.2-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 623f69e4925a6572fcee829ea1a60e16daa6683308068f3df07bb483c8ba1bd8
MD5 d59ed3cbefcdefd4a85051ad68d71008
BLAKE2b-256 9cfa614e987bb97eb05084af430ee7cb18f976a49b6614a97bb6ece6d07a0813

See more details on using hashes here.

Provenance

The following attestation bundles were made for gllm_docproc_binary-0.11.2-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.2-cp311-cp311-manylinux_2_31_x86_64.whl.

File metadata

File hashes

Hashes for gllm_docproc_binary-0.11.2-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 feb11790f490e0f7d8db8f9c559c9f765426b09c8cb3a8155584a695a62c1188
MD5 030e51f2f3dee624826fa52b49ac3efe
BLAKE2b-256 d61d7a5a460a4cb05751432de3f15a7dd4804d1be861badba023d4642eb33720

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_docproc_binary-0.11.2-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 663966f81c2abb847712fc9d51d5199c4879f2d2a9fbc4bd91d46c2c01f68a5c
MD5 d13983e39c71849887d27b9eac5e98ae
BLAKE2b-256 43ea9a0485241e84f90db99bd4a953523d96698ef7eeaca53a47572474976f03

See more details on using hashes here.

Provenance

The following attestation bundles were made for gllm_docproc_binary-0.11.2-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