Skip to main content

PDF to Markdown conversion

Project description

wagtail-pdf-converter

PDF to Markdown conversion for Wagtail, powered by AI

PyPI

PDF Converter CI License: BSD-3-Clause Ruff Pre-commit

Supported versions

  • Python 3.10 - 3.14
  • Django: 4.2, 5.1, 5.2, 6.0
  • Wagtail: 6.3, 7.0, 7.1, 7.2

Development

Requirements

Core

  • Python 3.10+

Extra

  • Docker and Docker Compose, if you want to quickly set up a Postgres DB to work with

Getting Started

  1. With your preferred virtualenv activated, install the dependencies
python -m pip install --upgrade pip
python -m pip install -e ".[dev]"

You can also use flit:

python -m pip install flit
flit install
  1. If you're using Postgres:

Spin up the postgres container:

inv up

Copy .env.example to .env:

cp -v .env.example .env

The DATABASE_URL in .env will be automatically picked up by the test settings. If no .env file exists, the project will use SQLite by default.

And you should be good to go

Running tests

The simplest is to just run pytest.

If you wanna run the full tox suite, then run tox (You need to ensure you have all the different versions of python on your system, and tox should know about them). You can speed things up by running all envs in parallel, via tox -p auto.

or, you can run them for a specific environment tox -e python3.14-django5.2-wagtail7.2 or specific test tox -e python3.14-django5.2-wagtail7.2-sqlite wagtail_pdf_converter.tests.test_file.TestClass.test_method

To run the test app interactively, use tox -e interactive, visit http://127.0.0.1:8020/admin/ and log in with admin/changeme.

pre-commit

Note that this project uses pre-commit. It is included in the project testing requirements. To set up locally, run the following in project root:

# initialize pre-commit
pre-commit install

# Optional, run all checks once for this, then the checks will run only on the changed files
git ls-files --others --cached --exclude-standard | xargs pre-commit run --files

Project details


Download files

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

Source Distribution

wagtail_pdf_converter-0.1.0rc1.tar.gz (103.2 kB view details)

Uploaded Source

Built Distribution

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

wagtail_pdf_converter-0.1.0rc1-py3-none-any.whl (63.8 kB view details)

Uploaded Python 3

File details

Details for the file wagtail_pdf_converter-0.1.0rc1.tar.gz.

File metadata

  • Download URL: wagtail_pdf_converter-0.1.0rc1.tar.gz
  • Upload date:
  • Size: 103.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for wagtail_pdf_converter-0.1.0rc1.tar.gz
Algorithm Hash digest
SHA256 65a8c40606832a857f092775ea3936546297a90488b9ed521617ce782d372326
MD5 a6f429ba4b6790aa39a18bd6e7c85bb6
BLAKE2b-256 c8b2445d79f9619fc08e2a563978c51d8466947799d76b791c437fb2f6a0bd77

See more details on using hashes here.

Provenance

The following attestation bundles were made for wagtail_pdf_converter-0.1.0rc1.tar.gz:

Publisher: publish.yml on torchbox/wagtail-pdf-converter

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file wagtail_pdf_converter-0.1.0rc1-py3-none-any.whl.

File metadata

File hashes

Hashes for wagtail_pdf_converter-0.1.0rc1-py3-none-any.whl
Algorithm Hash digest
SHA256 b6793bac27058103ec089e0622908e7255186ff74824b29eb92f7f462b1a3811
MD5 d459509624ebd3b78f0d721ac6ac16d0
BLAKE2b-256 bb4bf07f782258099c2f2373fe6e94911d16909fe804e9465b7f88844a3e00c8

See more details on using hashes here.

Provenance

The following attestation bundles were made for wagtail_pdf_converter-0.1.0rc1-py3-none-any.whl:

Publisher: publish.yml on torchbox/wagtail-pdf-converter

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page