Metadata-Version: 2.5
Name: doc3gpp
Version: 0.3.13
Summary: Provide 3GPP TDoc information with full text search capability — a Python CLI/library, a local web UI, and an MCP server for AI clients.
Project-URL: Homepage, https://github.com/jerrywang121/doc3gpp
Project-URL: Repository, https://github.com/jerrywang121/doc3gpp
Project-URL: Issues, https://github.com/jerrywang121/doc3gpp/issues
Project-URL: Documentation, https://github.com/jerrywang121/doc3gpp/tree/main/docs
Project-URL: Changelog, https://github.com/jerrywang121/doc3gpp/releases
Author: doc3gpp contributors
License: MIT
License-File: LICENSE
Keywords: 3gpp,3gpp-meetings,3gpp-tdocs,dyna-report,scraping,sqlalchemy,tdoc,telecom,tsg,wi
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Internet :: WWW/HTTP
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Utilities
Classifier: Typing :: Typed
Requires-Python: >=3.10
Requires-Dist: alembic>=1.13.2
Requires-Dist: beautifulsoup4>=4.12.3
Requires-Dist: httpx<1.0,>=0.27.0
Requires-Dist: lxml>=5.2.2
Requires-Dist: numpy>=1.26
Requires-Dist: openpyxl>=3.1.0
Requires-Dist: pydantic-settings>=2.3.4
Requires-Dist: pydantic>=2.8.0
Requires-Dist: sqlalchemy>=2.0.30
Requires-Dist: tomli-w>=1.0
Requires-Dist: tomli>=2.0.1; python_version < '3.11'
Provides-Extra: all
Requires-Dist: fastapi>=0.115.0; extra == 'all'
Requires-Dist: humanfriendly>=10.0; extra == 'all'
Requires-Dist: jinja2>=3.1.4; extra == 'all'
Requires-Dist: markdown-it-py>=3.0.0; extra == 'all'
Requires-Dist: mcp>=1.0.0; extra == 'all'
Requires-Dist: pygments>=2.18.0; extra == 'all'
Requires-Dist: python-docx>=0.8.11; extra == 'all'
Requires-Dist: python-pptx>=1.0.2; extra == 'all'
Requires-Dist: sqlite-vec>=0.1.0; extra == 'all'
Requires-Dist: tqdm>=4.66.0; extra == 'all'
Requires-Dist: typer>=0.12.3; extra == 'all'
Requires-Dist: uvicorn[standard]>=0.30.0; extra == 'all'
Provides-Extra: cli
Requires-Dist: tqdm>=4.66.0; extra == 'cli'
Requires-Dist: typer>=0.12.3; extra == 'cli'
Provides-Extra: dev
Requires-Dist: fastapi>=0.115.0; extra == 'dev'
Requires-Dist: humanfriendly>=10.0; extra == 'dev'
Requires-Dist: jinja2>=3.1.4; extra == 'dev'
Requires-Dist: markdown-it-py>=3.0.0; extra == 'dev'
Requires-Dist: mcp>=1.0.0; extra == 'dev'
Requires-Dist: pygments>=2.18.0; extra == 'dev'
Requires-Dist: pytest-cov>=5.0.0; extra == 'dev'
Requires-Dist: pytest-xdist>=3.5.0; extra == 'dev'
Requires-Dist: pytest>=8.2.0; extra == 'dev'
Requires-Dist: ruff>=0.5.0; extra == 'dev'
Requires-Dist: tqdm>=4.66.0; extra == 'dev'
Requires-Dist: typer>=0.12.3; extra == 'dev'
Requires-Dist: uvicorn[standard]>=0.30.0; extra == 'dev'
Provides-Extra: extract
Requires-Dist: python-docx>=0.8.11; extra == 'extract'
Requires-Dist: python-pptx>=1.0.2; extra == 'extract'
Provides-Extra: search
Provides-Extra: semantic
Requires-Dist: sqlite-vec>=0.1.0; extra == 'semantic'
Provides-Extra: web
Requires-Dist: fastapi>=0.115.0; extra == 'web'
Requires-Dist: humanfriendly>=10.0; extra == 'web'
Requires-Dist: jinja2>=3.1.4; extra == 'web'
Requires-Dist: markdown-it-py>=3.0.0; extra == 'web'
Requires-Dist: mcp>=1.0.0; extra == 'web'
Requires-Dist: pygments>=2.18.0; extra == 'web'
Requires-Dist: uvicorn[standard]>=0.30.0; extra == 'web'
Description-Content-Type: text/markdown

# doc3gpp

A Python library and CLI for collecting and searching 3GPP meeting calendars,
TDocs, work items, specifications, RAN5 testcase status snapshots, and public
ETSI LISTSERV email archives.
Store source metadata in SQL, extract Word and presentation content, and use
the same services through the CLI, web UI, HTTP API, or MCP tools.

## What's New

- **Nov 14:** **Revision TDoc discovery:** Recursively discover
  meeting revision files.
