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
[[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
## 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyrepr-0.1.0.tar.gz
(2.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyrepr-0.1.0.tar.gz.
File metadata
- Download URL: pyrepr-0.1.0.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/0.11.5 CPython/3.7.0 Darwin/17.7.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1e15efbe6780982aa14d70155aef4f820b29a0b839f08a52c1821ef8b8440b5c
|
|
| MD5 |
1df91b85582e1fe1659366d0c64e16af
|
|
| BLAKE2b-256 |
6d631355f3db11c3f9f1008b28823ed0904259bd45d54c869c25cf57e2532515
|
File details
Details for the file pyrepr-0.1.0-py2.py3-none-any.whl.
File metadata
- Download URL: pyrepr-0.1.0-py2.py3-none-any.whl
- Upload date:
- Size: 5.6 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/0.11.5 CPython/3.7.0 Darwin/17.7.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3f1a9b14498b0d1192efaa65b48a0506317b6880a6f227a6eb87cd658a0622f8
|
|
| MD5 |
3c9c319d17b6ee9da0b93f55081f8a22
|
|
| BLAKE2b-256 |
691dbe66fcc7c73c4087aa5402142c1401c9400908b805249875a3ebb0cbb303
|