# pypa/sampleproject

A sample project that exists for PyPUG's "Tutorial on Packaging and Distributing Projects"

Repository: https://github.com/pypa/sampleproject
Canonical: https://ross.abutalabs.com/products/sampleproject
Homepage: https://packaging.python.org/tutorials/packaging-projects/
Language: Python
License: MIT
License Family: permissive
Last push: 2024-11-06T22:36:40+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 4656, "days_push": 665, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 5245, forks 1750 (observed 2026-08-28T04:09:13.630272+00:00)

## What it is
The official PyPA sample project demonstrating how to package and distribute Python projects using pyproject.toml. It serves as a companion example for the Python Packaging User Guide's distribution tutorial.

## Use cases
- learn how to package a python project
- example pyproject.toml for pypi distribution
- template for creating a new python package
- understand python packaging metadata
- follow the python packaging user guide tutorial
- see how to publish a package to pypi

## When to choose
- you are new to Python packaging and want a canonical, maintained example
- you need a minimal pyproject.toml reference to copy from
- you are following the PyPUG packaging tutorial

## When to avoid
- you need production best practices for testing, CI, or documentation tooling
- you want a full-featured cookiecutter template with linting and automation
- you need packaging guidance for non-Python ecosystems

## Facets
- artifact type: learning-resource
- maturity: active
- function: developer-tools, documentation, package-manager
- domain: developer-tools, tutorials, programming-languages
- platform: python, cross-platform
- tags: python-packaging, pyproject-toml, pypi, setuptools, sample-project, tutorial

## Member repositories
- pypa/sampleproject (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:13.630272+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:59:35.763153+00:00, confidence not recorded.
  - readme: https://github.com/pypa/sampleproject (fetched 2026-08-28T04:09:13.630272+00:00, sha 0ee0ddefd61f)
  - registry_pypi: https://pypi.org/pypi/sampleproject/json (fetched 2026-08-29T08:55:14.635836+00:00, sha 9776cae281a3)
- Data as of 2026-08-30T08:39:29.467469+00:00.
