Skip to main content

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

mango_pycore-0.1.40a0.tar.gz (3.0 MB view details)

Uploaded Source

Built Distribution

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

mango_pycore-0.1.40a0-py3-none-any.whl (3.1 MB view details)

Uploaded Python 3

File details

Details for the file mango_pycore-0.1.40a0.tar.gz.

File metadata

  • Download URL: mango_pycore-0.1.40a0.tar.gz
  • Upload date:
  • Size: 3.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.4.1 CPython/3.13.13 Linux/6.17.0-1018-azure

File hashes

Hashes for mango_pycore-0.1.40a0.tar.gz
Algorithm Hash digest
SHA256 509f2bad6f00ac0a9e7723ec89350806ba62e16ba5138b48b46c65a6f9ef4e35
MD5 958c4a1f9e58623479ddf77dbdde31c7
BLAKE2b-256 08262794346497a7776de7fb92937e82b0811c3eac07280a5061bfbcda569f71

See more details on using hashes here.

File details

Details for the file mango_pycore-0.1.40a0-py3-none-any.whl.

File metadata

  • Download URL: mango_pycore-0.1.40a0-py3-none-any.whl
  • Upload date:
  • Size: 3.1 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.4.1 CPython/3.13.13 Linux/6.17.0-1018-azure

File hashes

Hashes for mango_pycore-0.1.40a0-py3-none-any.whl
Algorithm Hash digest
SHA256 0c7ef503dd44337ccc73e259e31a5bd6f88d11deb96633dbbd29c8c95397a1f6
MD5 bdb66e351d0b5347bda6eb8da13f65b3
BLAKE2b-256 0097601bdca8130adc8da1e67162f91c9b6e249e2f5f4fa90bd7644de6c70112

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