- **Nov 12–13:** **LISTSERV email archives support:** Discover public ETSI lists, sync message
  listings, parse individual messages, and search stored content. See the
  [LISTSERV guide](docs/processes.md#listserv-archive-flow).
- **Oct 22–Nov 5:** **Richer TDoc extraction:** Extract multi-file CR, WID, LS,
  and discussion archives, including Word and presentation files; inspect ZIP
  inventories and matched-document provenance. See
  [TDoc parsing](docs/processes.md#tdoc-parsing).
- **Oct 19–28:** **Faster parsing:** Bounded parallel preparation and shared
  Office conversion workers accelerate TDoc and specification-document processing. See
  [pools and background jobs](docs/processes.md#pools-and-background-jobs).
- **Sep 22–27:** **Unified search:** Use text, semantic, hybrid, or filter-only
  search with source-aware results and configurable OpenAI-compatible embeddings. See
  [querying](docs/processes.md#querying) and
  [semantic search configuration](docs/config.md#semantic-and-hybrid-search).
- **Sep 23–25:** **Specification support:** Parse versioned documents, browse
  their contents, and search section- and table-aware chunks. See
  [specification-document parsing](docs/processes.md#specification-document-parsing).
- **Sep 13:** **Agent and schema tools:** Connect over local MCP stdio,
  install the packaged agent skill, and inspect resource schemas via CLI, HTTP,
  or MCP. See
  [MCP connections](docs/mcp.md#connect) and
  [schema commands](docs/cli.md#doc3gpp-tdoc-schema).
- **Sep 11–12:** **RAN5 testcases support:** Sync, list, and inspect testcase status
  snapshots using the CLI, web UI, or MCP. See
  [testcase commands](docs/cli.md#testcase-commands).

## Install

Requires **Python 3.10+** and [uv](https://docs.astral.sh/uv/).

```bash
uv tool install 'doc3gpp[cli,extract]'
# Or install all runtime extras: CLI, extraction, semantic search, and web/MCP.
uv tool install 'doc3gpp[all]'
```

If `doc3gpp` is not on your `PATH`, run `uv tool update-shell` and restart your shell.

`uv add doc3gpp` adds the core SDK to a Python project
([Python example](docs/README.md#python-sdk)); CLI dependencies require `[cli]`.
Use `[extract]` for `.docx`/`.pptx` extraction and `[semantic]` for SQLite vector
search. Legacy `.doc`/`.ppt` conversion also requires LibreOffice.
See [configuration and dependencies](docs/config.md#optional-dependencies).

## Quick start

```bash
doc3gpp config init --target user
doc3gpp db init --scope all
doc3gpp db check --scope all

doc3gpp meeting sync --tsg R5
doc3gpp meeting list --tsg R5 --limit 10
# Choose a meeting_id from the list above.
doc3gpp tdoc sync --meeting-id <meeting_id>
doc3gpp tdoc list --meeting-id <meeting_id> --limit 10
doc3gpp tdoc parse --meeting-id <meeting_id> --yes
doc3gpp tdoc search --text 'handover' --limit 10
```

Sync and parse commands contact upstream sources. Some CLI reads also perform
best-effort [auto-sync](docs/processes.md#auto-sync); disable it for offline use:

```bash
doc3gpp config set sync.auto_sync false
```

For local MCP or the web server on a fresh installation, run
`uv tool install 'doc3gpp[cli,web]'`. If the CLI is already installed, use
`uv tool install --reinstall 'doc3gpp[all]'` to install all runtime extras.
Run `doc3gpp mcp` for stdio, or `doc3gpp server start` for the UI at
<http://127.0.0.1:13999/> and MCP at
`http://127.0.0.1:13999/mcp/`.
There is no built-in authentication: keep the HTTP server on a trusted local
machine. See [MCP connections](docs/mcp.md#connect) for client configuration.

## Agent Skill and MCP

Install the [doc3gpp skill](src/doc3gpp/data/skills/doc3gpp/SKILL.md) for
supported agents in the current project with Node.js (`npx`):

```bash
npx --yes skills add https://github.com/jerrywang121/doc3gpp/tree/main/src/doc3gpp/data/skills/doc3gpp --skill doc3gpp -y
```

Configure your MCP client to use either local stdio or HTTP. These examples use
`mcpServers` JSON; client configuration keys and file locations vary, so adapt
them to your client.

### stdio

```json
{
  "mcpServers": {
    "doc3gpp": {
      "command": "doc3gpp",
      "args": ["mcp"]
    }
  }
}
```

### HTTP (Streamable HTTP)

Start the server with `doc3gpp server start --no-open`, then configure an
HTTP-capable MCP client to connect to the default endpoint:

```json
{
  "mcpServers": {
    "doc3gpp": {
      "type": "http",
      "url": "http://127.0.0.1:13999/mcp/"
    }
  }
}
```

For transport details and security requirements, see
[MCP connections](docs/mcp.md#connect).

## Documentation

| Guide | Purpose |
| --- | --- |
| [Documentation index](docs/README.md) | Find the right guide; current vs historical documentation |
| [CLI reference](docs/cli.md) | Commands, flags, filters, and output contracts |
| [Configuration](docs/config.md) | Discovery, precedence, settings, dependencies, and secrets |
| [Processes](docs/processes.md) | Sync, parse, cache, chunk, index, query, pools, and jobs |
| [Web server](docs/web-server.md) | Running the server, UI, HTTP routes, and job monitoring |
| [MCP](docs/mcp.md) | Client connection, transports, tools, and troubleshooting |
| [Architecture](docs/architecture.md) | Layers, composition, databases, and content ownership |
| [3GPP knowledge](docs/3gpp-knowledge.md) | Upstream URLs, naming, and field semantics |
| [Code map](docs/code-map.md) | Implementation entry points for SDK users and contributors |
| [Conventions](docs/conventions.md) | Development, testing, and documentation rules |
| [Known constraints](docs/known-constraints.md) / [TODO](docs/TODO.md) | Current limitations and engineering backlog |

## Development

```bash
python -m venv .venv
source .venv/bin/activate
uv sync --extra dev --extra extract --extra semantic
ruff check .
./scripts/test_sqlite.sh
```

Tests are offline by default. See [testing conventions](docs/conventions.md#tests)
for optional dependencies, parallel execution, and opt-in online tests.

## License

[MIT](LICENSE).
