Skip to main content

A python template that helps you jump start your project

Project description

Hyperfast Python Template

pypi-image version-image release-date-image license-image jupyter-book-image codecov

Streamlining Python Project Development with a Comprehensive Toolset for Quality, Efficiency, and Maintainability

The Hyperfast Python Template is a powerful and comprehensive solution designed to accelerate the development and maintenance of high-quality Python projects. By incorporating industry best practices and automating key aspects such as dependency management, releases, code formatting, testing, and documentation, this template streamlines the entire development process. It ensures code quality through continuous integration, coverage reporting, linting, and static type-checking while providing seamless support for Conventional Commits and Semantic Versioning. With the Hyperfast Python Template, developers can efficiently create and manage Python projects, focusing on their core functionality while enjoying a robust, well-organized, and maintainable codebase.

Quickstart

There are two ways to use this project:

  • Use [Copier] to create a project to your local machine directly
  • Inject [Hyperfast Python Template] into an existing project

I. Use Copier

  1. Install Copier
    pipx install copier
    
  2. Run
    copier copy --trust gh:entelecheia/hyperfast-python-template path/to/destination
    
  3. Do your work

II. Inject the template

  1. Install Copier
    pipx install copier
    
  2. From the root of your project, run
    copier copy --trust gh:entelecheia/hyperfast-python-template .
    
  3. Do your work

Managing Actions Secrets and Variables in Your Project

When using the HyFI-Template for your project, there are several GitHub Actions secrets and variables that you need to add to ensure proper functioning of the release action and optional JupyterBook deployment.

Adding PYPI_API_TOKEN and TEST_PYPI_API_TOKEN

To automate the release process of your project to PyPI, you need to provide two tokens: PYPI_API_TOKEN and TEST_PYPI_API_TOKEN. These tokens will be used by the GitHub Actions workflow to authenticate with PyPI and TestPyPI, respectively.

  1. Generate an API token for your PyPI account by following the instructions in the official PyPI documentation.
  2. Generate an API token for your TestPyPI account by following the instructions in the official TestPyPI documentation.
  3. In your GitHub repository, go to the "Settings" tab and click on "Secrets" in the left sidebar.
  4. Click the "New repository secret" button.
  5. Add the PYPI_API_TOKEN secret with the value set to the token generated for your PyPI account.
  6. Add the TEST_PYPI_API_TOKEN secret with the value set to the token generated for your TestPyPI account.

By providing these tokens, your project's release action will have the necessary permissions to publish your package to PyPI and TestPyPI.

Optionally Adding CNAME for JupyterBook Deployment

If you plan to deploy the JupyterBook documentation to a custom domain, you'll need to add a CNAME variable to your GitHub repository.

  1. In your GitHub repository, go to the "Settings" tab and click on "Pages" in the left sidebar.
  2. Follow the instructions to configure your custom domain.
  3. In your GitHub repository, go to the "Settings" tab and click on "Repository Variables" in the left sidebar.
  4. Click the "New repository variable" button.
  5. Add a new variable with the key CNAME and set the value to your custom domain (e.g., your-custom-domain.com).

By adding the CNAME variable, the GitHub Pages action in your deploy-docs.yaml workflow will properly configure the deployment to use your custom domain.

With the CNAME repository variable properly configured, your project will be set up to handle JupyterBook deployment to your custom domain effectively.

Changelog

See the CHANGELOG for more information.

Contributing

Contributions are welcome! Please see the contributing guidelines for more information.

License

This project is released under the MIT License.

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

hyperfast_python_template-0.12.1.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

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

hyperfast_python_template-0.12.1-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file hyperfast_python_template-0.12.1.tar.gz.

File metadata

  • Download URL: hyperfast_python_template-0.12.1.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.9.6 readme-renderer/42.0 requests/2.31.0 requests-toolbelt/1.0.0 urllib3/2.2.1 tqdm/4.66.2 importlib-metadata/7.0.1 keyring/24.3.0 rfc3986/2.0.0 colorama/0.4.6 CPython/3.10.12

File hashes

Hashes for hyperfast_python_template-0.12.1.tar.gz
Algorithm Hash digest
SHA256 72e50e12abd0937163ec6bc15ea01561ea9609b56bf722c32c847b49f8ee997f
MD5 b40d24707cc523a2d051cdf1c73555ce
BLAKE2b-256 2500b9630aafb669fe2b5b078f5a51cd20dbe134aa712cfde31b500863fb576d

See more details on using hashes here.

File details

Details for the file hyperfast_python_template-0.12.1-py3-none-any.whl.

File metadata

  • Download URL: hyperfast_python_template-0.12.1-py3-none-any.whl
  • Upload date:
  • Size: 5.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.9.6 readme-renderer/42.0 requests/2.31.0 requests-toolbelt/1.0.0 urllib3/2.2.1 tqdm/4.66.2 importlib-metadata/7.0.1 keyring/24.3.0 rfc3986/2.0.0 colorama/0.4.6 CPython/3.10.12

File hashes

Hashes for hyperfast_python_template-0.12.1-py3-none-any.whl
Algorithm Hash digest
SHA256 054c70bccd5a363f4d2c4c5ea2461e040f4e1dcb2f251b4dbf4c8e38315484c9
MD5 70ecda18b5f9f6024367a9757615941c
BLAKE2b-256 784f5a5d5678b5c36c5f498655720547fa624e566759aaacdb6681fd764e64e5

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