sampleproject
raw JSON → 4.0.0 verified Sat May 09 auth: no python
A sample Python project demonstrating packaging and distribution best practices. Currently at version 4.0.0, maintained by the Python Packaging Authority. Released sporadically with major updates reflecting changes in PyPA tooling.
pip install sampleproject Common errors
error ModuleNotFoundError: No module named 'sampleproject' ↓
cause Package not installed or installed in wrong environment.
fix
Run
pip install sampleproject in the same environment as your script. error AttributeError: module 'sampleproject' has no attribute 'main' ↓
cause The package does not expose a 'main' function in newer versions.
fix
Use
import sampleproject and check dir(sampleproject) for available attributes. Warnings
gotcha sampleproject is a placeholder/tutorial package. It has no real functionality. Do not use it as a dependency. ↓
fix Use a real library or create your own package.
deprecated The sampleproject package is frozen and not intended for production. Breaking changes may occur without notice. ↓
fix Pin to a specific version if you must depend on it.
Imports
- sampleproject
import sampleproject
Quickstart
import sampleproject
print(sampleproject.__version__)