Skip to main content

Pip installable client for Glyph Forge API

Project description

Glyph Forge

Local SDK for building and running DOCX schemas. Process documents entirely on your machine - no API key required!

Installation

pip install glyph-forge

Quick Start

from glyph_forge import ForgeClient, create_workspace

# Create workspace
ws = create_workspace()

# Initialize client (no API key needed!)
client = ForgeClient()

# Build schema from a template DOCX
schema = client.build_schema_from_docx(
    ws,
    docx_path="template.docx",
    save_as="my_schema"
)

# Run schema with your plaintext
docx_path = client.run_schema(
    ws,
    schema=schema,
    plaintext="Your content here...",
    dest_name="output.docx"
)

print(f"Generated DOCX: {docx_path}")

Features

No API Key Required - Works immediately after installation ✅ 100% Local Processing - All operations run on your machine ✅ Privacy First - No data sent to external servers ✅ Offline Support - Works without internet connection ✅ Open Source - Apache 2.0 licensed, inspect all code ✅ Fast - No network latency

CLI Usage

# Build schema from template
glyph-forge build template.docx -o ./output

# Build and run in one command
glyph-forge build-and-run template.docx input.txt -o ./output

# Run existing schema
glyph-forge run schema.json input.txt -o ./output

How It Works

Glyph Forge uses the local SDK to:

  1. Extract - Unzip and parse DOCX XML structure
  2. Analyze - Detect headings, paragraphs, lists, tables
  3. Build Schema - Create reusable document templates
  4. Run Schema - Generate new DOCXs from plaintext

All processing happens locally using lxml and python-docx.

Documentation

For more information, visit glyphapi.ai

License

This project is licensed under the Apache License 2.0 - see the LICENSE file for details.

Copyright 2025 Devpro LLC

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

glyph_forge-2.1.0.tar.gz (183.9 kB view details)

Uploaded Source

Built Distribution

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

glyph_forge-2.1.0-py3-none-any.whl (241.2 kB view details)

Uploaded Python 3

File details

Details for the file glyph_forge-2.1.0.tar.gz.

File metadata

  • Download URL: glyph_forge-2.1.0.tar.gz
  • Upload date:
  • Size: 183.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for glyph_forge-2.1.0.tar.gz
Algorithm Hash digest
SHA256 002e56af40117ccdd76d5ef870d989e24d0ff3878cca8ce5ccb9d619ad7c61de
MD5 ea164ea6c1735bcdc0c0a4bd22160ba2
BLAKE2b-256 0ff7a72a5f684535eb7403fa1c69b6eef80053d39e8104adc104e52d17a6a111

See more details on using hashes here.

Provenance

The following attestation bundles were made for glyph_forge-2.1.0.tar.gz:

Publisher: release.yml on Devpro-LLC/glyph-forge-client

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

File details

Details for the file glyph_forge-2.1.0-py3-none-any.whl.

File metadata

  • Download URL: glyph_forge-2.1.0-py3-none-any.whl
  • Upload date:
  • Size: 241.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for glyph_forge-2.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 428683b078b85d42a0dafe58493f4b7d8d06b2f41e4067ca4d23812f455a5598
MD5 4aa9ddf49073368afb5dac6ddb95cb32
BLAKE2b-256 ac8284630b86e3c35a771bc0788c913ce683a30d09c1f79f805886fd38311b93

See more details on using hashes here.

Provenance

The following attestation bundles were made for glyph_forge-2.1.0-py3-none-any.whl:

Publisher: release.yml on Devpro-LLC/glyph-forge-client

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