Skip to main content

A simple demo of how to structure, use, and publish a Python package.

Project description

Python Package Template

Description

A simple demo of how to structure, use, and publish a Python package.

Prerequisites

Usage

Clone the repository

  • This is a template repository on GitHub
  • To use it, click the green Use this template button at the top of the GitHub page
  • Clone your new repository to your local machine

Make changes

  • Change the package name from example_package_samreynoldsmath to your own package name by renaming the directory
  • Edit the source code as needed
  • Update the pyproject.toml file to include your own package metadata
  • Update README.md, CHANGELOG.md, LICENSE, .gitignore, and other files as needed

Build and upload

Clear the dist directory

rm dist/*

Build the package using poetry

poetry build

Publish the package to PyPi using poetry

poetry publish

Install

In a fresh virtual environment, install the package using pip (replace example-package-samreynoldsmath with your package name)

pip install example-package-samreynoldsmath

License

MIT

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

example_package_samreynoldsmath-0.2.1.tar.gz (3.1 kB view hashes)

Uploaded Source

Built Distribution

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page