Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

Pretty-printing serializable objects for humans

Project description

pyrepr

Pretty-printing serializable objects for humans. This is based on Markdownify and TOML.

Usage

from pyrepr import Repr
print(Repr(obj))

Example output:

[[mid]]
1358629116480

[[mod]]
1481117769

[[usn]]
3491

[[tags]]
 CostanzoEndocrine EndocrinePhysiology 

[[flds]]
Peptide and Protein Hormone Synthesis:   
Translation of a **preprohormone ***begins* in the **{{c1::cytoplasm}} **with a **signal** **peptide** at the N terminusx1f![](paste-417251777839638.jpg)

[[sfld]]
Peptide and Protein Hormone Synthesis: Translation of a preprohormone begins in the {{c1::cytoplasm}} with a signal peptide at the N terminus

[[csum]]
1963658058

[[flags]]
0

You can also make output as pure Markdown

print(Repr(obj).to_str('markdown'))
## mid
1358629116480

## mod
1481117769

## usn
3491

## tags
 CostanzoEndocrine EndocrinePhysiology 

## flds
Peptide and Protein Hormone Synthesis:   
Translation of a **preprohormone ***begins* in the **{{c1::cytoplasm}} **with a **signal** **peptide** at the N terminusx1f![](paste-417251777839638.jpg)

## sfld
Peptide and Protein Hormone Synthesis: Translation of a preprohormone begins in the {{c1::cytoplasm}} with a signal peptide at the N terminus

## csum
1963658058

## flags
0

Installation

pip install pyrepr

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pyrepr, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size pyrepr-0.1.0-py2.py3-none-any.whl (5.6 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size pyrepr-0.1.0.tar.gz (2.9 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page