Skip to main content

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

Metadata

Release files for jupydocs 0.1.2

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

Source distribution (sdist)

Source distribution for jupydocs 0.1.2
File Size Uploaded Provenance Actions
jupydocs-0.1.2.tar.gz 6.5 kB Without provenance Details for jupydocs-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for jupydocs 0.1.2
File Interpreter ABI Platform Actions
jupydocs-0.1.2-py3-none-any.whl Python 3 none any Details for jupydocs-0.1.2-py3-none-any.whl

Total release size: 12.8 kB

Release files / jupydocs-0.1.2.tar.gz

Download URL jupydocs-0.1.2.tar.gz
Size 6.5 kB
Tags Source
SHA-256 checksum
How to use checksums
59e39aa3b27149e16f2d037a220812d03c2eb9e68c2a667e82de56f92177ea75
BLAKE2b-256 checksum
How to use checksums
1b309b543033e692aa18fdcdda08d7e6172d7ac52c63afab9ccd500e12b6072b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.4 CPython/3.7.6 Darwin/19.6.0

Release files / jupydocs-0.1.2-py3-none-any.whl

Download URL jupydocs-0.1.2-py3-none-any.whl
Size 6.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9bc499b6c9db304db6cd0b461763fd8524cffcb03be2f2adb63357c00f29659c
BLAKE2b-256 checksum
How to use checksums
152e66c941f33588b4b8223513d38dcfce921c50f7568d1c504b408d1c24019d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.4 CPython/3.7.6 Darwin/19.6.0

Security for jupydocs 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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