MarkupSafe
PyPIv3.0.3Safely add untrusted strings to HTML/XML markup.
Not recommended for new projects
No — MarkupSafe should not be adopted for new projects. No license declared — you have no explicit right to use this code.
- ?Adoption: grade ?, Not reported by this registry.
No download data reported for this package yet.
- BMaintenance: grade B, Good.
Last published 347 days ago. 4 releases in the last 2 years.
- AWeight: grade A, Excellent.
Zero runtime dependencies, about 11 KB installed.
- BSupply chain: grade B, Good.
This package lists no maintainer.
- FLicense: grade F, Failing.
No license declared — you have no explicit right to use this code.
Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.
Install cost
What you actually take on by adding MarkupSafe to a project.
Runtime packages this one declares itself.
Distinct packages in the full runtime tree, deduplicated the way a package manager would.
Unpacked size of this package plus its entire runtime tree.
Longest resolved dependency chain below this package.
Compatibility
- Python
- python >=3.9
Quick start
A usage example from the MarkupSafe README.
>>> from markupsafe import Markup, escape
>>> # escape replaces special characters and wraps in Markup
>>> escape("<script>alert(document.cookie);</script>")
Markup('<script>alert(document.cookie);</script>')
>>> # wrap in Markup to mark text "safe" and prevent escaping
>>> Markup("<strong>Hello</strong>")
Markup('<strong>hello</strong>')
>>> escape(Markup("<strong>Hello</strong>"))
Markup('<strong>hello</strong>')
>>> # Markup is a str subclassUsed by
Popular packages that depend on MarkupSafe.
Relationship graph
Dependencies (left) and dependents (right) of MarkupSafe.
Release history
1 release in the last two years, typically about 136 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 3.0.3latest | 11 months ago | 11 KB | — |
| 3.0.2 | 1 year ago | 14 KB | — |
| 3.0.1 | 1 year ago | 14 KB | — |
| 3.0.0 | 1 year ago | 14 KB | — |
| 2.1.5 | 2 years ago | 18 KB | — |
| 2.1.4 | 2 years ago | 18 KB | — |
| 2.1.3 | 3 years ago | 17 KB | — |
| 2.1.2 | 3 years ago | 17 KB | — |
| 2.1.1 | 4 years ago | 17 KB | — |
| 2.1.0 | 4 years ago | 17 KB | — |
| 2.0.1 | 5 years ago | 18 KB | — |
| 2.0.0 | 5 years ago | 14 KB | — |
| 2.0.0rc2 | 5 years ago | 14 KB | — |
| 2.0.0rc1 | 5 years ago | 13 KB | — |
| 2.0.0a1 | 6 years ago | 13 KB | — |
Overview
MarkupSafe is an PyPI package that safely add untrusted strings to HTML/XML markup. It has 1 known dependents in the graph. The latest version is 3.0.3.
Who should use it
Teams working in the PyPI ecosystem who need safely add untrusted strings to HTML/XML markup and value a focused solution.
When not to use it
Consider an alternative if you need to or if a more actively-maintained option better fits your PyPI stack.
Pros
- Zero runtime dependencies — minimal footprint.
Cons
- No license detected — review usage terms before adopting.
Auto-generated from collected registry metadata. No external claims are inferred.
Funding
Frequently asked questions
Should I use MarkupSafe?
No — MarkupSafe should not be adopted for new projects. No license declared — you have no explicit right to use this code.
How do I install MarkupSafe?
Run `pip install MarkupSafe` to add MarkupSafe to your PyPI project.
What license is MarkupSafe released under?
No license was detected in MarkupSafe's metadata; review the repository before use.
How popular is MarkupSafe?
PyPI does not publish download counts. Within PackageGraph's crawl, 1 known packages depend on MarkupSafe.
Is MarkupSafe still maintained?
The most recent release of MarkupSafe (v3.0.3) was published 11 months ago.