Registry / serialization / pyth3
library0.7pypypi✓ verified 24d ago

Pyth3 (version 0.7) is an incomplete and unmaintained port of the Python 2 `pyth` library, intended for text markup and conversion between formats like RTF and XHTML. The project explicitly states that while some components were partially upgraded for Python 3, many parts, including tests, are known to be broken, and the library is primarily targeted at Python 2.7. The last release was in February 2019, indicating it is no longer actively developed.

pip install pyth3
INSTALL
IMPORT
SIG · PYTH3
P
pyth3
serializationpythonv0.7
Install
1.5s avg
Import
Disk
16MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.7 · 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.000s · 18.1MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 1.5s · import 0.000s · 19MB
16MB installed
● package 16MB
Code
Verified usage

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

mimeMap
from pyth import mimeMap
from pyth.document import PythDocument
namedModule
from pyth import namedModule
namedObject
from pyth import namedObject

This quickstart illustrates a hypothetical import and usage pattern for `pyth3`, based on common Python library conventions and mentions from its Python 2 predecessor. However, it's crucial to understand that `pyth3` is explicitly stated by its maintainers as largely broken and unmaintained for Python 3. The provided code is therefore expected to fail or not function as intended, serving primarily as an example of *how* one might attempt to use such a library if it were functional.

import os # NOTE: This library is largely non-functional for Python 3 (as per its own PyPI description). # The following code demonstrates a hypothetical usage pattern based on the original Python 2 'pyth' library, # but is NOT expected to work with pyth3 version 0.7 due to its unmaintained and broken state. # Specific functionality like 'RTF15Reader' or 'XHTMLWriter' would be accessed via submodules. try: # In a fully functional library, you might import specific components like this: # from pyth.plugins.rtf15.reader import RTF15Reader # from pyth.plugins.xhtml.writer import XHTMLWriter # For demonstration, a placeholder import structure from pyth.document import PythDocument # Attempting to create a document or process text would likely fail or not be supported. print("Successfully attempted to import PythDocument (unlikely to be fully functional).") # Example: document = PythDocument.new_document() # print(document) except ImportError as e: print(f"ImportError: {e}. This library is known to have significant issues with Python 3.") except Exception as e: print(f"An unexpected error occurred: {e}. The library is likely broken for modern Python.")
Debug
Known issues
breakingThe `pyth3` library, despite its name, is primarily a (partially and incompletely) ported Python 2 project. Its PyPI description explicitly states that 'Everything else is unknown (or definitely broken on Python 3: even many of the tests fail)'. It is not expected to work correctly with modern Python 3 versions.
fix
Do not use `pyth3` for Python 3 projects. Seek alternative, actively maintained text markup and conversion libraries compatible with Python 3.
affects: <=0.7
gotchaThe library is unmaintained, with its last release in February 2019. This means there will be no bug fixes, security updates, or compatibility improvements for newer Python versions or related libraries.
fix
Avoid using unmaintained libraries in new projects. Migrate existing projects to actively supported alternatives.
affects: <=0.7
gotchaThe PyPI classifiers list 'Programming Language :: Python :: 2.7', which contradicts the 'pyth3' name and the intention of being a Python 3 port. This highlights the foundational incompatibility and lack of proper Python 3 support.
fix
Always check a library's full PyPI metadata, including classifiers and descriptions, to understand its true compatibility and maintenance status, especially when the name might be misleading.
affects: <=0.7
Upgrade
Version history
0.7latest on PyPI · released Feb 20, 2019
Audit
Dependencies

No dependency data recorded yet.

Agent activity
15 hits · last 30 days
node
12
Resources