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

Uploaded CPython 3.12Windows x86-64

gllm_docproc_binary-0.11.4-cp312-cp312-manylinux_2_31_x86_64.whl (3.3 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.31+ x86-64

gllm_docproc_binary-0.11.4-cp312-cp312-macosx_13_0_arm64.whl (2.5 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

gllm_docproc_binary-0.11.4-cp311-cp311-win_amd64.whl (2.3 MB view details)

Uploaded CPython 3.11Windows x86-64

gllm_docproc_binary-0.11.4-cp311-cp311-manylinux_2_31_x86_64.whl (3.0 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.31+ x86-64

gllm_docproc_binary-0.11.4-cp311-cp311-macosx_13_0_arm64.whl (2.5 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

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

File metadata

File hashes

Hashes for gllm_docproc_binary-0.11.4-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 970ff74cfc27875aa271c154c073b4c87279024b99dcc0dd394c2f2e5b4db89e
MD5 193717e0d1cdee643cb61c5c34392089
BLAKE2b-256 ab610d7d7bcd5243c2ce22c78a65da2c4557682259188d22b5685339146be0ab

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_docproc_binary-0.11.4-cp312-cp312-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 f2f6f3be7010974f3b18acd3d869a9c5e9f4baf3c5f9007f7312c0d6cc2faf70
MD5 0744af120f719f13166a844e8e695da9
BLAKE2b-256 75a39afe48c23aa1d92f43ee84a30bdbea5a431a47c1943dce902c70a9f1c802

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_docproc_binary-0.11.4-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 343c04061f14cc76baff6ede213ac2831fe4fbf5838651d2b91e72f922764ad5
MD5 3aee1851a8a0444e7ccf8d8f43e5266f
BLAKE2b-256 18b8e1a5a1b6353400b06b4b78785f6fb829640f682d5173e3de15460e0f08cb

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_docproc_binary-0.11.4-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 564afae323c359635f463ab4d3a9390e4b8b11eb7e4b49567ffdbd0a243314f9
MD5 6abc1e2abbac098aeed5c7bd2482b0c0
BLAKE2b-256 875cd447996292f6d2d3c08ba80f74b17dc4409a3260e27c819de83497d554f0

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gllm_docproc_binary-0.11.4-cp311-cp311-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 9c2540db370d4ca30d82929fa1ae9ff93c5c6d895b0b9a81e6c38fbdb530b4ac
MD5 014fb2dfd1bcea07c553fb1c94e22cb2
BLAKE2b-256 c45325972cc29d683842a3342f88c5ab05a2cbbf831fa2e7801f684c200d5332

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gllm_docproc_binary-0.11.4-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 500d68330dc2a2fafe9282db8cf1dd0c513b8967f11a277097913009df3e9fc7
MD5 7f4851a90b4f674cbe0d3f31c95314cd
BLAKE2b-256 c5f3afde523f9f477ae67d6ff00cb0f10ace632af433f4c8bc333cdc1055e158

See more details on using hashes here.

Provenance

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