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.3.tar.gz (287.6 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: magazine-0.1.3.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.3.tar.gz
Algorithm Hash digest
SHA256 3cff818267dd67d9343bba6be86188535a72184c521575c0457f8c61d9f0c73b
MD5 bb43e569b5882453811c0b20d7542a0a
BLAKE2b-256 66ebdcdeffd7d06c4131238443efe3b8acf39808ed71f9f64377f8f9c91761ba

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: magazine-0.1.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 53104baca922062a4a3fd62d2a995bc0289010124956b71c19ad6dcd6efe6f00
MD5 26c3e2138c0a67e977d78d20ff7dfde2
BLAKE2b-256 a072c1077be7ae66c41431918798c5b19cee49943efd9562eec6421e036898f9

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