{"id":24212,"library":"pastescript","title":"PasteScript","description":"PasteScript is a pluggable command-line frontend, including commands to setup package file layouts. Current version 3.7.0, supports Python >=3.8. Release cadence is low; it is in maintenance mode.","status":"maintenance","version":"3.7.0","language":"python","source_language":"en","source_url":"https://github.com/pypa/pastescript","tags":["cli","command-line","template","paste","paster"],"install":[{"cmd":"pip install pastescript","lang":"bash","label":"Install PasteScript"}],"dependencies":[],"imports":[{"note":"'pastescript' is not a top-level package; the correct module is 'paste.script'","wrong":"import pastescript","symbol":"PasteScript","correct":"import paste.script"},{"note":"Common mistake due to package name vs module name mismatch","wrong":"from pastescript import PasteScriptCommand","symbol":"PasteScriptCommand","correct":"from paste.script.command import PasteScriptCommand"}],"quickstart":{"code":"from paste.script.command import PasteScriptCommand\nimport os\n\n# Example: run a simple command\ncmd = PasteScriptCommand()\ncmd.run(['paster', '--version'])","lang":"python","description":"Quick start: Import the command class and run a paster command programmatically."},"warnings":[{"fix":"Use 'pastescript3' or migrate to a different CLI framework.","message":"PasteScript is in maintenance mode; consider using its successor 'pastescript3' or alternatives like 'click' for new projects.","severity":"deprecated","affected_versions":">=3.0"},{"fix":"Upgrade to Python 3.8 or later.","message":"Python 3.8+ required; Python 2 and older versions of Python 3 are no longer supported.","severity":"breaking","affected_versions":">=3.7.0"},{"fix":"Use 'import paste.script' or 'from paste.script import ...' as the package installs as a namespace part of 'paste'.","message":"Importing 'pastescript' directly instead of 'paste.script' leads to ModuleNotFoundError.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Use 'import paste.script' instead of 'import pastescript'.","cause":"The installed package 'pastescript' does not provide a top-level module named 'pastescript'; it installs as 'paste.script'.","error":"No module named pastescript"},{"fix":"Use 'from paste.script.command import PasteScriptCommand'.","cause":"Trying to import from the wrong module name.","error":"ImportError: cannot import name 'PasteScriptCommand' from 'pastescript'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}