PDF to Markdown conversion
Project description
wagtail-pdf-converter
PDF to Markdown conversion for Wagtail, powered by AI
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
- 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
- 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
65a8c40606832a857f092775ea3936546297a90488b9ed521617ce782d372326
|
|
| MD5 |
a6f429ba4b6790aa39a18bd6e7c85bb6
|
|
| BLAKE2b-256 |
c8b2445d79f9619fc08e2a563978c51d8466947799d76b791c437fb2f6a0bd77
|
Provenance
The following attestation bundles were made for wagtail_pdf_converter-0.1.0rc1.tar.gz:
Publisher:
publish.yml on torchbox/wagtail-pdf-converter
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
wagtail_pdf_converter-0.1.0rc1.tar.gz -
Subject digest:
65a8c40606832a857f092775ea3936546297a90488b9ed521617ce782d372326 - Sigstore transparency entry: 1361454314
- Sigstore integration time:
-
Permalink:
torchbox/wagtail-pdf-converter@510072ca3b3dddaa7fe4892b80a7b4d3aafad1ed -
Branch / Tag:
refs/tags/v0.1.0rc1 - Owner: https://github.com/torchbox
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@510072ca3b3dddaa7fe4892b80a7b4d3aafad1ed -
Trigger Event:
push
-
Statement type:
File details
Details for the file wagtail_pdf_converter-0.1.0rc1-py3-none-any.whl.
File metadata
- Download URL: wagtail_pdf_converter-0.1.0rc1-py3-none-any.whl
- Upload date:
- Size: 63.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b6793bac27058103ec089e0622908e7255186ff74824b29eb92f7f462b1a3811
|
|
| MD5 |
d459509624ebd3b78f0d721ac6ac16d0
|
|
| BLAKE2b-256 |
bb4bf07f782258099c2f2373fe6e94911d16909fe804e9465b7f88844a3e00c8
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
wagtail_pdf_converter-0.1.0rc1-py3-none-any.whl -
Subject digest:
b6793bac27058103ec089e0622908e7255186ff74824b29eb92f7f462b1a3811 - Sigstore transparency entry: 1361454328
- Sigstore integration time:
-
Permalink:
torchbox/wagtail-pdf-converter@510072ca3b3dddaa7fe4892b80a7b4d3aafad1ed -
Branch / Tag:
refs/tags/v0.1.0rc1 - Owner: https://github.com/torchbox
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@510072ca3b3dddaa7fe4892b80a7b4d3aafad1ed -
Trigger Event:
push
-
Statement type: