XlsxWriter 3.1.9__tar.gz → 3.2.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.1.9 → XlsxWriter-3.2.0}/Changes +27 -3
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/LICENSE.txt +1 -1
- {XlsxWriter-3.1.9/XlsxWriter.egg-info → XlsxWriter-3.2.0}/PKG-INFO +1 -1
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0/XlsxWriter.egg-info}/PKG-INFO +1 -1
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/XlsxWriter.egg-info/SOURCES.txt +5 -6
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/array_formula.py +1 -1
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/autofilter.py +1 -1
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/autofit.py +1 -1
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/background.py +1 -1
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/cell_indentation.py +1 -1
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/chart.py +1 -1
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/chart_area.py +1 -1
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/chart_bar.py +1 -1
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/chart_clustered.py +1 -1
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/chart_column.py +1 -1
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/chart_combined.py +1 -1
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/chart_data_labels.py +1 -1
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/chart_data_table.py +1 -1
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/chart_data_tools.py +1 -1
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/chart_date_axis.py +1 -1
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/chart_doughnut.py +1 -1
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/chart_gauge.py +1 -1
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/chart_gradient.py +1 -1
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/chart_line.py +1 -1
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/chart_pareto.py +1 -1
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/chart_pattern.py +1 -1
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/chart_pie.py +1 -1
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/chart_radar.py +1 -1
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/chart_scatter.py +1 -1
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/chart_secondary_axis.py +1 -1
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/chart_stock.py +1 -1
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/chart_styles.py +1 -1
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/chartsheet.py +1 -1
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/check_close.py +1 -1
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/comments1.py +1 -1
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/comments2.py +1 -1
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/conditional_format.py +1 -1
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/context_manager.py +1 -1
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/data_validate.py +1 -1
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/datetimes.py +1 -1
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/defined_name.py +1 -1
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/demo.py +1 -1
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/diagonal_border.py +1 -1
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/django_simple.py +1 -1
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/doc_properties.py +1 -1
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/dynamic_arrays.py +1 -1
- XlsxWriter-3.2.0/examples/embedded_images.py +29 -0
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/headers_footers.py +1 -1
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/hello_world.py +1 -1
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/hide_row_col.py +1 -1
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/hide_sheet.py +1 -1
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/http_server.py +1 -1
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/hyperlink.py +1 -1
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/ignore_errors.py +1 -1
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/images.py +1 -1
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/images_bytesio.py +1 -1
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/inheritance1.py +1 -1
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/inheritance2.py +1 -1
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/lambda.py +1 -1
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/macros.py +1 -1
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/merge1.py +1 -1
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/merge_rich_string.py +1 -1
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/outline.py +1 -1
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/outline_collapsed.py +1 -1
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/pandas_autofilter.py +1 -1
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/pandas_chart.py +1 -1
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/pandas_chart_columns.py +1 -1
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/pandas_chart_line.py +1 -1
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/pandas_column_formats.py +1 -1
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/pandas_conditional_format.py +1 -1
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/pandas_datetime.py +1 -1
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/pandas_header_format.py +1 -1
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/pandas_multiple.py +1 -1
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/pandas_percentage.py +1 -1
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/pandas_positioning.py +1 -1
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/pandas_simple.py +1 -1
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/pandas_table.py +1 -1
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/panes.py +1 -1
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/polars_chart.py +1 -1
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/polars_conditional_format.py +1 -1
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/polars_format_custom.py +1 -1
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/polars_format_default.py +1 -1
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/polars_multiple.py +1 -1
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/polars_positioning.py +1 -1
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/polars_simple.py +1 -1
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/polars_sparklines.py +1 -1
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/polars_xlsxwriter.py +1 -1
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/rich_strings.py +1 -1
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/right_to_left.py +1 -1
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/sparklines1.py +1 -1
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/sparklines2.py +1 -1
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/tab_colors.py +1 -1
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/tables.py +1 -1
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/text_indent.py +1 -1
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/textbox.py +1 -1
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/tutorial1.py +1 -1
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/tutorial2.py +1 -1
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/tutorial3.py +1 -1
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/unicode.py +1 -1
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/unicode_polish_utf8.py +1 -1
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/unicode_shift_jis.py +1 -1
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/user_types1.py +1 -1
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/user_types2.py +1 -1
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/user_types3.py +1 -1
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/vba_extract.py +1 -1
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/watermark.py +1 -1
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/worksheet_protection.py +1 -1
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/setup.py +1 -1
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/xlsxwriter/__init__.py +2 -2
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/xlsxwriter/app.py +1 -1
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/xlsxwriter/chart.py +1 -1
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/xlsxwriter/chart_area.py +1 -1
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/xlsxwriter/chart_bar.py +1 -1
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/xlsxwriter/chart_column.py +1 -1
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/xlsxwriter/chart_doughnut.py +1 -1
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/xlsxwriter/chart_line.py +1 -1
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/xlsxwriter/chart_pie.py +1 -1
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/xlsxwriter/chart_radar.py +1 -1
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/xlsxwriter/chart_scatter.py +1 -1
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/xlsxwriter/chart_stock.py +1 -1
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/xlsxwriter/chartsheet.py +1 -1
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/xlsxwriter/comments.py +1 -1
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/xlsxwriter/contenttypes.py +28 -1
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/xlsxwriter/core.py +1 -1
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/xlsxwriter/custom.py +1 -1
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/xlsxwriter/drawing.py +1 -1
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/xlsxwriter/exceptions.py +1 -1
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/xlsxwriter/format.py +9 -6
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/xlsxwriter/metadata.py +118 -23
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/xlsxwriter/packager.py +82 -2
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/xlsxwriter/relationships.py +23 -1
- XlsxWriter-3.2.0/xlsxwriter/rich_value.py +96 -0
- XlsxWriter-3.2.0/xlsxwriter/rich_value_rel.py +81 -0
- XlsxWriter-3.2.0/xlsxwriter/rich_value_structure.py +98 -0
- XlsxWriter-3.2.0/xlsxwriter/rich_value_types.py +124 -0
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/xlsxwriter/shape.py +1 -1
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/xlsxwriter/sharedstrings.py +3 -24
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/xlsxwriter/styles.py +1 -1
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/xlsxwriter/table.py +1 -1
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/xlsxwriter/theme.py +1 -1
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/xlsxwriter/utility.py +248 -2
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/xlsxwriter/vml.py +1 -1
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/xlsxwriter/workbook.py +57 -250
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/xlsxwriter/worksheet.py +97 -34
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/xlsxwriter/xmlwriter.py +32 -4
- XlsxWriter-3.1.9/docs/_static/basic.css +0 -541
- XlsxWriter-3.1.9/docs/_static/default.css +0 -258
- XlsxWriter-3.1.9/docs/_static/hello01.png +0 -0
- XlsxWriter-3.1.9/docs/_static/logo.png +0 -0
- XlsxWriter-3.1.9/docs/_static/pygments.css +0 -61
- XlsxWriter-3.1.9/docs/readme.html +0 -144
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/MANIFEST.in +0 -0
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/README.rst +0 -0
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/XlsxWriter.egg-info/dependency_links.txt +0 -0
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/XlsxWriter.egg-info/top_level.txt +0 -0
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/autofilter_data.txt +0 -0
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/unicode_polish_utf8.txt +0 -0
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/unicode_shift_jis.txt +0 -0
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/vbaProject.bin +0 -0
- {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/setup.cfg +0 -0
|
@@ -1,9 +1,33 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
Release 3.2.0 - February 17 2024
|
|
4
|
+
--------------------------------
|
|
5
|
+
|
|
6
|
+
This is the 10th anniversary release of XlsxWriter. Version 0.0.1 was released
|
|
7
|
+
on February 17 2013. Since they there have been 167 releases, 25,000 lines of
|
|
8
|
+
code, 1600 test cases, 700 pages of documentation, 71,000 users on GitHub, 50
|
|
9
|
+
contributors, 1000 closed issues and 150 million yearly downloads. Thanks to
|
|
10
|
+
everyone who has contributed code, given feedback or just used the library.
|
|
11
|
+
|
|
12
|
+
* Add :func:`embed_image()` worksheet method to embed images in cells. This is
|
|
13
|
+
equivalent to Excel's menu item to insert an image using the option to "Place
|
|
14
|
+
in Cell". It scales images automatically to the dimensions of the cell.
|
|
15
|
+
|
|
16
|
+
This has been a frequently requested feature for people creating spreadsheets
|
|
17
|
+
with images for product items. See also :ref:`ex_embedded_images`.
|
|
18
|
+
|
|
19
|
+
* Fix issue where a horizontal alignment format was ignored if indentation was
|
|
20
|
+
also set.
|
|
21
|
+
|
|
22
|
+
:issue:`1041`.
|
|
23
|
+
|
|
24
|
+
|
|
1
25
|
Release 3.1.9 - October 19 2023
|
|
2
26
|
-------------------------------
|
|
3
27
|
|
|
4
28
|
* Add fix for errant XML tag in chart leader lines for non-Pie charts.
|
|
5
29
|
|
|
6
|
-
:issue
|
|
30
|
+
:issue:`1019` and :feature:`1012`.
|
|
7
31
|
|
|
8
32
|
|
|
9
33
|
Release 3.1.8 - October 15 2023
|
|
@@ -41,10 +65,10 @@ Release 3.1.6 - October 1 2023
|
|
|
41
65
|
Release 3.1.5 - September 24 2023
|
|
42
66
|
---------------------------------
|
|
43
67
|
|
|
44
|
-
* Added support for adding signed VBA macros to workbooks via the
|
|
68
|
+
* Added support for adding signed VBA macros to workbooks via the
|
|
45
69
|
:func:`add_signed_vba_project` method. See `Working with VBA Macros`_.
|
|
46
70
|
|
|
47
|
-
:feature:`
|
|
71
|
+
:feature:`1009`.
|
|
48
72
|
|
|
49
73
|
.. _Working with VBA Macros: https://xlsxwriter.readthedocs.io/working_with_macros.html
|
|
50
74
|
|
|
@@ -8,12 +8,6 @@ XlsxWriter.egg-info/PKG-INFO
|
|
|
8
8
|
XlsxWriter.egg-info/SOURCES.txt
|
|
9
9
|
XlsxWriter.egg-info/dependency_links.txt
|
|
10
10
|
XlsxWriter.egg-info/top_level.txt
|
|
11
|
-
docs/readme.html
|
|
12
|
-
docs/_static/basic.css
|
|
13
|
-
docs/_static/default.css
|
|
14
|
-
docs/_static/hello01.png
|
|
15
|
-
docs/_static/logo.png
|
|
16
|
-
docs/_static/pygments.css
|
|
17
11
|
examples/array_formula.py
|
|
18
12
|
examples/autofilter.py
|
|
19
13
|
examples/autofilter_data.txt
|
|
@@ -56,6 +50,7 @@ examples/diagonal_border.py
|
|
|
56
50
|
examples/django_simple.py
|
|
57
51
|
examples/doc_properties.py
|
|
58
52
|
examples/dynamic_arrays.py
|
|
53
|
+
examples/embedded_images.py
|
|
59
54
|
examples/headers_footers.py
|
|
60
55
|
examples/hello_world.py
|
|
61
56
|
examples/hide_row_col.py
|
|
@@ -142,6 +137,10 @@ xlsxwriter/format.py
|
|
|
142
137
|
xlsxwriter/metadata.py
|
|
143
138
|
xlsxwriter/packager.py
|
|
144
139
|
xlsxwriter/relationships.py
|
|
140
|
+
xlsxwriter/rich_value.py
|
|
141
|
+
xlsxwriter/rich_value_rel.py
|
|
142
|
+
xlsxwriter/rich_value_structure.py
|
|
143
|
+
xlsxwriter/rich_value_types.py
|
|
145
144
|
xlsxwriter/shape.py
|
|
146
145
|
xlsxwriter/sharedstrings.py
|
|
147
146
|
xlsxwriter/styles.py
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
# worksheet columns based on the data in the cells.
|
|
5
5
|
#
|
|
6
6
|
# SPDX-License-Identifier: BSD-2-Clause
|
|
7
|
-
# Copyright 2013-
|
|
7
|
+
# Copyright 2013-2024, John McNamara, jmcnamara@cpan.org
|
|
8
8
|
#
|
|
9
9
|
from xlsxwriter.workbook import Workbook
|
|
10
10
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
# A demo of a clustered category chart in XlsxWriter.
|
|
4
4
|
#
|
|
5
5
|
# SPDX-License-Identifier: BSD-2-Clause
|
|
6
|
-
# Copyright 2013-
|
|
6
|
+
# Copyright 2013-2024, John McNamara, jmcnamara@cpan.org
|
|
7
7
|
#
|
|
8
8
|
from xlsxwriter.workbook import Workbook
|
|
9
9
|
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
# a Gauge Chart in Excel: https://www.excel-easy.com/examples/gauge-chart.html
|
|
9
9
|
#
|
|
10
10
|
# SPDX-License-Identifier: BSD-2-Clause
|
|
11
|
-
# Copyright 2013-
|
|
11
|
+
# Copyright 2013-2024, John McNamara, jmcnamara@cpan.org
|
|
12
12
|
#
|
|
13
13
|
import xlsxwriter
|
|
14
14
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
# An example of creating Excel Stock charts with Python and XlsxWriter.
|
|
4
4
|
#
|
|
5
5
|
# SPDX-License-Identifier: BSD-2-Clause
|
|
6
|
-
# Copyright 2013-
|
|
6
|
+
# Copyright 2013-2024, John McNamara, jmcnamara@cpan.org
|
|
7
7
|
#
|
|
8
8
|
from datetime import datetime
|
|
9
9
|
import xlsxwriter
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
# A simple program demonstrating a check for exceptions when closing the file.
|
|
4
4
|
#
|
|
5
5
|
# SPDX-License-Identifier: BSD-2-Clause
|
|
6
|
-
# Copyright 2013-
|
|
6
|
+
# Copyright 2013-2024, John McNamara, jmcnamara@cpan.org
|
|
7
7
|
#
|
|
8
8
|
import xlsxwriter
|
|
9
9
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
# Each of the worksheets demonstrates different features of cell comments.
|
|
7
7
|
#
|
|
8
8
|
# SPDX-License-Identifier: BSD-2-Clause
|
|
9
|
-
# Copyright 2013-
|
|
9
|
+
# Copyright 2013-2024, John McNamara, jmcnamara@cpan.org
|
|
10
10
|
#
|
|
11
11
|
import xlsxwriter
|
|
12
12
|
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
##############################################################################
|
|
2
|
+
#
|
|
3
|
+
# An example of embedding images into a worksheet cells using the XlsxWriter
|
|
4
|
+
# Python module. This is equivalent to Excel's "Place in cell" image insert.
|
|
5
|
+
#
|
|
6
|
+
# SPDX-License-Identifier: BSD-2-Clause
|
|
7
|
+
# Copyright 2013-2024, John McNamara, jmcnamara@cpan.org
|
|
8
|
+
#
|
|
9
|
+
import xlsxwriter
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
# Create an new Excel file and add a worksheet.
|
|
13
|
+
workbook = xlsxwriter.Workbook("embedded_images.xlsx")
|
|
14
|
+
worksheet = workbook.add_worksheet()
|
|
15
|
+
|
|
16
|
+
# Widen the first column to make the caption clearer.
|
|
17
|
+
worksheet.set_column(0, 0, 30)
|
|
18
|
+
worksheet.write(0, 0, "Embed images that scale to cell size")
|
|
19
|
+
|
|
20
|
+
# Embed an images in cells of different widths/heights.
|
|
21
|
+
worksheet.set_column(1, 1, 14)
|
|
22
|
+
|
|
23
|
+
worksheet.set_row(1, 60)
|
|
24
|
+
worksheet.embed_image(1, 1, "python.png")
|
|
25
|
+
|
|
26
|
+
worksheet.set_row(3, 120)
|
|
27
|
+
worksheet.embed_image(3, 1, "python.png")
|
|
28
|
+
|
|
29
|
+
workbook.close()
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
# See the main XlsxWriter documentation for more information.
|
|
35
35
|
#
|
|
36
36
|
# SPDX-License-Identifier: BSD-2-Clause
|
|
37
|
-
# Copyright 2013-
|
|
37
|
+
# Copyright 2013-2024, John McNamara, jmcnamara@cpan.org
|
|
38
38
|
#
|
|
39
39
|
import xlsxwriter
|
|
40
40
|
|