No project description provided
Project description
Mango Pycore
An implementation of common features for all SAM backend projects for Mango Soft Inc
How to install
$ pip install mango-pycore
Documentation
To view the documentation in your own machine: Got to docs/_build/html and view the index.html file (open with live server).
Create Documentations from Scratch
Make sure you are working on a virtual environment with Sphinx installed: (using python 3.9)
$ python3 --version
Python 3.9.7
$ python3 -m venv venv39
$ . venv39/bin/activate
Install Sphinx and the Sphinx rtd theme:
$ pip install -U sphinx
$ pip install sphinx-rtd-theme
Create a docs folder inside the "api" folder:
$ mkdir docs
Inside the docs folder, start sphinx:
$ sphinx-quickstart
Fill the documentation information: your name, the project's name and the release number. Let the language and the separation of the source as default: [eng] an [no].
Go into the "conf.py" document insid the docs folders. Add the desired path after importing os and sys:
import os
import sys
sys.path.insert(0, os.path.abspath('..'))
Modify the extensions:
extensions = ["sphinx.ext.autodoc", "sphinx.ext.napoleon", "sphinx.ext.viewcode", "sphinx.ext.todo"]
autodoc_default_options = {
'members': True,
'undoc-members': False,
'private-members': True,
'special-members': False,
'inherited-members': False,
'show-inheritance': False,
}
Select the desired theme, in this case we will be using the "sphinx rtd theme":
html_theme = 'sphinx_rtd_theme'
In the main folder of the project run:
$ sphinx-apidoc -o docs folder_you_want_documented
This will create the .rst files for the documentation of the folder you want to document. The .rst files will appear in the docs folder.
Make sure the modules.rst file references the modules inside your project. In our case it should look like this:
mango_pycore
============
.. toctree::
:maxdepth: 4
api
environment_data
objects
stream
tools
websocket
Inside the docs folder run:
make html
Modify the .rst files to your convenience.
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
Built Distribution
File details
Details for the file mango_pycore-0.1.35.tar.gz
.
File metadata
- Download URL: mango_pycore-0.1.35.tar.gz
- Upload date:
- Size: 3.0 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.4 CPython/3.8.18 Linux/6.5.0-1025-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d1b7303e43c47e9015d5eddfac75ed2b472dac3e3b51a98b73c7a8fbda92ac7a |
|
MD5 | 0238c48f3adce583c5ea940f7b08c4f1 |
|
BLAKE2b-256 | 95a59a20f59aaaf70bcf92e3b6471aef0c31cff47e26a9adf203162aa2adf9d9 |
File details
Details for the file mango_pycore-0.1.35-py3-none-any.whl
.
File metadata
- Download URL: mango_pycore-0.1.35-py3-none-any.whl
- Upload date:
- Size: 3.1 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.4 CPython/3.8.18 Linux/6.5.0-1025-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 172a0e216736993a1ad4cc6a370c4bad8e439d21fe62eab1bdfc33b47bbfe469 |
|
MD5 | 9514f2564c7defbc19192d34a54712d0 |
|
BLAKE2b-256 | daacf235058d909a12d7cbbb56b28c92ab6c0b6ffa8b796a7f98b2ac62954495 |