XlsxWriter 3.2.9__tar.gz → 3.3.0__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.
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/Changes +47 -0
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/LICENSE.txt +1 -1
- xlsxwriter-3.3.0/MANIFEST.in +4 -0
- {xlsxwriter-3.2.9/xlsxwriter.egg-info → xlsxwriter-3.3.0}/PKG-INFO +12 -15
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/examples/array_formula.py +1 -1
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/examples/autofilter.py +19 -21
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/examples/autofit.py +1 -1
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/examples/autofit_manually.py +1 -1
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/examples/background.py +1 -1
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/examples/cell_indentation.py +1 -1
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/examples/chart.py +1 -1
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/examples/chart_area.py +1 -1
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/examples/chart_bar.py +1 -1
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/examples/chart_clustered.py +1 -1
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/examples/chart_column.py +1 -1
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/examples/chart_combined.py +1 -1
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/examples/chart_data_labels.py +1 -1
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/examples/chart_data_table.py +1 -1
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/examples/chart_data_tools.py +1 -1
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/examples/chart_date_axis.py +1 -1
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/examples/chart_doughnut.py +1 -1
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/examples/chart_gauge.py +1 -1
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/examples/chart_gradient.py +1 -1
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/examples/chart_line.py +1 -1
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/examples/chart_pareto.py +1 -1
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/examples/chart_pattern.py +1 -1
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/examples/chart_pie.py +1 -1
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/examples/chart_radar.py +1 -1
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/examples/chart_scatter.py +1 -1
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/examples/chart_secondary_axis.py +1 -1
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/examples/chart_stock.py +1 -1
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/examples/chart_styles.py +1 -1
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/examples/chartsheet.py +1 -1
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/examples/check_close.py +1 -1
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/examples/checkbox.py +1 -1
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/examples/colors.py +1 -1
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/examples/comments1.py +1 -1
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/examples/comments2.py +1 -1
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/examples/conditional_format.py +1 -1
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/examples/context_manager.py +1 -1
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/examples/data_validate.py +1 -1
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/examples/datetimes.py +1 -1
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/examples/defined_name.py +1 -1
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/examples/demo.py +1 -1
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/examples/diagonal_border.py +1 -1
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/examples/django_simple.py +1 -1
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/examples/doc_properties.py +1 -1
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/examples/dynamic_arrays.py +1 -1
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/examples/embedded_images.py +1 -1
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/examples/headers_footers.py +1 -1
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/examples/hello_world.py +1 -1
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/examples/hide_row_col.py +1 -1
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/examples/hide_sheet.py +1 -1
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/examples/http_server.py +1 -2
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/examples/hyperlink.py +1 -1
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/examples/ignore_errors.py +1 -1
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/examples/images.py +1 -1
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/examples/images_bytesio.py +3 -4
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/examples/inheritance1.py +1 -1
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/examples/inheritance2.py +1 -1
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/examples/lambda.py +1 -1
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/examples/macros.py +1 -1
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/examples/merge1.py +1 -1
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/examples/merge_rich_string.py +1 -1
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/examples/outline.py +1 -1
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/examples/outline_collapsed.py +1 -1
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/examples/pandas_autofilter.py +2 -2
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/examples/pandas_chart.py +2 -2
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/examples/pandas_chart_columns.py +1 -1
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/examples/pandas_chart_line.py +2 -2
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/examples/pandas_column_formats.py +1 -1
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/examples/pandas_conditional_format.py +2 -2
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/examples/pandas_datetime.py +2 -2
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/examples/pandas_header_format.py +1 -1
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/examples/pandas_multiple.py +1 -1
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/examples/pandas_percentage.py +1 -1
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/examples/pandas_positioning.py +1 -1
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/examples/pandas_simple.py +1 -1
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/examples/pandas_table.py +2 -2
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/examples/panes.py +4 -4
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/examples/polars_chart.py +2 -2
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/examples/polars_checkbox.py +1 -1
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/examples/polars_conditional_format.py +1 -1
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/examples/polars_format_custom.py +1 -1
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/examples/polars_format_default.py +1 -1
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/examples/polars_multiple.py +1 -1
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/examples/polars_positioning.py +1 -1
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/examples/polars_simple.py +1 -1
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/examples/polars_sparklines.py +1 -1
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/examples/polars_xlsxwriter.py +1 -1
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/examples/rich_strings.py +1 -1
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/examples/right_to_left.py +1 -1
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/examples/sensitivity_label.py +1 -1
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/examples/sparklines1.py +1 -1
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/examples/sparklines2.py +1 -1
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/examples/tab_colors.py +1 -1
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/examples/tables.py +1 -1
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/examples/text_indent.py +1 -1
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/examples/textbox.py +1 -1
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/examples/tutorial1.py +1 -1
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/examples/tutorial2.py +1 -1
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/examples/tutorial3.py +1 -1
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/examples/unicode.py +1 -1
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/examples/unicode_polish_utf8.py +1 -1
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/examples/unicode_shift_jis.py +1 -1
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/examples/user_types1.py +1 -1
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/examples/user_types2.py +1 -1
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/examples/user_types3.py +1 -1
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/examples/vba_extract.py +9 -10
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/examples/watermark.py +1 -1
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/examples/worksheet_protection.py +1 -1
- xlsxwriter-3.3.0/pyproject.toml +37 -0
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/setup.cfg +0 -3
- xlsxwriter-3.3.0/xlsxwriter/__init__.py +10 -0
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/xlsxwriter/app.py +2 -2
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/xlsxwriter/chart.py +7 -9
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/xlsxwriter/chart_area.py +2 -2
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/xlsxwriter/chart_bar.py +2 -2
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/xlsxwriter/chart_column.py +2 -2
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/xlsxwriter/chart_doughnut.py +2 -3
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/xlsxwriter/chart_line.py +2 -2
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/xlsxwriter/chart_pie.py +2 -3
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/xlsxwriter/chart_radar.py +2 -2
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/xlsxwriter/chart_scatter.py +2 -2
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/xlsxwriter/chart_stock.py +3 -7
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/xlsxwriter/chart_title.py +1 -1
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/xlsxwriter/chartsheet.py +4 -5
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/xlsxwriter/color.py +1 -1
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/xlsxwriter/comments.py +8 -5
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/xlsxwriter/contenttypes.py +2 -2
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/xlsxwriter/core.py +2 -2
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/xlsxwriter/custom.py +2 -2
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/xlsxwriter/drawing.py +5 -10
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/xlsxwriter/exceptions.py +5 -1
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/xlsxwriter/feature_property_bag.py +2 -2
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/xlsxwriter/format.py +47 -11
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/xlsxwriter/image.py +35 -18
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/xlsxwriter/metadata.py +2 -2
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/xlsxwriter/packager.py +35 -41
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/xlsxwriter/relationships.py +2 -2
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/xlsxwriter/rich_value.py +2 -3
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/xlsxwriter/rich_value_rel.py +2 -2
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/xlsxwriter/rich_value_structure.py +2 -2
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/xlsxwriter/rich_value_types.py +2 -2
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/xlsxwriter/shape.py +1 -1
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/xlsxwriter/sharedstrings.py +3 -3
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/xlsxwriter/styles.py +30 -12
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/xlsxwriter/table.py +42 -2
- xlsxwriter-3.3.0/xlsxwriter/theme.py +69 -0
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/xlsxwriter/url.py +2 -2
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/xlsxwriter/utility.py +5 -9
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/xlsxwriter/vml.py +10 -8
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/xlsxwriter/workbook.py +211 -58
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/xlsxwriter/worksheet.py +424 -314
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/xlsxwriter/xmlwriter.py +2 -2
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0/xlsxwriter.egg-info}/PKG-INFO +12 -15
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/xlsxwriter.egg-info/SOURCES.txt +1 -2
- xlsxwriter-3.2.9/MANIFEST.in +0 -9
- xlsxwriter-3.2.9/setup.py +0 -35
- xlsxwriter-3.2.9/xlsxwriter/__init__.py +0 -10
- xlsxwriter-3.2.9/xlsxwriter/theme.py +0 -69
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/README.rst +0 -0
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/examples/autofilter_data.txt +0 -0
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/examples/unicode_polish_utf8.txt +0 -0
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/examples/unicode_shift_jis.txt +0 -0
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/examples/vbaProject.bin +0 -0
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/xlsxwriter.egg-info/dependency_links.txt +0 -0
- {xlsxwriter-3.2.9 → xlsxwriter-3.3.0}/xlsxwriter.egg-info/top_level.txt +0 -0
|
@@ -1,4 +1,51 @@
|
|
|
1
1
|
|
|
2
|
+
Release 3.3.0 - October 22 2026
|
|
3
|
+
-------------------------------
|
|
4
|
+
|
|
5
|
+
* Added the :func:`set_zoom_to_fit()` method for chartsheets. It ensures that a
|
|
6
|
+
chartsheet is zoomed automatically by Excel to fit the screen even when the
|
|
7
|
+
window is resized.
|
|
8
|
+
|
|
9
|
+
* Added alt text ``description`` and ``title`` options to worksheet Tables.
|
|
10
|
+
|
|
11
|
+
* Added the :func:`use_custom_theme()` method to change the default workbook
|
|
12
|
+
theme to a user supplied ``.thmx``, ``.xlsx`` or ``theme1.xml`` file, along
|
|
13
|
+
with the ``default_format_properties``, ``default_row_height`` and
|
|
14
|
+
``default_column_width`` constructor options to change the default font and
|
|
15
|
+
cell size to match the theme.
|
|
16
|
+
|
|
17
|
+
:feature:`1163`.
|
|
18
|
+
|
|
19
|
+
* Changed the exception raised for an unsupported ``source`` type in
|
|
20
|
+
``Image()`` and an unsupported ``theme`` type in ``use_custom_theme()`` from
|
|
21
|
+
``ValueError`` to ``TypeError``.
|
|
22
|
+
|
|
23
|
+
* Fixed issue where conditional format rule priorities were out of order when a
|
|
24
|
+
cell range was repeated after a different range. The priorities now follow
|
|
25
|
+
the order in which the rules were added.
|
|
26
|
+
|
|
27
|
+
* Fixed issue where ``autofilter()`` didn't check that the range was within
|
|
28
|
+
the worksheet limits, which could produce a corrupt file for large
|
|
29
|
+
worksheets.
|
|
30
|
+
|
|
31
|
+
:issue:`1179`.
|
|
32
|
+
|
|
33
|
+
* Fixed spurious "Invalid cell reference" warning when a chart series used a
|
|
34
|
+
defined name with a sheet reference.
|
|
35
|
+
|
|
36
|
+
:issue:`1173`.
|
|
37
|
+
|
|
38
|
+
* Fixed the width and height detection for large GIF images and for top-down
|
|
39
|
+
BMP images, and added extra image dimension validation.
|
|
40
|
+
|
|
41
|
+
:issue:`1188` and :issue:`1189`.
|
|
42
|
+
|
|
43
|
+
* Migrated the packaging configuration from ``setup.py`` to ``pyproject.toml``
|
|
44
|
+
with the license declared as a PEP 639 SPDX expression.
|
|
45
|
+
|
|
46
|
+
:issue:`1201`.
|
|
47
|
+
|
|
48
|
+
|
|
2
49
|
Release 3.2.9 - September 16 2025
|
|
3
50
|
---------------------------------
|
|
4
51
|
|
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: xlsxwriter
|
|
3
|
-
Version: 3.
|
|
3
|
+
Version: 3.3.0
|
|
4
4
|
Summary: A Python module for creating Excel XLSX files.
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
Author-email: John McNamara <jmcnamara@cpan.org>
|
|
6
|
+
License-Expression: BSD-2-Clause
|
|
7
|
+
Project-URL: Homepage, https://github.com/jmcnamara/XlsxWriter
|
|
8
|
+
Project-URL: Documentation, https://xlsxwriter.readthedocs.io
|
|
9
|
+
Project-URL: Repository, https://github.com/jmcnamara/XlsxWriter
|
|
10
|
+
Project-URL: Issues, https://github.com/jmcnamara/XlsxWriter/issues
|
|
11
|
+
Project-URL: Changelog, https://github.com/jmcnamara/XlsxWriter/blob/main/Changes
|
|
9
12
|
Classifier: Development Status :: 5 - Production/Stable
|
|
10
|
-
Classifier: License :: OSI Approved :: BSD License
|
|
11
13
|
Classifier: Programming Language :: Python
|
|
12
14
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
13
15
|
Classifier: Programming Language :: Python :: 3
|
|
@@ -17,16 +19,11 @@ Classifier: Programming Language :: Python :: 3.10
|
|
|
17
19
|
Classifier: Programming Language :: Python :: 3.11
|
|
18
20
|
Classifier: Programming Language :: Python :: 3.12
|
|
19
21
|
Classifier: Programming Language :: Python :: 3.13
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
20
23
|
Requires-Python: >=3.8
|
|
24
|
+
Description-Content-Type: text/x-rst
|
|
21
25
|
License-File: LICENSE.txt
|
|
22
|
-
Dynamic:
|
|
23
|
-
Dynamic: author-email
|
|
24
|
-
Dynamic: classifier
|
|
25
|
-
Dynamic: description
|
|
26
|
-
Dynamic: home-page
|
|
27
|
-
Dynamic: license
|
|
28
|
-
Dynamic: requires-python
|
|
29
|
-
Dynamic: summary
|
|
26
|
+
Dynamic: license-file
|
|
30
27
|
|
|
31
28
|
XlsxWriter
|
|
32
29
|
==========
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
#
|
|
9
9
|
# SPDX-License-Identifier: BSD-2-Clause
|
|
10
10
|
#
|
|
11
|
-
# Copyright (c) 2013-
|
|
11
|
+
# Copyright (c) 2013-2026, John McNamara, jmcnamara@cpan.org
|
|
12
12
|
#
|
|
13
13
|
import xlsxwriter
|
|
14
14
|
|
|
@@ -27,26 +27,24 @@ worksheet7 = workbook.add_worksheet()
|
|
|
27
27
|
bold = workbook.add_format({"bold": 1})
|
|
28
28
|
|
|
29
29
|
# Open a text file with autofilter example data.
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
data
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
data.append(row_data)
|
|
30
|
+
with open("autofilter_data.txt", encoding="utf-8") as textfile:
|
|
31
|
+
# Read the headers from the first line of the input file.
|
|
32
|
+
headers = textfile.readline().strip("\n").split()
|
|
33
|
+
|
|
34
|
+
# Read the text file and store the field data.
|
|
35
|
+
data = []
|
|
36
|
+
for line in textfile:
|
|
37
|
+
# Split the input data based on whitespace.
|
|
38
|
+
row_data = line.strip("\n").split()
|
|
39
|
+
|
|
40
|
+
# Convert the number data from the text file.
|
|
41
|
+
for i, item in enumerate(row_data):
|
|
42
|
+
try:
|
|
43
|
+
row_data[i] = float(item)
|
|
44
|
+
except ValueError:
|
|
45
|
+
pass
|
|
46
|
+
|
|
47
|
+
data.append(row_data)
|
|
50
48
|
|
|
51
49
|
|
|
52
50
|
# Set up several sheets with the same data.
|