Metadata-Version: 2.4
Name: dof2md
Version: 0.1.0
Summary: Download editions of Mexico's official gazette (DOF) as PDF and convert them to Markdown.
License: Apache-2.0
Project-URL: Homepage, https://github.com/INGEOTEC/LegalIA/tree/main/packages/dof2md
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Requires-Python: >=3.9
Description-Content-Type: text/markdown
Requires-Dist: requests>=2.31
Requires-Dist: mineru[pipeline]
Provides-Extra: test
Requires-Dist: pytest>=7.0; extra == "test"

# dof2md

Downloads editions of Mexico's official gazette (DOF, Diario Oficial de la
Federación) as PDF and converts them to Markdown.

Part of the [LegalIA](https://github.com/INGEOTEC/LegalIA) monorepo.

## Install

```bash
pip install -e ".[test]"
```

## Usage

```bash
dof2md 2010-01-05                     # morning edition (default)
dof2md 2010-01-05 --edition VES       # evening edition
dof2md 2010-01-05 --outdir my_folder  # output directory
```

Generates `<date>-<edition>.pdf` and `<date>-<edition>.md` in the output directory.

## Tests

```bash
pytest -v
```
