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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: magazine-0.1.4.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.4.tar.gz
Algorithm Hash digest
SHA256 cd88dd0ee21c1e1f02ac28f2db048d3cada9f42fbefadbb39576b9ba30f69394
MD5 c7a6526dd3694698dbd12b201de41b13
BLAKE2b-256 f1d12010ca0b2bd663ae0ba144ec12d09b3c3ff4d2d176fa0b754bb1117c0d87

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: magazine-0.1.4-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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 abaa6c073850c2377868deec4a112f5d61a13fcc4ecaafef20ec9a51f60efc20
MD5 441da1db83f44e26815aa6f1781f6001
BLAKE2b-256 c5bac0173e86f1f7b0f7d92bf3cd555db4670488fdee9cef9d265029f6441950

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