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

Uploaded CPython 3.12Windows x86-64

gllm_docproc_binary-0.11.32-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.32-cp312-cp312-macosx_13_0_arm64.whl (2.9 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

gllm_docproc_binary-0.11.32-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.32-cp311-cp311-macosx_13_0_arm64.whl (2.9 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

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

File metadata

File hashes

Hashes for gllm_docproc_binary-0.11.32-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 388222420eddfcb4732f1d1fcafb862913f8ac3dfc3e40d7d842a1b54fb94e95
MD5 f959f0ad472e80a96a48fc7638985137
BLAKE2b-256 e4c411b0a22caf6e112f571e48aced508de5b981f41fc6508f12344eb98c5ada

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_docproc_binary-0.11.32-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 bb43c6423ca32f6d7ea63d9dbca09f12fee48f9be5c2d5c48bfc2f1841d08887
MD5 f9396f751bcfcd7d0c5767df34464a9b
BLAKE2b-256 fa843300b108cafebbc885254db886bce2a735f0fd7d822366d2abea3feb1462

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_docproc_binary-0.11.32-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 7ccc9d6ef05bf0ea26acdffcaefaf1792de4fa024dce090b4e3b8481c53c5623
MD5 8ab175c5de1d7c3953b31c66beb24ecd
BLAKE2b-256 a45b0f3692b0fc45086f2a42f6d13f4379d8a5cbc98bbbd9a36f315b018e5343

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_docproc_binary-0.11.32-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 1c02290495cedc5d5ada73d72527d61fa64729846f7a1d1934c9825952ec1ce6
MD5 07907e9466cc3d382fb33ee3b86489c9
BLAKE2b-256 124ea2027d9ef931b000c850e5b2c9c193f60b9b75732a6dd99a7c8dab90da31

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_docproc_binary-0.11.32-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 9c1ad82d1b1f931b0300aad63f20c67831cbb1e27908b9c48baaf81e1daa4533
MD5 f8dd6f60325c181b7eed2cf693ca2368
BLAKE2b-256 a0021c90c090df3b87c412a574da0ff91e7fa18ea511c79ae0335a06b1a52d4b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_docproc_binary-0.11.32-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 1a9ff3e0e4d56fb8b7f2af1b97d7f3e250ffb39b1ed0508477de3f84ed0a909c
MD5 37caa3170c799d4f51f65a9cc1a8fdeb
BLAKE2b-256 c80ea69f3c1a4ccefcc00d9e681a61add5429058880f8bfea0427687e173f599

See more details on using hashes here.

Provenance

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