forked from pool/python-pikepdf
Accepting request 1324586 from devel:languages:python
- update to 10.1.0:
* Added {class}`pikepdf.NamePath` for ergonomic access to deeply
nested PDF structures. NamePath provides a single-operation
traversal with helpful error messages showing exactly where
traversal failed.
* Added explicit scalar types: {class}`pikepdf.Integer`,
{class}`pikepdf.Boolean`, and {class}`pikepdf.Real`. When
explicit conversion mode is enabled, these types
are returned instead of Python native types (`int`, `bool`,
`Decimal`), enabling better type safety and static type checking.
* Added {func}`pikepdf.set_object_conversion_mode` and
{func}`pikepdf.get_object_conversion_mode` to control
conversion behavior globally.
* Added {func}`pikepdf.explicit_conversion` context manager for
temporarily enabling explicit conversion mode.
* Added safe accessor methods to
{class}`pikepdf.Object`: {meth}`~pikepdf.Object.as_int`,
{meth}`~pikepdf.Object.as_bool`, {meth}`~pikepdf.Object.as_float`, and
{meth}`~pikepdf.Object.as_decimal` with optional default parameters
for type-safe access to scalar values.
* `pikepdf.Integer` and `pikepdf.Real` now support full arithmetic
operations with both `int` and `float` operands, including true
division (`/`).
OBS-URL: https://build.opensuse.org/request/show/1324586
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pikepdf?expand=0&rev=31
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:7c85a2526253e35575edb2e28cdc740d004be4b7c5fda954f0e721ee1c423a52
|
||||
size 4548116
|
||||
3
pikepdf-10.1.0.tar.gz
Normal file
3
pikepdf-10.1.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:d75778283c354580a462d31bd4334f6ba92225e41ccd8bb949ec6e98a23d4eb2
|
||||
size 4566184
|
||||
@@ -1,3 +1,30 @@
|
||||
-------------------------------------------------------------------
|
||||
Sun Dec 28 19:30:51 UTC 2025 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
- update to 10.1.0:
|
||||
* Added {class}`pikepdf.NamePath` for ergonomic access to deeply
|
||||
nested PDF structures. NamePath provides a single-operation
|
||||
traversal with helpful error messages showing exactly where
|
||||
traversal failed.
|
||||
* Added explicit scalar types: {class}`pikepdf.Integer`,
|
||||
{class}`pikepdf.Boolean`, and {class}`pikepdf.Real`. When
|
||||
explicit conversion mode is enabled, these types
|
||||
are returned instead of Python native types (`int`, `bool`,
|
||||
`Decimal`), enabling better type safety and static type checking.
|
||||
* Added {func}`pikepdf.set_object_conversion_mode` and
|
||||
{func}`pikepdf.get_object_conversion_mode` to control
|
||||
conversion behavior globally.
|
||||
* Added {func}`pikepdf.explicit_conversion` context manager for
|
||||
temporarily enabling explicit conversion mode.
|
||||
* Added safe accessor methods to
|
||||
{class}`pikepdf.Object`: {meth}`~pikepdf.Object.as_int`,
|
||||
{meth}`~pikepdf.Object.as_bool`, {meth}`~pikepdf.Object.as_float`, and
|
||||
{meth}`~pikepdf.Object.as_decimal` with optional default parameters
|
||||
for type-safe access to scalar values.
|
||||
* `pikepdf.Integer` and `pikepdf.Real` now support full arithmetic
|
||||
operations with both `int` and `float` operands, including true
|
||||
division (`/`).
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Nov 15 12:53:32 UTC 2025 - ecsos <ecsos@opensuse.org>
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
|
||||
%{?sle15_python_module_pythons}
|
||||
Name: python-pikepdf
|
||||
Version: 10.0.2
|
||||
Version: 10.1.0
|
||||
Release: 0
|
||||
Summary: Read and write PDFs with Python, powered by qpdf
|
||||
License: MPL-2.0
|
||||
|
||||
Reference in New Issue
Block a user