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.
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
File details
Details for the file python-project-templates-0.1.5.tar.gz
.
File metadata
- Download URL: python-project-templates-0.1.5.tar.gz
- Upload date:
- Size: 6.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.12 CPython/3.9.9 Linux/5.13.0-30-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2da581e33477abbd650df485efb6e624cdb10540fc307a7b3dac6f1641288b97 |
|
MD5 | 5c9a1f0a0d22ec01de58acab8e0f8154 |
|
BLAKE2b-256 | fc4fcd9cb06acd74607fbac15cc184acf9fab0dbc751ee981504307fe8526874 |
File details
Details for the file python_project_templates-0.1.5-py3-none-any.whl
.
File metadata
- Download URL: python_project_templates-0.1.5-py3-none-any.whl
- Upload date:
- Size: 5.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.12 CPython/3.9.9 Linux/5.13.0-30-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e57a6368ed8137e8263712a2c1c22e238f8ab203c3cf9d5194e60848bfd073dd |
|
MD5 | d8309d48b7289b7757f1f201bfc21311 |
|
BLAKE2b-256 | 7b7897cb2b15fa253298fdd3a4274a37b1258636557d9b715574346d1ab6502c |