--- id: pynliner version: "0.8.0" license: MIT license_treatment: permissive maintenance: abandoned --- # pynliner — Python CSS-to-inline-styles conversion tool for HTML using BeautifulSoup and cssutils License: permissive · Maintenance: abandoned · Downloads: 220.0K/mo ## What it is and what it does Pynliner is a CSS-to-inline-styles converter for HTML documents. It takes HTML with external or embedded stylesheets and rewrites the CSS rules as inline style attributes on the matching elements, which is useful for email templates and contexts where external stylesheets cannot be loaded. The tool parses HTML with BeautifulSoup and CSS with cssutils, then applies the styles to produce a self-contained HTML document. The package is classified as Production/Stable but has not been updated since 2017-01-10. It carries no runtime dependencies, making installation friction minimal. However, the long period without updates means no active support, bug fixes, or compatibility updates for modern Python or library versions. Use it for: - Prepare HTML email templates by inlining CSS so styles render correctly in email clients that strip external stylesheets - Convert web pages to self-contained HTML documents where external CSS references are not available or permitted - Preprocess HTML for archival or offline distribution where stylesheet links cannot be resolved - Embed styles directly into HTML snippets for use in contexts with strict Content Security Policy rules ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Converts CSS stylesheets to inline styles in HTML documents, using BeautifulSoup and cssutils to embed external or embedded CSS directly into element attributes. Yes, if you need CSS inlining and can tolerate an unmaintained package. The tool is simple, has no runtime dependencies, and carries no known vulnerabilities. However, verify compatibility with your Python version and library versions before relying on it in production, and be prepared to fork or patch it if issues arise. ## Install pip install pynliner uv add pynliner poetry add pynliner ## Installing pynliner Before you install: Installation is straightforward with no runtime dependencies, but the package has been abandoned since 2017-01-10 with no updates since. No active maintenance or security patches should be expected. License in practice: MIT license permits unrestricted use, modification, and distribution with minimal restrictions, making it legally safe to adopt in most projects. Quickstart: pip install pynliner from pynliner import Pynliner html = '
Hello
' result = Pynliner(html).run() print(result) Verify before relying: - Whether the package works reliably with modern Python versions despite classifiers listing only up to 3.5 - Current compatibility with recent versions of BeautifulSoup and cssutils - Whether abandoned status has led to unresolved bugs or security issues in real-world use ## Package facts - License: MIT (permissive) - Python support: unspecified - Install friction: low - Maintenance: abandoned - Downloads: 220.0K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags css to inline styles html, html email css inlining, convert stylesheet to inline, css inliner tool, html style embedding, email template css, email-template-prep, html-css-processing [View on SkillFed](https://skillfed.io/packages/pynliner) · [View on PyPI](https://pypi.org/project/pynliner/)