Skip to main content

No project description provided

Project description

dumas

PyPI - Version PyPI - Python Version


Table of Contents

Installation

pip install dumas

Using it (shell)

Using it (api)

You could use dumas as part of your own workflow/program

# First import the render functions


In [1]: from dumas.lib.renderer import render_text, render_file
        import textwrap

        MD_TEXT = textwrap.dedent("""
            This is a regular MD
            ====================
    
            with some `funny text` and some text
    
            ```dumas[python@readme]
            x = 1+1
    
            x**2
    
            ```
        """)
In [2]: MD_TEXT

Out[2]: 
This is a regular MD
====================

with some `funny text` and some text

\```dumas[python@readme]
x = 1+1

x**2

\```
In [3]: render_text(MD_TEXT)

Out[3]: 
# This is a regular MD

with some `funny text` and some text

\```python

In [1]: x = 1+1

        x**2

Out[1]: 4
\```

License

dumas is distributed under the terms of the MIT license.

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

dumas-0.0.1.tar.gz (4.8 kB view hashes)

Uploaded Source

Built Distribution

dumas-0.0.1-py3-none-any.whl (6.0 kB view hashes)

Uploaded Python 3

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