Registry / testing / mozterm

mozterm

JSON →
library1.0.0pypypi✓ verified 85d ago

Terminal abstractions built around the blessings module, used in Mozilla's testing and automation tools. Current version 1.0.0, low maintenance cadence.

pip install mozterm
INSTALL
IMPORT
SIG · MOZTERM
M
mozterm
testingpythonv1.0.0
Install
1.6s avg
Import
12ms
Disk
16MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v1.0.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.012s · 17.9MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 1.6s · import 0.010s · 18MB
16MB installed
● package 16MB
Code
Verified usage

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

Terminal
from mozterm import Terminal
Direct import from mozterm package.

Quick usage of Terminal to print colored text.

from mozterm import Terminal term = Terminal() print(term.red('Hello, world!'))
Debug
Known issues
gotchamozterm wraps the blessings library. Do not import both; use mozterm for consistent behavior across Mozilla tools.
fix
Always use from mozterm import Terminal instead of from blessings import Terminal.
affects: all
deprecatedThe package is in maintenance mode with no active development. Consider using blessings directly or other modern terminal libraries if you need new features.
fix
Evaluate if you need mozterm's specific abstractions; otherwise use blessings or rich.
affects: >=1.0.0
Errors
Common errors & fixes
ImportError: No module named 'mozterm'
mozterm not installed in the current environment.
fix
Run: pip install mozterm
AttributeError: module 'mozterm' has no attribute 'Terminal'
Incorrect import statement, e.g., import mozterm then mozterm.Terminal.
fix
Use: from mozterm import Terminal
Upgrade
Version history
1.0.0latest on PyPI · released Jul 3, 2018
Audit
Dependencies
blessingsrequiredRequired for terminal capabilities.
Agent activity
7 hits · last 30 days
node
6
Resources
mozterm — pip install mozterm · libregistry