numbers-parser 4.10.1__py3-none-any.whl → 4.10.3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- numbers_parser/__init__.py +8 -23
- numbers_parser/cell.py +1152 -165
- numbers_parser/constants.py +8 -0
- numbers_parser/containers.py +1 -1
- numbers_parser/document.py +17 -15
- numbers_parser/model.py +89 -263
- {numbers_parser-4.10.1.dist-info → numbers_parser-4.10.3.dist-info}/METADATA +15 -12
- {numbers_parser-4.10.1.dist-info → numbers_parser-4.10.3.dist-info}/RECORD +11 -12
- numbers_parser/cell_storage.py +0 -927
- {numbers_parser-4.10.1.dist-info → numbers_parser-4.10.3.dist-info}/LICENSE.rst +0 -0
- {numbers_parser-4.10.1.dist-info → numbers_parser-4.10.3.dist-info}/WHEEL +0 -0
- {numbers_parser-4.10.1.dist-info → numbers_parser-4.10.3.dist-info}/entry_points.txt +0 -0
numbers_parser/__init__.py
CHANGED
|
@@ -1,22 +1,4 @@
|
|
|
1
|
-
__doc__ = """Parse and extract data from Apple Numbers spreadsheets
|
|
2
|
-
|
|
3
|
-
numbers_parser is a Python module for parsing Apple Numbers .numbers files.
|
|
4
|
-
It supports Numbers files generated by Numbers version 10.3 and 11.0
|
|
5
|
-
(current as of May 2021).
|
|
6
|
-
|
|
7
|
-
It supports and is tested against Python versions from 3.5 onwards. It is
|
|
8
|
-
not compatible with earlier versions of Python.
|
|
9
|
-
|
|
10
|
-
Currently supported features of Numbers files are:
|
|
11
|
-
|
|
12
|
-
- Multiple sheets per document
|
|
13
|
-
- Multiple tables per sheet
|
|
14
|
-
- Text, numeric, date, currency, duration, percentage cell types
|
|
15
|
-
|
|
16
|
-
Formulas rely on Numbers storing current values which should usually be
|
|
17
|
-
the case. Formulas themselves rather than the computed values can optionally
|
|
18
|
-
be extracted. Styles are not supported.
|
|
19
|
-
"""
|
|
1
|
+
__doc__ = """Parse and extract data from Apple Numbers spreadsheets"""
|
|
20
2
|
|
|
21
3
|
import importlib.metadata
|
|
22
4
|
import os
|
|
@@ -24,10 +6,13 @@ import plistlib
|
|
|
24
6
|
import re
|
|
25
7
|
import warnings
|
|
26
8
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
from numbers_parser.
|
|
9
|
+
with warnings.catch_warnings():
|
|
10
|
+
# Protobuf
|
|
11
|
+
warnings.filterwarnings("ignore", category=DeprecationWarning)
|
|
12
|
+
from numbers_parser.cell import * # noqa: F403
|
|
13
|
+
from numbers_parser.constants import * # noqa: F403
|
|
14
|
+
from numbers_parser.document import * # noqa: F403
|
|
15
|
+
from numbers_parser.exceptions import * # noqa: F403
|
|
31
16
|
|
|
32
17
|
__version__ = importlib.metadata.version("numbers-parser")
|
|
33
18
|
|