Skip to main content

A PDF page/image randomizer, or flashcard quiz from a PDF.

Project description

pdf-shuffle

A PDF page/image randomizer, or flashcard quiz from a PDF.

Installation

$ pip install pdf-shuffle

Usage

pdf-shuffle comes with 2 CLI applications:

$ pdf-shuffle --help
Usage: pdf-shuffle [OPTIONS] FILENAME

Options:
  --start INTEGER
  --end TEXT
  --step INTEGER
  --random / --no-random
  --host TEXT
  --port INTEGER
  --help                  Show this message and exit.
$ pdf-shuffle test.pdf

And,

$ pdf-quiz --help
Usage: pdf-quiz [OPTIONS] FILENAME

Options:
  --start INTEGER
  --end TEXT
  --step INTEGER
  --random / --no-random
  --host TEXT
  --port INTEGER
  --help                  Show this message and exit.
$ pdf-quiz quiz.pdf

Of course, you can invoke the app from a Python script as well.

from pdf_shuffle import init
init('test.pdf')

Or,

from pdf_shuffle import init_quiz
init_quiz('quiz.pdf')

Advanced usage

By default, quiz.pdf means, excluding the first slide, every first and second slides are front of the card and back of the card, respectively. You can change that, with:

import os, json
os.environ['PAGE_RANDOM'] = json.dumps([2, 3, 5, 9, 12])

Spaced-repetition system (SRS)

If you are looking into extending the app with SRS, you might try, srs-sqlite, which I currently use.

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

pdf-shuffle-0.1.1.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

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

pdf_shuffle-0.1.1-py2.py3-none-any.whl (13.4 kB view details)

Uploaded Python 2Python 3

File details

Details for the file pdf-shuffle-0.1.1.tar.gz.

File metadata

  • Download URL: pdf-shuffle-0.1.1.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/0.11.4 CPython/3.7.0 Darwin/17.7.0

File hashes

Hashes for pdf-shuffle-0.1.1.tar.gz
Algorithm Hash digest
SHA256 557e9003bd557c1778612740ea3dfb634db54ac1801f31612b0bac6251a4ca1c
MD5 9e039f8c6d908cfea08f1274ae421f2b
BLAKE2b-256 5cc54d53203ea6f9c613ed74ebecd9c7b04211148740c3127283c270b30385c1

See more details on using hashes here.

File details

Details for the file pdf_shuffle-0.1.1-py2.py3-none-any.whl.

File metadata

  • Download URL: pdf_shuffle-0.1.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 13.4 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/0.11.4 CPython/3.7.0 Darwin/17.7.0

File hashes

Hashes for pdf_shuffle-0.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 1ec2f8ef68f2a6e90d5d30e1832f6b259c171d948edca937eb986136e4f4a42c
MD5 9391e55f81b1d232729d1ae591e2411a
BLAKE2b-256 577c0d759c0eff1aefde6020eedb6cabfe294e8c3b5d3e6af8bcd1b7f2385da9

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