Skip to main content

Mock Document Image Generator

Project description

Document Image Mocker

Warning: This project is completely experimental – do not use in real-world projects.

This tool is intended to generate images of fake documents using content seeders. It can be extended with plugins to add extra processing or content to the resulting images.

Usage

Running doc-mocker -h will display the following help

usage:  [-h] [-n NUMBER_OF_PAGES] [-t {A4}] [-s {BASIC}] [-o OUTPUT_PATH]
        {generate}

positional arguments:
  {generate}            command to run

optional arguments:
  -h, --help            show this help message and exit
  -n NUMBER_OF_PAGES, --number-of-pages NUMBER_OF_PAGES
                        number of pages to generate (default: 1)
  -t {A4}, --page-type {A4}
                        page type (default: A4)
  -s {BASIC}, --page-seeder {BASIC}
                        page seeder (default: BASIC)
  -o OUTPUT_PATH, --output-path OUTPUT_PATH
                        output path (default: current path)

Contributing

Every contribution is welcome.

Be sure to your code is PEP-8 compliant. Use black to fix your formatting before committing changes.

black main doc_mocker

Optional: Install flake8 pre-commit hook to check your code before committing.

flake8 --install-hook git
git config --bool flake8.strict true

Create a plugin

Plugins are auto-discovered if created as modules in the sub-package doc_mocker.plugins using the namespace packages convention.

Check the noise plugin to get an idea on the required structure.

Run tests

python -m pytest

Credits

View the full list of contributors. MIT licensed.

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

doc-mocker-0.0.1.tar.gz (9.2 kB view details)

Uploaded Source

Built Distribution

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

doc_mocker-0.0.1-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file doc-mocker-0.0.1.tar.gz.

File metadata

  • Download URL: doc-mocker-0.0.1.tar.gz
  • Upload date:
  • Size: 9.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.6.8

File hashes

Hashes for doc-mocker-0.0.1.tar.gz
Algorithm Hash digest
SHA256 2d2e45c67708cab1b277eea3e791584c0a345c7a3b9fba24de211512f92556ea
MD5 34e701dc81699c0f17af0c9200542069
BLAKE2b-256 ba1811c04fcdeced6654bd7569b4fe8a62e5f0d91c1109015657aaf4cef0bdb6

See more details on using hashes here.

File details

Details for the file doc_mocker-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: doc_mocker-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.6.8

File hashes

Hashes for doc_mocker-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3f930c909bf43838fae98573c561d6dc3a4b6a3e7a726e3a355938d45389cf09
MD5 0a9e5a3554a69ea13f78431921c41273
BLAKE2b-256 398743a8229fd4ae3144958e8ceef8fd13e6c6f8d9c7010bb3c0f50270680422

See more details on using hashes here.

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