{"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,"search_vec":"'3.7.0':19 '3.8':22 'cadenc':24 'cli':32 'command':7,11,34 'command-lin':6,33 'current':17 'file':15 'frontend':9 'includ':10 'layout':16 'line':8,35 'low':26 'mainten':30 'mode':31 'packag':14 'past':37 'paster':38 'pastescript':1,2 'pluggabl':5 'python':21 'releas':23 'setup':13 'support':20 'templat':36 'version':18","created_at":"2026-05-01T08:11:52.542343+00:00","updated_at":"2026-05-01T08:11:52.542343+00:00","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,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":"3.7.0","cli_name":"paster","cli_version":"PasteScript 3.7.0 from /usr/local/lib/python3.11/site-packages (python 3.11.15 (main, Mar 16 2026, 23:07:56) [GCC 14.2.0])","type":"library","homepage":"https://pastescript.readthedocs.io/","github":null,"docs":null,"changelog":null,"pypi":"https://pypi.org/project/pastescript/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["devops"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"passing","verified_at":"2026-06-29","last_verified":"2026-06-29","next_check":"2026-07-29","install_tag":null}}