{"id":28164,"library":"sampleproject","title":"sampleproject","description":"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.","status":"active","version":"4.0.0","language":"python","source_language":"en","source_url":"https://github.com/pypa/sampleproject/","tags":["sample","tutorial","packaging","pypa"],"install":[{"cmd":"pip install sampleproject","lang":"bash","label":"PyPI"}],"dependencies":[],"imports":[{"note":"The package is imported directly; no submodules are guaranteed.","wrong":"","symbol":"sampleproject","correct":"import sampleproject"}],"quickstart":{"code":"import sampleproject\nprint(sampleproject.__version__)\n","lang":"python","description":"Basic usage: import and display version. The library is a stub; no actual functionality is provided."},"warnings":[{"fix":"Use a real library or create your own package.","message":"sampleproject is a placeholder/tutorial package. It has no real functionality. Do not use it as a dependency.","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Pin to a specific version if you must depend on it.","message":"The sampleproject package is frozen and not intended for production. Breaking changes may occur without notice.","severity":"deprecated","affected_versions":"4.0.0"}],"env_vars":null,"last_verified":"2026-05-09T00:00:00.000Z","next_check":"2026-08-07T00:00:00.000Z","problems":[{"fix":"Run `pip install sampleproject` in the same environment as your script.","cause":"Package not installed or installed in wrong environment.","error":"ModuleNotFoundError: No module named 'sampleproject'"},{"fix":"Use `import sampleproject` and check `dir(sampleproject)` for available attributes.","cause":"The package does not expose a 'main' function in newer versions.","error":"AttributeError: module 'sampleproject' has no attribute 'main'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}