Skip to main content

Easy Python package documentation using markdown and jupyter

Project description

jupydocs_logo

Netlify Status

The easiest way to document your python library with jupyter and markdown.

Pleaes note jupydocs is currently under active development. 
It can be used for testing, but should not be used for deployment. 
It will change!

Installation

pip install jupydocs

Quickstart

from jupydocs.numpydocstring import NumpyDocString

def custom_sum(x, y):
    """A new take on the class `sum` function.
    
    Does 1 + 1 always need to equal 2? Not anymore! Thanks to the `custom_sum`
    function 1 + 1 will never equal 2 again.

    Parameters
    ----------
    x : float
        A number.
    y : float
        A number.

    Returns
    -------
    num : Float
        A new take on the traditional sum function. x * 2 + y * 3. Not at all
        useful. But fun!
        
    Example
    -------
    >>> from examplepackage.example import custom_sum
    >>> custom_sum(2, 3)
    13    
    """
    return x * 2 + y * 3

docstring = NumpyDocString(custom_sum)
docstring.render_md()

custom_sum

A new take on the class sum function.

Does 1 + 1 always need to equal 2? Not anymore! Thanks to the custom_sum function 1 + 1 will never equal 2 again.

Parameters

NAME TYPE DESCRIPTION
x float A number.
y float A number.

Returns

NAME TYPE DESCRIPTION
num Float A new take on the traditional sum function. x * 2 + y * 3. Not at all useful. But fun!

Example

>>> from examplepackage.example import custom_sum
>>> custom_sum(2, 3)
13
print(docstring.render_md(return_str=True))
## custom_sum

A new take on the class `sum` function. 

Does 1 + 1 always need to equal 2? Not anymore! Thanks to the `custom_sum` function 1 + 1 will never equal 2 again.

### Parameters

| NAME   | TYPE   | DESCRIPTION   |
|:-------|:-------|:--------------|
| x      | float  | A number.     |
| y      | float  | A number.     |

### Returns

| NAME   | TYPE   | DESCRIPTION                                                                            |
|:-------|:-------|:---------------------------------------------------------------------------------------|
| num    | Float  | A new take on the traditional sum function. x * 2 + y * 3. Not at all useful. But fun! |

### Example

```python
>>> from examplepackage.example import custom_sum
>>> custom_sum(2, 3)
13
```

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

jupydocs-0.1.2.tar.gz (6.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

jupydocs-0.1.2-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file jupydocs-0.1.2.tar.gz.

File metadata

  • Download URL: jupydocs-0.1.2.tar.gz
  • Upload date:
  • Size: 6.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.4 CPython/3.7.6 Darwin/19.6.0

File hashes

Hashes for jupydocs-0.1.2.tar.gz
Algorithm Hash digest
SHA256 59e39aa3b27149e16f2d037a220812d03c2eb9e68c2a667e82de56f92177ea75
MD5 eab16573112e6361af342f6364e65ab4
BLAKE2b-256 1b309b543033e692aa18fdcdda08d7e6172d7ac52c63afab9ccd500e12b6072b

See more details on using hashes here.

File details

Details for the file jupydocs-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: jupydocs-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 6.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.4 CPython/3.7.6 Darwin/19.6.0

File hashes

Hashes for jupydocs-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9bc499b6c9db304db6cd0b461763fd8524cffcb03be2f2adb63357c00f29659c
MD5 ddb5edcf5575eba7bdf56afa72312ad7
BLAKE2b-256 152e66c941f33588b4b8223513d38dcfce921c50f7568d1c504b408d1c24019d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page