Metadata-Version: 2.4
Name: tap-readthedocs
Version: 0.6.3
Summary: Singer tap for ReadTheDocs, built with the Meltano SDK for Singer Taps.
Project-URL: Documentation, https://github.com/reservoir-data/tap-readthedocs#readme
Project-URL: Homepage, https://github.com/reservoir-data/tap-readthedocs
Project-URL: Source, https://github.com/reservoir-data/tap-readthedocs
Author-email: Edgar Ramírez-Mondragón <edgarrm358@gmail.com>
Maintainer-email: Edgar Ramírez-Mondragón <edgarrm358@gmail.com>
License-Expression: Apache-2.0
License-File: LICENSE
Keywords: ELT,ReadTheDocs,singer.io
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Requires-Python: >=3.12
Requires-Dist: requests-cache~=1.0
Requires-Dist: singer-sdk~=0.54.0a8
Requires-Dist: toolz~=1.1.0
Provides-Extra: pinned
Requires-Dist: attrs==26.1.0; extra == 'pinned'
Requires-Dist: cattrs==26.1.0; extra == 'pinned'
Requires-Dist: certifi==2026.4.22; extra == 'pinned'
Requires-Dist: charset-normalizer==3.4.7; extra == 'pinned'
Requires-Dist: click==8.3.3; extra == 'pinned'
Requires-Dist: colorama==0.4.6; (sys_platform == 'win32') and extra == 'pinned'
Requires-Dist: fsspec==2026.4.0; extra == 'pinned'
Requires-Dist: idna==3.14; extra == 'pinned'
Requires-Dist: inflection==0.5.1; extra == 'pinned'
Requires-Dist: joblib==1.5.3; extra == 'pinned'
Requires-Dist: jsonpath-ng==1.8.0; extra == 'pinned'
Requires-Dist: jsonschema-specifications==2025.9.1; extra == 'pinned'
Requires-Dist: jsonschema==4.26.0; extra == 'pinned'
Requires-Dist: packaging==26.2; extra == 'pinned'
Requires-Dist: pathlib-abc==0.5.2; extra == 'pinned'
Requires-Dist: platformdirs==4.9.6; extra == 'pinned'
Requires-Dist: python-backoff==2.3.1; extra == 'pinned'
Requires-Dist: python-dotenv==1.2.2; extra == 'pinned'
Requires-Dist: pyyaml==6.0.3; extra == 'pinned'
Requires-Dist: referencing==0.37.0; extra == 'pinned'
Requires-Dist: requests-cache==1.3.2; extra == 'pinned'
Requires-Dist: requests==2.34.0.dev1; extra == 'pinned'
Requires-Dist: rpds-py==0.30.0; extra == 'pinned'
Requires-Dist: simpleeval==1.0.7; extra == 'pinned'
Requires-Dist: simplejson==4.1.1; extra == 'pinned'
Requires-Dist: singer-sdk==0.54.0a13; extra == 'pinned'
Requires-Dist: sqlalchemy==2.1.0b2; extra == 'pinned'
Requires-Dist: toolz==1.1.0; extra == 'pinned'
Requires-Dist: typing-extensions==4.15.0; extra == 'pinned'
Requires-Dist: universal-pathlib==0.3.10; extra == 'pinned'
Requires-Dist: url-normalize==3.0.0; extra == 'pinned'
Requires-Dist: urllib3==2.7.0; extra == 'pinned'
Description-Content-Type: text/markdown

<div align="center">

# tap-readthedocs

<div>
  <a href="https://github.com/reservoir-data/tap-readthedocs/blob/main/LICENSE">
    <img alt="License" src="https://img.shields.io/github/license/reservoir-data/tap-readthedocs"/>
  </a>
  <a href="https://results.pre-commit.ci/latest/github/reservoir-data/tap-readthedocs/main">
    <img alt="pre-commit.ci status" src="https://results.pre-commit.ci/badge/github/reservoir-data/tap-readthedocs/main.svg"/>
  </a>
  <a href="https://scientific-python.org/specs/spec-0000/">
    <img alt="SPEC 0 — Minimum Supported Dependencies" src="https://img.shields.io/badge/SPEC-0-green"/>
  </a>
  <a href="https://github.com/astral-sh/ruff">
    <img alt="Ruff" style="max-width:100%;" src="https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/charliermarsh/ruff/main/assets/badge/v2.json">
  </a>
  <a href="https://github.com/astral-sh/uv">
   <img alt="uv" src="https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/uv/main/assets/badge/v0.json"/>
  </a>
  <a href="https://github.com/pypa/hatch">
    <img alt="Hatch project" src="https://img.shields.io/badge/%F0%9F%A5%9A-Hatch-4051b5.svg"/>
  </a>
  <a href="https://github.com/reservoir-data/tap-readthedocs/">
    <img alt="PyPI" src="https://img.shields.io/pypi/pyversions/tap-readthedocs"/>
  </a>
</div>

Singer Tap for [**Read the Docs**](https://docs.readthedocs.io). Built with the [Meltano Singer SDK](https://sdk.meltano.com).

</div>

## Capabilities

- `catalog`
- `state`
- `discover`
- `about`
- `stream-maps`

## Settings

| Setting| Required | Default | Description |
|:-------|:--------:|:-------:|:------------|
| token | True | None | |
| include_business_streams | False | False | Whether to include streams available only to ReadTheDocs for Business accounts |

A full list of supported settings and capabilities is available by running: `tap-readthedocs --about`

## Installation

```bash
pipx install tap-readthedocs
```

### Source Authentication and Authorization

Generate a token: https://readthedocs.org/accounts/tokens/.

## Usage

You can easily run `tap-readthedocs` by itself or in a pipeline using [Meltano](https://meltano.com/).

### Executing the Tap Directly

```bash
tap-readthedocs --version
tap-readthedocs --help
tap-readthedocs --config CONFIG --discover > ./catalog.json
```

## Developer Resources

### Initialize your Development Environment

```bash
pipx install hatch
```

### Create and Run Tests

Run integration tests:

```bash
hatch run test:integration
```

You can also test the `tap-readthedocs` CLI interface directly:

```bash
hatch run sync:console -- --about --format=json
```

### Testing with [Meltano](https://www.meltano.com)

_**Note:** This tap will work in any Singer environment and does not require Meltano.
Examples here are for convenience and to streamline end-to-end orchestration scenarios._

Your project comes with a custom `meltano.yml` project file already created. Go ahead and [install Meltano](https://docs.meltano.com/getting-started/installation/) if you haven't already.

1. Install all plugins

   ```bash
   meltano install
   ```

1. Check that the extractor is working properly

   ```bash
   meltano invoke tap-readthedocs --version
   ```

1. Execute an ELT pipeline

   ```bash
   meltano run tap-readthedocs target-jsonl
   ```

### SDK Dev Guide

See the [dev guide](https://sdk.meltano.com/en/latest/dev_guide.html) for more instructions on how to use the SDK to
develop your own taps and targets.
