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
Hashes for python-project-templates-0.1.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2aeb0ff5dd74c4492ed5110dd98e1c8b36263e7fc66bfc93af2ae20e63cae962 |
|
MD5 | 864a465e934fa65e6bb0d6012c43563b |
|
BLAKE2b-256 | 0a1954c3adb39cf3974a1a343dc97cf0ba17a49c9a797792994f5dead93e426f |
Hashes for python_project_templates-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5461be14b23ebb3e179f848a8b50434145b9ba48ecb10c210efa8a455c2f8f1c |
|
MD5 | a7d86be6720406acf68646f2c4ce815d |
|
BLAKE2b-256 | c3df0eb48bb1059796626a5ec4653b8f915a702ba413077b21552b2c422debd1 |