Metadata-Version: 2.4
Name: pyrepr
Version: 0.1.0
Summary: Pretty-printing serializable objects for humans
Home-page: https://github.com/patarapolw/pyrepr
Author: Pacharapol Withayasakpunt
Author-email: patarapolw@gmail.com
Requires-Dist: markdownify<0.5.0,>=0.4.1
Requires-Dist: toml<0.11.0,>=0.10.0
Dynamic: author
Dynamic: author-email
Dynamic: description
Dynamic: home-page
Dynamic: requires-dist
Dynamic: summary

# pyrepr

Pretty-printing serializable objects for humans. This is based on [Markdownify](https://github.com/matthewwithanm/python-markdownify) and [TOML](https://github.com/toml-lang/toml).

## Usage

```python
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

```python
print(Repr(obj).to_str('markdown'))
```

```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

```commandline
pip install pyrepr
```
