Skip to main content

Let your code take comprehensive notes and publish notes and figures as a beautiful consolidated PDF document.

Project description

Magazine

Let your code take comprehensive notes and publish notes and figures as a beautiful consolidated PDF document.

Idea

The magazine package helps you to create beautiful PDF reports of what has been done during the execution of your app.

  1. Your scripts or submodules can write Stories in plain human-readable text, which could also include numerical results or figures, for instance.
  2. The collection of stories can be used to Publish a glossy PDF document.

Example

from magazine import Story, Publish

E = 42
Story.report("Experiment", "The analysis found that energy equals {} Joule.", E)

with Publish("Report.pdf", "My physics report", info="Version 0.1") as M:
    M.add_story("Experiment")
  • View the resulting magazine in output/Report.pdf.
  • Check also example.py for more examples.

Install

pip install magazine

Requires:

  • loguru
  • fpdf2

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

magazine-0.1.1.tar.gz (287.6 kB view details)

Uploaded Source

Built Distribution

magazine-0.1.1-py3-none-any.whl (289.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: magazine-0.1.1.tar.gz
  • Upload date:
  • Size: 287.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.10.11 Windows/10

File hashes

Hashes for magazine-0.1.1.tar.gz
Algorithm Hash digest
SHA256 723a3fcf47c71fbde57feea3c9484a46235d6fcc06953db128c0fdaa49f04a09
MD5 22b935772d9fe25cf481ceb641b811be
BLAKE2b-256 07040d3efaac279eb66dddf512473f57889ee5fce03a9e26cbfb0766cbfa6f53

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: magazine-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 289.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.10.11 Windows/10

File hashes

Hashes for magazine-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c4b241e3cd6bfcde44cc85c402b75363deb19103acce750b9a4aa6d49e781363
MD5 f3c754271abe1ed9dc7279728dc123ac
BLAKE2b-256 1db97b9af27f0e83ef587490b733a4c77a946edd26642fb48448040c0f5e5729

See more details on using hashes here.

Provenance

Supported by

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