Skip to main content

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

Metadata

Release files for pyrepr 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyrepr 0.1.0
File Size Uploaded
pyrepr-0.1.0.tar.gz 2.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyrepr 0.1.0
File Interpreter ABI Platform
pyrepr-0.1.0-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 8.4 kB

Release files / pyrepr-0.1.0.tar.gz

Download URL pyrepr-0.1.0.tar.gz
Size 2.9 kB
Tags Source
SHA-256 checksum
How to use checksums
1e15efbe6780982aa14d70155aef4f820b29a0b839f08a52c1821ef8b8440b5c
BLAKE2b-256 checksum
How to use checksums
6d631355f3db11c3f9f1008b28823ed0904259bd45d54c869c25cf57e2532515
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/0.11.5 CPython/3.7.0 Darwin/17.7.0

Release files / pyrepr-0.1.0-py2.py3-none-any.whl

Download URL pyrepr-0.1.0-py2.py3-none-any.whl
Size 5.6 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
3f1a9b14498b0d1192efaa65b48a0506317b6880a6f227a6eb87cd658a0622f8
BLAKE2b-256 checksum
How to use checksums
691dbe66fcc7c73c4087aa5402142c1401c9400908b805249875a3ebb0cbb303
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/0.11.5 CPython/3.7.0 Darwin/17.7.0

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page