Pypformat

Latest version: v1.1.2

Safety actively analyzes 723158 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

1.1.2

YT-PYPF-12: Extend the built-in collection type formatting support
---
Added formatting support for the following types:
- UserString
- UserList
- UserDict
- Counter

1.1.1

NONE: Missing pypi description file fix (required version bump)

1.1.0

YT-PYPF-22: Replace projection function mappings with iterables of callable projection objects
---
- Added the `TypeSpecificCallable` abstract class
- Aligned the `TypeFormatter` class to derive from `TypeSpecificCallable`
- Created the `TypeProjection` class deriving from `TypeSpecificCallable`
- Aligned the `FormatOptions` and `PrettyFormatter` classes to properly handle the projections using the new class

1.0.1

YT-PYPF-21: Introduce type-wise sorting of projections and formatters
---
Sorting the combined formatters list (predefined + user-defined) in the constructor of `PrettyFormatter` to ensure the proper ordering of types:
- the child types precede their parent types
- a type precedes an union to which it belongs
- `Any` and `object` are considered equal and always the greatest types in the ordering

1.0.0

Initial release of the `PyPformat` package.
---
The package contains the core `PrettyFormatter` class which is highly customizable through the `FormatOptions` .
The available options include:
- compact printing within a line width limit
- customizable indentation marking
- text styling
- object projection
- injecting custom type-specific formatting functions

Links

Releases

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.