Drop-in replacement for python-docx that connects to Athena's Superdoc/Keryx collaborative document stack
Project description
athena-python-docx
Drop-in replacement for python-docx that connects to Athena's Superdoc + Keryx collaborative document stack.
Quick start
from docx import Document
from docx.shared import Inches, Pt, RGBColor
# Open an existing SuperDoc asset by its Athena asset_id
with Document("asset_abc123") as doc:
doc.add_heading("Market Analysis", level=1)
p = doc.add_paragraph()
r = p.add_run("Revenue grew ")
highlight = p.add_run("12.3% year-over-year")
highlight.bold = True
highlight.font.color.rgb = RGBColor(0x00, 0x80, 0x00)
p.add_run(".")
t = doc.add_table(rows=2, cols=2, style="TableGrid")
t.cell(0, 0).text = "Segment"
t.cell(0, 1).text = "Revenue"
t.cell(1, 0).text = "Enterprise"
t.cell(1, 1).text = "$4.3M"
doc.save()
API parity rule
This SDK mirrors python-docx's public API exactly. See CLAUDE.md for the full contract.
Development
uv venv
uv pip install -e ".[dev]"
uv run pytest tests/ -x
Environment variables
Required when connecting to Keryx (set by Athena backend when executing in Daytona):
SUPERDOC_COLLAB_TOKEN— short-lived Keryx JWTKERYX_WS_URL— Keryx WebSocket base URLATHENA_WORKSPACE_ID— workspace routing segment
License
MIT
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 Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file athena_python_docx-0.14.0.tar.gz.
File metadata
- Download URL: athena_python_docx-0.14.0.tar.gz
- Upload date:
- Size: 736.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ac6a106e66591a6f6da981ef1dc4be8fe29fd9bab4e5f23adbb961272258838b
|
|
| MD5 |
5a5f245abe68f76e08fbbe1a4e42ab58
|
|
| BLAKE2b-256 |
49f0d74ea8763511084aff734997a5d31b6220032c0370f5045cd5ea2bf0a815
|
File details
Details for the file athena_python_docx-0.14.0-py3-none-any.whl.
File metadata
- Download URL: athena_python_docx-0.14.0-py3-none-any.whl
- Upload date:
- Size: 259.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ae60b6a245ca009b6a929db0fdadd0942007d990842bfd76c14f1d0c0e39f1f1
|
|
| MD5 |
aceba2fe6a9ed54f7fb5bbaeace5d440
|
|
| BLAKE2b-256 |
f5076c710aa2db4a6819992813eb22348d5a907b20510ed78f2db99563518d79
|