Registry / devops / pastescript

pastescript

JSON →
library3.7.0pypypi✓ verified 83d ago

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.

pip install pastescript
INSTALL
IMPORT
SIG · PASTESCRIPT
P
pastescript
devopspythonv3.7.0
Install
2.1s avg
Import
Disk
22MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v3.7.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 20.5MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 2.1s · import 0.000s · 21MB
22MB installed
● package 22MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

PasteScript
import paste.script
import pastescript
'pastescript' is not a top-level package; the correct module is 'paste.script'
PasteScriptCommand
from paste.script.command import PasteScriptCommand
from pastescript import PasteScriptCommand
Common mistake due to package name vs module name mismatch

Quick start: Import the command class and run a paster command programmatically.

from paste.script.command import PasteScriptCommand import os # Example: run a simple command cmd = PasteScriptCommand() cmd.run(['paster', '--version'])
paster --version
Debug
Known issues
deprecatedPasteScript is in maintenance mode; consider using its successor 'pastescript3' or alternatives like 'click' for new projects.
fix
Use 'pastescript3' or migrate to a different CLI framework.
affects: >=3.0
breakingPython 3.8+ required; Python 2 and older versions of Python 3 are no longer supported.
fix
Upgrade to Python 3.8 or later.
affects: >=3.7.0
gotchaImporting 'pastescript' directly instead of 'paste.script' leads to ModuleNotFoundError.
fix
Use 'import paste.script' or 'from paste.script import ...' as the package installs as a namespace part of 'paste'.
affects: all
Errors
Common errors & fixes
No module named pastescript
The installed package 'pastescript' does not provide a top-level module named 'pastescript'; it installs as 'paste.script'.
fix
Use 'import paste.script' instead of 'import pastescript'.
ImportError: cannot import name 'PasteScriptCommand' from 'pastescript'
Trying to import from the wrong module name.
fix
Use 'from paste.script.command import PasteScriptCommand'.
Upgrade
Version history
3.7.0latest on PyPI · released Jan 22, 2025
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
pastescript — pip install pastescript · libregistry