$npx skillfedfor your agent

mailbits

Assorted e-mail utility functions

Worth itPyPI UtilitiesReleased Nov 2025334.7K downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — mailbits-0.2.3-py3-none-any.whl
v0.2.3 · released 2025-11-29 · Python >=3.10 · 1 runtime deps: attrs

Yes. mailbits is actively maintained, has no known vulnerabilities, low install friction, and a permissive MIT license. It solves a real friction point in the standard library's email API. Install it if you work with email messages and need cleaner introspection or conversion utilities.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.10 or higher
  • Low install friction with a single lightweight dependency.
  • Actively maintained with recent commits; requires Python 3.10 or higher.

License · maintenance · safety

MIT (permissive) — MIT license permits free use, modification, and distribution with minimal restrictions, suitable for both open-source and commercial projects.

last release 2025-11-29 (258 days) · last repo commit 2026-07-20 · 3 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 334,729 downloads/mo, #7,484 on PyPI

Verify before relying

pip install mailbits

from mailbits import ContentType, email2dict

ct = ContentType.parse("text/plain; charset=utf-8")
print(ct.maintype, ct.subtype)

msg_dict = email2dict(msg)
  • Whether the package handles all RFC 5322 edge cases or has known parsing limitations
  • Performance characteristics when processing large or deeply nested multipart messages
  • Whether attrs is required at runtime or only for development
Same gist for agents: .md · .json

What it is and what it does

mailbits is a small utility library that wraps Python's standard email module to make working with Message, EmailMessage, Address, and Group objects simpler and more inspectable. It provides functions to parse Content-Type headers into structured objects, convert email messages into plain Python dicts for easier inspection and comparison, extract recipient addresses, and convert between the older Message class and newer EmailMessage format.

The main use case is when you need to examine or manipulate email messages programmatically but find the standard library's API cumbersome—for instance, when comparing two messages for equality, pretty-printing message structure, or extracting specific address fields. The dict conversion handles nested multipart messages, decodes encoded text and bytes, and provides special representations for headers like From, To, and Content-Type.

Use it for

  • Convert email Message objects to dicts for easier testing and comparison in unit tests
  • Parse and inspect Content-Type headers to extract media type and parameters
  • Extract and format recipient email addresses from EmailMessage objects
  • Convert legacy Message instances to the newer EmailMessage format
  • Pretty-print or log the structure of a multipart email for debugging

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Worth it

Yes.

mailbits is actively maintained, has no known vulnerabilities, low install friction, and a permissive MIT license. It solves a real friction point in the standard library's email API. Install it if you work with email messages and need cleaner introspection or conversion utilities.

Install

mailbits on PyPI

Before you install

Low install friction with a single lightweight dependency. Actively maintained with recent commits; requires Python 3.10 or higher.

Requires Python 3.10 or higher

License in practice

MIT license permits free use, modification, and distribution with minimal restrictions, suitable for both open-source and commercial projects.

Quickstart

pip install mailbits

from mailbits import ContentType, email2dict

ct = ContentType.parse("text/plain; charset=utf-8")
print(ct.maintype, ct.subtype)

msg_dict = email2dict(msg)

Verify before relying

  • Whether the package handles all RFC 5322 edge cases or has known parsing limitations
  • Performance characteristics when processing large or deeply nested multipart messages
  • Whether attrs is required at runtime or only for development

Package facts

LicenseMIT permissive
Python supportSupports the current Python release >=3.10
Install frictionLow. Pure-Python wheel
Runtime dependencies
1 package
attrs
MaintenanceActively maintained 258 days since the last release
Last repo commit
First released
Downloads334,729 / month, #7,484 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Intended Audience :: DevelopersProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyTopic :: Communications :: EmailTopic :: UtilitiesTyping :: Typed

Evidence: mailbits-0.2.3-py3-none-any.whl

Tags

Capabilities
email message parsing utilitiesconvert email message to dictparse content-type headersextract email addressesemail inspection toolsmessage structure analysisemailmessage utilities
Topics
email-utilitiesmessage-parsing
PyPI keywords
EmailMessagecontent typee-maile-mail addresse-mail comparisone-mail inspectionemailrecipients

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “email message parsing utilities”

  • mailbitsProvides utilities for parsing, converting, and inspecting email…
  • eml-parserParses EML (email) files and extracts structured information…
  • quotequailIdentifies and separates quoted text from original content in plain…

Give your agent the search over MCP, or paste the wish link into any chat.

More Utilities packages

idna Worth it
PyPI · Python Modules · released Jun 2026

Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.

Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.

BSD-3-Clausepure Python · 3.9+
1.8Bdownloads / mo
charset-normalizer Worth it
PyPI · Utilities · released Aug 2026

Detects and normalizes text encoding from unknown or ambiguous sources, supporting all IANA character sets that Python's core library provides codecs for, with the ability to register custom codecs.

permissive licensepure Python · 3.7+
1.7Bdownloads / mo
setuptools Worth it
PyPI · Python Modules · released Aug 2026

Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.

MITpure Python · 3.10+
1.6Bdownloads / mo
pluggy Worth it
PyPI · Libraries · released May 2025

Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.

Install it if you're building an extensible application or framework.

MITpure Python · 3.9+aging
1.3Bdownloads / mo
Pygments Worth it
PyPI · Utilities · released Mar 2026

Pygments is a syntax highlighter that colorizes source code and text in over 500 languages and formats, outputting to HTML, LaTeX, RTF, SVG, images, or ANSI terminal sequences.

Install it if you need to display or transform source code.

BSD-2-Clausepure Python · 3.9+
1.3Bdownloads / mo
six With conditions
PyPI · Libraries · released Dec 2024

Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.

MITpure Python
1.2Bdownloads / mo

See also mail-parser · email-validator · imap-tools · quotequail · flufl.bounce · pyap · pyap2 · postmarker · django-templated-email · iptools