Skip to main content

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 monorepo.

Install

pip install -e ".[test]"

Usage

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

pytest -v

Download files

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

Source Distribution

dof2md-0.1.1.tar.gz (12.4 kB view details)

Uploaded Source

Built Distribution

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

dof2md-0.1.1-py3-none-any.whl (9.2 kB view details)

Uploaded Python 3

File details

Details for the file dof2md-0.1.1.tar.gz.

File metadata

  • Download URL: dof2md-0.1.1.tar.gz
  • Upload date:
  • Size: 12.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.13

File hashes

Hashes for dof2md-0.1.1.tar.gz
Algorithm Hash digest
SHA256 526e82a11f139d059328c229d92cd51cf710a93344c5d58c56b67d22eac49084
MD5 c067af1ac83521e23197e77ddfbb7db3
BLAKE2b-256 db917dbb910a632995f991c377a327b8491f2bce59187296b75065f03d0c90ed

See more details on using hashes here.

File details

Details for the file dof2md-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: dof2md-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 9.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.13

File hashes

Hashes for dof2md-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0a099f5ae010a89e1827fa08606448afd53ea4d2c64e0f2b0d6c88f7f0ab3099
MD5 6ea1501a4af42be73c182ec3ae376104
BLAKE2b-256 b2752eaed963f878d098803fcdd4a6c0bc0e0630e77162a3364c72900083b8a3

See more details on using hashes here.

Release history Release notifications | RSS feed

0.2.0

2 files

0.1.2

2 files

This release

0.1.1 This release

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page