Easy Python package documentation using markdown and jupyter
Project description
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
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
jupydocs-0.1.1.tar.gz
(5.8 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 jupydocs-0.1.1.tar.gz.
File metadata
- Download URL: jupydocs-0.1.1.tar.gz
- Upload date:
- Size: 5.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.4 CPython/3.7.6 Darwin/19.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
78ea7c9465b315b4b4f39176ebf3541a2586106e98ac581c1bfa249dd7bc76fd
|
|
| MD5 |
d0d6223d99d351d7b1e29c7a4f0f66d0
|
|
| BLAKE2b-256 |
aedb7e8c48a5e4cab86b10fa524cc5243a7a81f2b944ffd7faea3ec9e0c0eca2
|
File details
Details for the file jupydocs-0.1.1-py3-none-any.whl.
File metadata
- Download URL: jupydocs-0.1.1-py3-none-any.whl
- Upload date:
- Size: 6.0 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2fc76bf87c9ce2c5d24f7d1ed82398cd719a39c456a9de177c3da1fa6a0eb01c
|
|
| MD5 |
322f202e01cdb7ba32625dccea19aa04
|
|
| BLAKE2b-256 |
eb25c1f6bf8158c43159ec77b8abe532e1a806943a33b5c85c069ad08fa52be6
|