This is a template for python projects.
Project description
Python Project Template
This is a template repository for python project.
check GitHub document aboud template repository.
CI/CD
for detail about badges, see
This project is integrated with ./scripts/ci.sh
You should run the script every time before git commit.
docker environment
Use docker to avoid annoying environment conflicts.
First, you must set the project name in docker/.env
file.
then you can run docker-compose up -d
command
to build an docker image with default Dockerfile.
$ cd docker \
&& docker-compose up -d
for details about docker, see official documentations
Documenting
You can use documenting tools like
and host it on readthedocs
Python Project Template
's documentation
sphinx
shpinx-apidoc
generate document with sphinx-apidoc command. script
configurations (todo)
sphinx extensions https://www.sphinx-doc.org/en/master/usage/extensions/index.html
napoleon https://www.sphinx-doc.org/en/master/usage/extensions/napoleon.html#module-sphinx.ext.napoleon
numpy style https://numpydoc.readthedocs.io/en/latest/format.html#docstring-standard
google style https://github.com/google/styleguide/blob/gh-pages/pyguide.md#38-comments-and-docstrings
publish package to Pypi
hit this command on terminal to publish the current version to Pypi.
$ ./scripts/publish.sh
- auto updating with github actions is coming soon.
license
Quick Start using this template.
- edit project name for docker environment.
- edit project configuration
- edit
pyproject.toml
's metadata section. - delete such as
tool.poetry.scripts
and so on needless.
- edit
- edit documentation configuration.
docs/_*.conf.py
files.scripts/generate_sphinx_docs_headers.py
.readthedocs.yaml
'ssphinx.configuration
option (optional).
- Rewrite your own project README.
- delete
src/package_*
directories. - now it's time to start make your own package.
Project details
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
Hashes for python-project-templates-0.1.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7c7ed5dbbde7633c0a14040365dac97ad5222f707cda935f4751be3e588a8953 |
|
MD5 | b1b3728bc749276d138ffb865e1d1bfd |
|
BLAKE2b-256 | 0f11535fd100376866d417a155fc6c2d6633b5345883e6d20a156b983dfb2816 |
Hashes for python_project_templates-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bcb28f4eb0ac7d2dc19ec3bd75a4e88922185b3255eb168e4714ae8d6d884f86 |
|
MD5 | 32e8b40134193b6045e2ef358db95203 |
|
BLAKE2b-256 | f7a6e421ae7968eeaee8c0719f2047f6d45b0ac8f9cab39c1c2a7f8a754618b0 |