aboutsummaryrefslogtreecommitdiffstats
path: root/env/lib/python3.10/site-packages/pikepdf/__init__.py
diff options
context:
space:
mode:
authorLibravatarLibravatar Biswakalyan Bhuyan <biswa@surgot.in> 2022-11-14 16:43:12 +0530
committerLibravatarLibravatar Biswakalyan Bhuyan <biswa@surgot.in> 2022-11-14 16:43:12 +0530
commitd47f8b48935d258f4c5c3e2267911753bebd5214 (patch)
tree3ed04e75bc3fc7c8e4ce618f527565da1df630a1 /env/lib/python3.10/site-packages/pikepdf/__init__.py
parent9468226a9e2e2ab8cdd599f1d8538e860ca86120 (diff)
downloadidcard-d47f8b48935d258f4c5c3e2267911753bebd5214.tar.gz
idcard-d47f8b48935d258f4c5c3e2267911753bebd5214.tar.bz2
idcard-d47f8b48935d258f4c5c3e2267911753bebd5214.zip
id card
Diffstat (limited to 'env/lib/python3.10/site-packages/pikepdf/__init__.py')
-rw-r--r--env/lib/python3.10/site-packages/pikepdf/__init__.py100
1 files changed, 0 insertions, 100 deletions
diff --git a/env/lib/python3.10/site-packages/pikepdf/__init__.py b/env/lib/python3.10/site-packages/pikepdf/__init__.py
deleted file mode 100644
index bca1e92..0000000
--- a/env/lib/python3.10/site-packages/pikepdf/__init__.py
+++ /dev/null
@@ -1,100 +0,0 @@
-# SPDX-FileCopyrightText: 2022 James R. Barlow
-# SPDX-License-Identifier: MPL-2.0
-
-"""A library for manipulating PDFs.
-
-isort:skip_file
-"""
-
-try:
- from . import _qpdf
-except ImportError as _e: # pragma: no cover
- _msg = "pikepdf's extension library failed to import"
- raise ImportError(_msg) from _e
-
-try:
- from ._version import __version__
-except ImportError as _e: # pragma: no cover
- raise ImportError("Failed to determine version") from _e
-
-from ._qpdf import (
- AccessMode,
- Annotation,
- AttachedFileSpec,
- ContentStreamInlineImage,
- ContentStreamInstruction,
- DataDecodingError,
- ForeignObjectError,
- Job,
- JobUsageError,
- NameTree,
- NumberTree,
- ObjectHelper,
- ObjectStreamMode,
- Page,
- PasswordError,
- Pdf,
- PdfError,
- Rectangle,
- StreamDecodeLevel,
- Token,
- TokenFilter,
- TokenType,
-)
-
-from .objects import (
- Array,
- Dictionary,
- Name,
- Object,
- ObjectType,
- Operator,
- Stream,
- String,
-)
-
-from .models import (
- Encryption,
- Outline,
- OutlineItem,
- OutlineStructureError,
- PageLocation,
- PdfImage,
- PdfInlineImage,
- PdfMatrix,
- Permissions,
- UnsupportedImageTypeError,
- make_page_destination,
- parse_content_stream,
- unparse_content_stream,
-)
-
-from . import settings
-
-# Importing these will monkeypatch classes defined in C++ and register a new
-# pdfdoc codec
-from . import _methods, codec
-
-# While _cpphelpers is intended to be called from our C++ code only, explicitly
-# importing helps introspection tools like PyInstaller figure out that the module
-# is necessary.
-from . import _cpphelpers
-
-__libqpdf_version__ = _qpdf.qpdf_version()
-
-
-# Provide pikepdf.{open, new} -> pikepdf.Pdf.{open, new}
-open = Pdf.open # pylint: disable=redefined-builtin
-new = Pdf.new
-
-# Exclude .open, .new here from to make sure from pikepdf import * does not clobber
-# builtins.open()
-# Exclude codec, objects, jbig2 because we import the interesting bits from them
-# directly to here.
-_exclude_from__all__ = {'open', 'new', 'codec', 'objects', 'jbig2'}
-
-__all__ = [
- k
- for k in locals().keys()
- if not k.startswith('_') and k not in _exclude_from__all__
-]