python-calamine 0.5.0__tar.gz → 0.5.2__tar.gz
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.
- {python_calamine-0.5.0 → python_calamine-0.5.2}/Cargo.lock +1 -1
- {python_calamine-0.5.0 → python_calamine-0.5.2}/Cargo.toml +1 -1
- {python_calamine-0.5.0 → python_calamine-0.5.2}/PKG-INFO +5 -8
- {python_calamine-0.5.0 → python_calamine-0.5.2}/README.md +2 -2
- {python_calamine-0.5.0 → python_calamine-0.5.2}/pyproject.toml +5 -1
- {python_calamine-0.5.0 → python_calamine-0.5.2}/src/types/sheet.rs +9 -6
- {python_calamine-0.5.0 → python_calamine-0.5.2}/.github/workflows/CI.yml +0 -0
- {python_calamine-0.5.0 → python_calamine-0.5.2}/.gitignore +0 -0
- {python_calamine-0.5.0 → python_calamine-0.5.2}/.pre-commit-config.yaml +0 -0
- {python_calamine-0.5.0 → python_calamine-0.5.2}/LICENSE +0 -0
- {python_calamine-0.5.0 → python_calamine-0.5.2}/build.rs +0 -0
- {python_calamine-0.5.0 → python_calamine-0.5.2}/python/python_calamine/__init__.py +0 -0
- {python_calamine-0.5.0 → python_calamine-0.5.2}/python/python_calamine/_python_calamine.pyi +0 -0
- {python_calamine-0.5.0 → python_calamine-0.5.2}/python/python_calamine/py.typed +0 -0
- {python_calamine-0.5.0 → python_calamine-0.5.2}/renovate.json +0 -0
- {python_calamine-0.5.0 → python_calamine-0.5.2}/src/lib.rs +0 -0
- {python_calamine-0.5.0 → python_calamine-0.5.2}/src/types/cell.rs +0 -0
- {python_calamine-0.5.0 → python_calamine-0.5.2}/src/types/errors.rs +0 -0
- {python_calamine-0.5.0 → python_calamine-0.5.2}/src/types/mod.rs +0 -0
- {python_calamine-0.5.0 → python_calamine-0.5.2}/src/types/workbook.rs +0 -0
- {python_calamine-0.5.0 → python_calamine-0.5.2}/src/utils.rs +0 -0
- {python_calamine-0.5.0 → python_calamine-0.5.2}/tests/__init__.py +0 -0
- {python_calamine-0.5.0 → python_calamine-0.5.2}/tests/conftest.py +0 -0
- {python_calamine-0.5.0 → python_calamine-0.5.2}/tests/data/any_sheets.ods +0 -0
- {python_calamine-0.5.0 → python_calamine-0.5.2}/tests/data/any_sheets.xls +0 -0
- {python_calamine-0.5.0 → python_calamine-0.5.2}/tests/data/any_sheets.xlsb +0 -0
- {python_calamine-0.5.0 → python_calamine-0.5.2}/tests/data/any_sheets.xlsx +0 -0
- {python_calamine-0.5.0 → python_calamine-0.5.2}/tests/data/base.ods +0 -0
- {python_calamine-0.5.0 → python_calamine-0.5.2}/tests/data/base.xls +0 -0
- {python_calamine-0.5.0 → python_calamine-0.5.2}/tests/data/base.xlsb +0 -0
- {python_calamine-0.5.0 → python_calamine-0.5.2}/tests/data/base.xlsx +0 -0
- {python_calamine-0.5.0 → python_calamine-0.5.2}/tests/data/empty_file.ods +0 -0
- {python_calamine-0.5.0 → python_calamine-0.5.2}/tests/data/empty_file.xlsb +0 -0
- {python_calamine-0.5.0 → python_calamine-0.5.2}/tests/data/empty_file.xlsx +0 -0
- {python_calamine-0.5.0 → python_calamine-0.5.2}/tests/data/issue139.xlsx +0 -0
- {python_calamine-0.5.0 → python_calamine-0.5.2}/tests/data/password.ods +0 -0
- {python_calamine-0.5.0 → python_calamine-0.5.2}/tests/data/password.xls +0 -0
- {python_calamine-0.5.0 → python_calamine-0.5.2}/tests/data/password.xlsb +0 -0
- {python_calamine-0.5.0 → python_calamine-0.5.2}/tests/data/password.xlsx +0 -0
- {python_calamine-0.5.0 → python_calamine-0.5.2}/tests/test_base.py +0 -0
- {python_calamine-0.5.0 → python_calamine-0.5.2}/tests/test_pandas.py +0 -0
- {python_calamine-0.5.0 → python_calamine-0.5.2}/tests/test_sheet_type.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: python-calamine
|
|
3
|
-
Version: 0.5.
|
|
3
|
+
Version: 0.5.2
|
|
4
4
|
Classifier: Development Status :: 4 - Beta
|
|
5
5
|
Classifier: Programming Language :: Rust
|
|
6
6
|
Classifier: Programming Language :: Python :: 3.10
|
|
@@ -8,17 +8,14 @@ Classifier: Programming Language :: Python :: 3.11
|
|
|
8
8
|
Classifier: Programming Language :: Python :: 3.12
|
|
9
9
|
Classifier: Programming Language :: Python :: 3.13
|
|
10
10
|
Classifier: Programming Language :: Python :: 3.14
|
|
11
|
-
Requires-Dist: maturin~=1.0 ; extra == 'dev'
|
|
12
|
-
Requires-Dist: pre-commit~=4.3 ; extra == 'dev'
|
|
13
|
-
Requires-Dist: pytest~=8.0 ; extra == 'dev'
|
|
14
|
-
Requires-Dist: pandas[excel]~=2.2 ; extra == 'dev'
|
|
15
|
-
Provides-Extra: dev
|
|
16
11
|
License-File: LICENSE
|
|
17
12
|
Summary: Python binding for Rust's library for reading excel and odf file - calamine
|
|
18
13
|
Author-email: Dmitriy <dimastbk@proton.me>
|
|
19
14
|
License-Expression: MIT
|
|
20
15
|
Requires-Python: >=3.10
|
|
21
16
|
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
|
|
17
|
+
Project-URL: homepage, https://github.com/dimastbk/python-calamine
|
|
18
|
+
Project-URL: source, https://github.com/dimastbk/python-calamine
|
|
22
19
|
|
|
23
20
|
# python-calamine
|
|
24
21
|
[](https://pypi.org/project/python-calamine/)
|
|
@@ -80,7 +77,7 @@ Also, you can find additional examples in [tests](https://github.com/dimastbk/py
|
|
|
80
77
|
|
|
81
78
|
You'll need rust [installed](https://rustup.rs/).
|
|
82
79
|
|
|
83
|
-
```
|
|
80
|
+
```shell
|
|
84
81
|
# clone this repo or your fork
|
|
85
82
|
git clone git@github.com:dimastbk/python-calamine.git
|
|
86
83
|
cd python-calamine
|
|
@@ -88,7 +85,7 @@ cd python-calamine
|
|
|
88
85
|
python3 -m venv env
|
|
89
86
|
source env/bin/activate
|
|
90
87
|
# install dev dependencies and install python-calamine
|
|
91
|
-
pip install -e .
|
|
88
|
+
pip install --group dev -e . # required pip 25.1 and above
|
|
92
89
|
# lint code
|
|
93
90
|
pre-commit run --all-files
|
|
94
91
|
# test code
|
|
@@ -58,7 +58,7 @@ Also, you can find additional examples in [tests](https://github.com/dimastbk/py
|
|
|
58
58
|
|
|
59
59
|
You'll need rust [installed](https://rustup.rs/).
|
|
60
60
|
|
|
61
|
-
```
|
|
61
|
+
```shell
|
|
62
62
|
# clone this repo or your fork
|
|
63
63
|
git clone git@github.com:dimastbk/python-calamine.git
|
|
64
64
|
cd python-calamine
|
|
@@ -66,7 +66,7 @@ cd python-calamine
|
|
|
66
66
|
python3 -m venv env
|
|
67
67
|
source env/bin/activate
|
|
68
68
|
# install dev dependencies and install python-calamine
|
|
69
|
-
pip install -e .
|
|
69
|
+
pip install --group dev -e . # required pip 25.1 and above
|
|
70
70
|
# lint code
|
|
71
71
|
pre-commit run --all-files
|
|
72
72
|
# test code
|
|
@@ -16,7 +16,7 @@ classifiers = [
|
|
|
16
16
|
]
|
|
17
17
|
dynamic = ["version"]
|
|
18
18
|
|
|
19
|
-
[
|
|
19
|
+
[dependency-groups]
|
|
20
20
|
dev = [
|
|
21
21
|
"maturin~=1.0",
|
|
22
22
|
"pre-commit~=4.3",
|
|
@@ -24,6 +24,10 @@ dev = [
|
|
|
24
24
|
"pandas[excel]~=2.2",
|
|
25
25
|
]
|
|
26
26
|
|
|
27
|
+
[project.urls]
|
|
28
|
+
homepage = "https://github.com/dimastbk/python-calamine"
|
|
29
|
+
source = "https://github.com/dimastbk/python-calamine"
|
|
30
|
+
|
|
27
31
|
[tool.isort]
|
|
28
32
|
include_trailing_comma = true
|
|
29
33
|
line_length = 88
|
|
@@ -209,12 +209,15 @@ impl CalamineSheet {
|
|
|
209
209
|
Arc::clone(&slf.range)
|
|
210
210
|
};
|
|
211
211
|
|
|
212
|
-
PyList::
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
212
|
+
let py_list = PyList::empty(slf.py());
|
|
213
|
+
|
|
214
|
+
for row in range.rows().take(nrows as usize) {
|
|
215
|
+
let py_row = PyList::new(slf.py(), row.iter().map(<&Data as Into<CellValue>>::into))?;
|
|
216
|
+
|
|
217
|
+
py_list.append(py_row)?;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
Ok(py_list)
|
|
218
221
|
}
|
|
219
222
|
|
|
220
223
|
fn iter_rows(&self) -> CalamineCellIterator {
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|