One-line description here!
This is a template for creating new python library. Here are some descriptions!
features
- print Hello World!
- print many Hello Worlds!
- command line tools for printing a lot of Hello Worlds!
Documentation: https://mypythonlibrary.readthedocs.io
Repository: https://github.com/terrencetec/mypythonlibrary
Contents
- Package 1
- Package 2
- Package 3
- Package 4
In principle, if you are using pip
, you don't have to install
dependencies beforehand. When you install this package, :code`pip` will
automatically install the required libraries. However if you are using Conda
it is best to use its own package manager and not pip unless absolutely
necessary.
If you use conda:
conda install -c conda-forge package1 package2
Now, let's say package 3 is not available, then we can use pip. But,
be sure to use which pip
to check if we are using the pip installed
on the conda environment and not the global one.
pip install package3
git clone https://github.com/terrencetec/mypythonlibrary.git
cd mypythonlibrary
pip install .
Try out the package and file an issue if you find any!
Please comply with the following standards/guides as much as possible.
- Keep a Changelog: https://keepachangelog.com/en/1.0.0/
- Semantic Versioning: https://semver.org/spec/v2.0.0.html
- PyPA: https://www.pypa.io
- python-packaging: https://python-packaging.readthedocs.io
- NumPy docstrings: https://numpydoc.readthedocs.io/en/latest/format.html
- Sphinx: https://www.sphinx-doc.org/
- Read The Docs: https://readthedocs.org/
- Documenting Python Code: A Complete Guide: https://realpython.com/documenting-python-code/
Generate documentation base, in docs/,
sphinx-quickstart
Select separate build and source files when prompted.
Preview documentation page with modified source, in docs/
make html
Open index.html with a browser (if this was set as the first page).