pysubtypes
Provides subclasses for common python types with additional functionality and convenience methods.
What it is and what it does
pysubtypes provides drop-in subclasses of Python's built-in types (str, list, dict) and popular library types (datetime, Enum, pandas DataFrame, BeautifulSoup) that add convenience methods and improved string representations. The Str class adds slicing, regex operations, fuzzy matching, and clipboard functionality; List and Dict add method chaining on mutations and filtering; DateTime adds timedelta operations via keyword arguments; Frame (DataFrame subclass) adds pivoting, casing changes, and improved Excel/SQL export; and several other utility classes wrap requests.Session, subprocess.Popen, and colour.Color with similar enhancements.
The package is designed for developers who want to work with these types using a richer API without replacing them entirely. However, it is in abandoned status—the last release was 2021-02-01 and the last commit 2022-04-16—meaning no active maintenance, bug fixes, or compatibility updates should be expected. The description explicitly warns that the API may undergo significant breaking changes and documentation may fall out of sync.
Use it for:
- Add method chaining and regex filtering to dict operations in data processing pipelines.
- Use enhanced Str class with fuzzy matching and clipboard integration for text manipulation tasks.
- Leverage Frame (DataFrame subclass) for cleaner Excel export with automatic table formatting and SQL type inference.
- Simplify datetime arithmetic with DateTime.delta() keyword-argument syntax instead of timedelta objects.
- Extend Enum functionality with automatic lowercased values via AutoEnum without manual value assignment.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides enhanced subclasses for Python builtins (str, list, dict) and common types (datetime, Enum, DataFrame, BeautifulSoup) with additional convenience methods and better string representations.
No. The package is abandoned (last release 2021-02-01, last commit 2022-04-16) with no active maintenance. The description warns of API instability and documentation drift. While install friction is low and the MIT license is permissive, the 20 runtime dependencies and lack of maintenance create risk for compatibility issues and unpatched bugs. Use only if you are maintaining a legacy codebase already depending on it.
Install
pysubtypes on PyPI
pip
pip install pysubtypesuv
uv add pysubtypespoetry
poetry add pysubtypesInstalling pysubtypes
Before you install
Low install friction, but the package is abandoned—last release was 2021-02-01 and last commit 2022-04-16. No active maintenance or bug fixes should be expected.
License in practice
MIT license permits commercial and private use with minimal restrictions, though the abandoned status means no ongoing legal or security updates.
Quickstart
pip install pysubtypes
from pysubtypes import Str, List, Dict, DateTime, Frame
s = Str("hello world")
print(s.upper()) # Enhanced str subclass
l = List([1, 2, 3])
l.append(4) # Method chaining on in-place mutations
Verify before relying
- Whether the 20 runtime dependencies are all actively maintained and compatible with modern Python versions.
- Whether the API breakage warnings in the description remain relevant after 2021-02-01 or if the package reached stability.
- Compatibility with Python versions beyond 3.8 (officially supported version in classifiers).
Package facts
| License | MIT (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 20 — simplejson, aenum, bs4, case-conversion, colour, clipboard, html-text, python-dateutil, fuzzywuzzy, inflect, maybe-else, pandas, parsedatetime, prettierfier, regex, requests, tabulate, urllib3, xlsxwriter, msoffcrypto-tool |
| Maintenance | abandoned — 2,020 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 609,196/month — #5,775 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: pysubtypes-0.3.18-py3-none-any.whl
Tags
More Software Development packages
Provides backported and experimental type hints…
permissive · top 100 on PyPI
numpyNumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
distlibDistlib provides low-level packaging utilities…
permissive · top 1,000 on PyPI
matrix-enumExtends Python's built-in Enum to support…
permissive · top 15,000 on PyPI
dataclasses-json-speakeasyConverts Python dataclasses to and from JSON…
permissive · top 5,000 on PyPI
enum-toolsProvides utilities to enhance Python's enum…
copyleft · top 5,000 on PyPI
backports.strenumProvides StrEnum, a string-based enumeration…
permissive · top 5,000 on PyPI
jsonconversionConverts arbitrary Python objects to JSON…
permissive · top 5,000 on PyPI
dataclasses-jsonConverts Python dataclasses to and from JSON…
permissive · top 1,000 on PyPI
dataclass-wizardDataclass Wizard converts Python dataclasses to…
permissive · top 5,000 on PyPI
pynamodb-attributesProvides typed attribute classes for PynamoDB…
unclear · top 15,000 on PyPI
flake8-builtinsA flake8 plugin that detects when Python…
copyleft · top 5,000 on PyPI
enum34Provides enumeration support for older Python…
permissive · top 5,000 on PyPI