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.
Files changed (160) hide show
  1. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/Changes +27 -3
  2. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/LICENSE.txt +1 -1
  3. {XlsxWriter-3.1.9/XlsxWriter.egg-info → XlsxWriter-3.2.0}/PKG-INFO +1 -1
  4. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0/XlsxWriter.egg-info}/PKG-INFO +1 -1
  5. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/XlsxWriter.egg-info/SOURCES.txt +5 -6
  6. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/array_formula.py +1 -1
  7. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/autofilter.py +1 -1
  8. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/autofit.py +1 -1
  9. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/background.py +1 -1
  10. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/cell_indentation.py +1 -1
  11. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/chart.py +1 -1
  12. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/chart_area.py +1 -1
  13. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/chart_bar.py +1 -1
  14. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/chart_clustered.py +1 -1
  15. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/chart_column.py +1 -1
  16. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/chart_combined.py +1 -1
  17. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/chart_data_labels.py +1 -1
  18. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/chart_data_table.py +1 -1
  19. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/chart_data_tools.py +1 -1
  20. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/chart_date_axis.py +1 -1
  21. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/chart_doughnut.py +1 -1
  22. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/chart_gauge.py +1 -1
  23. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/chart_gradient.py +1 -1
  24. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/chart_line.py +1 -1
  25. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/chart_pareto.py +1 -1
  26. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/chart_pattern.py +1 -1
  27. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/chart_pie.py +1 -1
  28. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/chart_radar.py +1 -1
  29. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/chart_scatter.py +1 -1
  30. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/chart_secondary_axis.py +1 -1
  31. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/chart_stock.py +1 -1
  32. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/chart_styles.py +1 -1
  33. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/chartsheet.py +1 -1
  34. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/check_close.py +1 -1
  35. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/comments1.py +1 -1
  36. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/comments2.py +1 -1
  37. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/conditional_format.py +1 -1
  38. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/context_manager.py +1 -1
  39. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/data_validate.py +1 -1
  40. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/datetimes.py +1 -1
  41. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/defined_name.py +1 -1
  42. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/demo.py +1 -1
  43. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/diagonal_border.py +1 -1
  44. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/django_simple.py +1 -1
  45. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/doc_properties.py +1 -1
  46. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/dynamic_arrays.py +1 -1
  47. XlsxWriter-3.2.0/examples/embedded_images.py +29 -0
  48. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/headers_footers.py +1 -1
  49. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/hello_world.py +1 -1
  50. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/hide_row_col.py +1 -1
  51. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/hide_sheet.py +1 -1
  52. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/http_server.py +1 -1
  53. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/hyperlink.py +1 -1
  54. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/ignore_errors.py +1 -1
  55. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/images.py +1 -1
  56. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/images_bytesio.py +1 -1
  57. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/inheritance1.py +1 -1
  58. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/inheritance2.py +1 -1
  59. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/lambda.py +1 -1
  60. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/macros.py +1 -1
  61. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/merge1.py +1 -1
  62. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/merge_rich_string.py +1 -1
  63. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/outline.py +1 -1
  64. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/outline_collapsed.py +1 -1
  65. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/pandas_autofilter.py +1 -1
  66. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/pandas_chart.py +1 -1
  67. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/pandas_chart_columns.py +1 -1
  68. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/pandas_chart_line.py +1 -1
  69. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/pandas_column_formats.py +1 -1
  70. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/pandas_conditional_format.py +1 -1
  71. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/pandas_datetime.py +1 -1
  72. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/pandas_header_format.py +1 -1
  73. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/pandas_multiple.py +1 -1
  74. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/pandas_percentage.py +1 -1
  75. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/pandas_positioning.py +1 -1
  76. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/pandas_simple.py +1 -1
  77. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/pandas_table.py +1 -1
  78. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/panes.py +1 -1
  79. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/polars_chart.py +1 -1
  80. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/polars_conditional_format.py +1 -1
  81. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/polars_format_custom.py +1 -1
  82. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/polars_format_default.py +1 -1
  83. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/polars_multiple.py +1 -1
  84. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/polars_positioning.py +1 -1
  85. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/polars_simple.py +1 -1
  86. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/polars_sparklines.py +1 -1
  87. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/polars_xlsxwriter.py +1 -1
  88. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/rich_strings.py +1 -1
  89. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/right_to_left.py +1 -1
  90. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/sparklines1.py +1 -1
  91. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/sparklines2.py +1 -1
  92. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/tab_colors.py +1 -1
  93. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/tables.py +1 -1
  94. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/text_indent.py +1 -1
  95. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/textbox.py +1 -1
  96. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/tutorial1.py +1 -1
  97. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/tutorial2.py +1 -1
  98. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/tutorial3.py +1 -1
  99. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/unicode.py +1 -1
  100. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/unicode_polish_utf8.py +1 -1
  101. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/unicode_shift_jis.py +1 -1
  102. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/user_types1.py +1 -1
  103. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/user_types2.py +1 -1
  104. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/user_types3.py +1 -1
  105. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/vba_extract.py +1 -1
  106. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/watermark.py +1 -1
  107. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/worksheet_protection.py +1 -1
  108. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/setup.py +1 -1
  109. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/xlsxwriter/__init__.py +2 -2
  110. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/xlsxwriter/app.py +1 -1
  111. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/xlsxwriter/chart.py +1 -1
  112. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/xlsxwriter/chart_area.py +1 -1
  113. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/xlsxwriter/chart_bar.py +1 -1
  114. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/xlsxwriter/chart_column.py +1 -1
  115. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/xlsxwriter/chart_doughnut.py +1 -1
  116. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/xlsxwriter/chart_line.py +1 -1
  117. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/xlsxwriter/chart_pie.py +1 -1
  118. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/xlsxwriter/chart_radar.py +1 -1
  119. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/xlsxwriter/chart_scatter.py +1 -1
  120. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/xlsxwriter/chart_stock.py +1 -1
  121. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/xlsxwriter/chartsheet.py +1 -1
  122. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/xlsxwriter/comments.py +1 -1
  123. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/xlsxwriter/contenttypes.py +28 -1
  124. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/xlsxwriter/core.py +1 -1
  125. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/xlsxwriter/custom.py +1 -1
  126. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/xlsxwriter/drawing.py +1 -1
  127. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/xlsxwriter/exceptions.py +1 -1
  128. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/xlsxwriter/format.py +9 -6
  129. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/xlsxwriter/metadata.py +118 -23
  130. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/xlsxwriter/packager.py +82 -2
  131. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/xlsxwriter/relationships.py +23 -1
  132. XlsxWriter-3.2.0/xlsxwriter/rich_value.py +96 -0
  133. XlsxWriter-3.2.0/xlsxwriter/rich_value_rel.py +81 -0
  134. XlsxWriter-3.2.0/xlsxwriter/rich_value_structure.py +98 -0
  135. XlsxWriter-3.2.0/xlsxwriter/rich_value_types.py +124 -0
  136. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/xlsxwriter/shape.py +1 -1
  137. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/xlsxwriter/sharedstrings.py +3 -24
  138. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/xlsxwriter/styles.py +1 -1
  139. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/xlsxwriter/table.py +1 -1
  140. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/xlsxwriter/theme.py +1 -1
  141. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/xlsxwriter/utility.py +248 -2
  142. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/xlsxwriter/vml.py +1 -1
  143. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/xlsxwriter/workbook.py +57 -250
  144. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/xlsxwriter/worksheet.py +97 -34
  145. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/xlsxwriter/xmlwriter.py +32 -4
  146. XlsxWriter-3.1.9/docs/_static/basic.css +0 -541
  147. XlsxWriter-3.1.9/docs/_static/default.css +0 -258
  148. XlsxWriter-3.1.9/docs/_static/hello01.png +0 -0
  149. XlsxWriter-3.1.9/docs/_static/logo.png +0 -0
  150. XlsxWriter-3.1.9/docs/_static/pygments.css +0 -61
  151. XlsxWriter-3.1.9/docs/readme.html +0 -144
  152. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/MANIFEST.in +0 -0
  153. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/README.rst +0 -0
  154. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/XlsxWriter.egg-info/dependency_links.txt +0 -0
  155. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/XlsxWriter.egg-info/top_level.txt +0 -0
  156. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/autofilter_data.txt +0 -0
  157. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/unicode_polish_utf8.txt +0 -0
  158. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/unicode_shift_jis.txt +0 -0
  159. {XlsxWriter-3.1.9 → XlsxWriter-3.2.0}/examples/vbaProject.bin +0 -0
  160. {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 :`1019` and :feature:`1012`.
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 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:`1008`.
71
+ :feature:`1009`.
48
72
 
49
73
  .. _Working with VBA Macros: https://xlsxwriter.readthedocs.io/working_with_macros.html
50
74
 
@@ -1,6 +1,6 @@
1
1
  BSD 2-Clause License
2
2
 
3
- Copyright (c) 2013-2023, John McNamara <jmcnamara@cpan.org>
3
+ Copyright (c) 2013-2024, John McNamara <jmcnamara@cpan.org>
4
4
  All rights reserved.
5
5
 
6
6
  Redistribution and use in source and binary forms, with or without
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: XlsxWriter
3
- Version: 3.1.9
3
+ Version: 3.2.0
4
4
  Summary: A Python module for creating Excel XLSX files.
5
5
  Home-page: https://github.com/jmcnamara/XlsxWriter
6
6
  Author: John McNamara
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: XlsxWriter
3
- Version: 3.1.9
3
+ Version: 3.2.0
4
4
  Summary: A Python module for creating Excel XLSX files.
5
5
  Home-page: https://github.com/jmcnamara/XlsxWriter
6
6
  Author: John McNamara
@@ -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
  # simple array formulas.
5
5
  #
6
6
  # SPDX-License-Identifier: BSD-2-Clause
7
- # Copyright 2013-2023, John McNamara, jmcnamara@cpan.org
7
+ # Copyright 2013-2024, John McNamara, jmcnamara@cpan.org
8
8
  #
9
9
  import xlsxwriter
10
10
 
@@ -7,7 +7,7 @@
7
7
  # simple criteria so that some data is shown and some is hidden.
8
8
  #
9
9
  # SPDX-License-Identifier: BSD-2-Clause
10
- # Copyright 2013-2023, John McNamara, jmcnamara@cpan.org
10
+ # Copyright 2013-2024, John McNamara, jmcnamara@cpan.org
11
11
  #
12
12
  import xlsxwriter
13
13
 
@@ -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-2023, John McNamara, jmcnamara@cpan.org
7
+ # Copyright 2013-2024, John McNamara, jmcnamara@cpan.org
8
8
  #
9
9
  from xlsxwriter.workbook import Workbook
10
10
 
@@ -4,7 +4,7 @@
4
4
  # Python module.
5
5
  #
6
6
  # SPDX-License-Identifier: BSD-2-Clause
7
- # Copyright 2013-2023, John McNamara, jmcnamara@cpan.org
7
+ # Copyright 2013-2024, John McNamara, jmcnamara@cpan.org
8
8
  #
9
9
  import xlsxwriter
10
10
 
@@ -5,7 +5,7 @@
5
5
  # This program demonstrates the indentation cell format.
6
6
  #
7
7
  # SPDX-License-Identifier: BSD-2-Clause
8
- # Copyright 2013-2023, John McNamara, jmcnamara@cpan.org
8
+ # Copyright 2013-2024, John McNamara, jmcnamara@cpan.org
9
9
  #
10
10
  import xlsxwriter
11
11
 
@@ -3,7 +3,7 @@
3
3
  # An example of a simple Excel chart with Python and XlsxWriter.
4
4
  #
5
5
  # SPDX-License-Identifier: BSD-2-Clause
6
- # Copyright 2013-2023, John McNamara, jmcnamara@cpan.org
6
+ # Copyright 2013-2024, John McNamara, jmcnamara@cpan.org
7
7
  #
8
8
  import xlsxwriter
9
9
 
@@ -3,7 +3,7 @@
3
3
  # An example of creating Excel Area charts with Python and XlsxWriter.
4
4
  #
5
5
  # SPDX-License-Identifier: BSD-2-Clause
6
- # Copyright 2013-2023, John McNamara, jmcnamara@cpan.org
6
+ # Copyright 2013-2024, John McNamara, jmcnamara@cpan.org
7
7
  #
8
8
  import xlsxwriter
9
9
 
@@ -3,7 +3,7 @@
3
3
  # An example of creating Excel Bar charts with Python and XlsxWriter.
4
4
  #
5
5
  # SPDX-License-Identifier: BSD-2-Clause
6
- # Copyright 2013-2023, John McNamara, jmcnamara@cpan.org
6
+ # Copyright 2013-2024, John McNamara, jmcnamara@cpan.org
7
7
  #
8
8
  import xlsxwriter
9
9
 
@@ -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-2023, John McNamara, jmcnamara@cpan.org
6
+ # Copyright 2013-2024, John McNamara, jmcnamara@cpan.org
7
7
  #
8
8
  from xlsxwriter.workbook import Workbook
9
9
 
@@ -3,7 +3,7 @@
3
3
  # An example of creating Excel Column charts with Python and XlsxWriter.
4
4
  #
5
5
  # SPDX-License-Identifier: BSD-2-Clause
6
- # Copyright 2013-2023, John McNamara, jmcnamara@cpan.org
6
+ # Copyright 2013-2024, John McNamara, jmcnamara@cpan.org
7
7
  #
8
8
  import xlsxwriter
9
9
 
@@ -3,7 +3,7 @@
3
3
  # An example of a Combined chart in XlsxWriter.
4
4
  #
5
5
  # SPDX-License-Identifier: BSD-2-Clause
6
- # Copyright 2013-2023, John McNamara, jmcnamara@cpan.org
6
+ # Copyright 2013-2024, John McNamara, jmcnamara@cpan.org
7
7
  #
8
8
  from xlsxwriter.workbook import Workbook
9
9
 
@@ -4,7 +4,7 @@
4
4
  # via an XlsxWriter chart.
5
5
  #
6
6
  # SPDX-License-Identifier: BSD-2-Clause
7
- # Copyright 2013-2023, John McNamara, jmcnamara@cpan.org
7
+ # Copyright 2013-2024, John McNamara, jmcnamara@cpan.org
8
8
  #
9
9
  import xlsxwriter
10
10
 
@@ -4,7 +4,7 @@
4
4
  # Python and XlsxWriter.
5
5
  #
6
6
  # SPDX-License-Identifier: BSD-2-Clause
7
- # Copyright 2013-2023, John McNamara, jmcnamara@cpan.org
7
+ # Copyright 2013-2024, John McNamara, jmcnamara@cpan.org
8
8
  #
9
9
  import xlsxwriter
10
10
 
@@ -7,7 +7,7 @@
7
7
  # High-Low Lines and Up-Down Bars.
8
8
  #
9
9
  # SPDX-License-Identifier: BSD-2-Clause
10
- # Copyright 2013-2023, John McNamara, jmcnamara@cpan.org
10
+ # Copyright 2013-2024, John McNamara, jmcnamara@cpan.org
11
11
  #
12
12
  import xlsxwriter
13
13
 
@@ -4,7 +4,7 @@
4
4
  # Python and XlsxWriter.
5
5
  #
6
6
  # SPDX-License-Identifier: BSD-2-Clause
7
- # Copyright 2013-2023, John McNamara, jmcnamara@cpan.org
7
+ # Copyright 2013-2024, John McNamara, jmcnamara@cpan.org
8
8
  #
9
9
 
10
10
  from datetime import date
@@ -9,7 +9,7 @@
9
9
  # assign formatting to each point in the series.
10
10
  #
11
11
  # SPDX-License-Identifier: BSD-2-Clause
12
- # Copyright 2013-2023, John McNamara, jmcnamara@cpan.org
12
+ # Copyright 2013-2024, John McNamara, jmcnamara@cpan.org
13
13
  #
14
14
  import xlsxwriter
15
15
 
@@ -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-2023, John McNamara, jmcnamara@cpan.org
11
+ # Copyright 2013-2024, John McNamara, jmcnamara@cpan.org
12
12
  #
13
13
  import xlsxwriter
14
14
 
@@ -4,7 +4,7 @@
4
4
  # Python and XlsxWriter.
5
5
  #
6
6
  # SPDX-License-Identifier: BSD-2-Clause
7
- # Copyright 2013-2023, John McNamara, jmcnamara@cpan.org
7
+ # Copyright 2013-2024, John McNamara, jmcnamara@cpan.org
8
8
  #
9
9
  import xlsxwriter
10
10
 
@@ -3,7 +3,7 @@
3
3
  # An example of creating Excel Line charts with Python and XlsxWriter.
4
4
  #
5
5
  # SPDX-License-Identifier: BSD-2-Clause
6
- # Copyright 2013-2023, John McNamara, jmcnamara@cpan.org
6
+ # Copyright 2013-2024, John McNamara, jmcnamara@cpan.org
7
7
  #
8
8
  import xlsxwriter
9
9
 
@@ -3,7 +3,7 @@
3
3
  # An example of creating of a Pareto chart with Python and XlsxWriter.
4
4
  #
5
5
  # SPDX-License-Identifier: BSD-2-Clause
6
- # Copyright 2013-2023, John McNamara, jmcnamara@cpan.org
6
+ # Copyright 2013-2024, John McNamara, jmcnamara@cpan.org
7
7
  #
8
8
  import xlsxwriter
9
9
 
@@ -3,7 +3,7 @@
3
3
  # An example of an Excel chart with patterns using Python and XlsxWriter.
4
4
  #
5
5
  # SPDX-License-Identifier: BSD-2-Clause
6
- # Copyright 2013-2023, John McNamara, jmcnamara@cpan.org
6
+ # Copyright 2013-2024, John McNamara, jmcnamara@cpan.org
7
7
  #
8
8
  import xlsxwriter
9
9
 
@@ -9,7 +9,7 @@
9
9
  # assign formatting to each point in the series.
10
10
  #
11
11
  # SPDX-License-Identifier: BSD-2-Clause
12
- # Copyright 2013-2023, John McNamara, jmcnamara@cpan.org
12
+ # Copyright 2013-2024, John McNamara, jmcnamara@cpan.org
13
13
  #
14
14
  import xlsxwriter
15
15
 
@@ -3,7 +3,7 @@
3
3
  # An example of creating Excel Radar charts with Python and XlsxWriter.
4
4
  #
5
5
  # SPDX-License-Identifier: BSD-2-Clause
6
- # Copyright 2013-2023, John McNamara, jmcnamara@cpan.org
6
+ # Copyright 2013-2024, John McNamara, jmcnamara@cpan.org
7
7
  #
8
8
  import xlsxwriter
9
9
 
@@ -3,7 +3,7 @@
3
3
  # An example of creating Excel Scatter charts with Python and XlsxWriter.
4
4
  #
5
5
  # SPDX-License-Identifier: BSD-2-Clause
6
- # Copyright 2013-2023, John McNamara, jmcnamara@cpan.org
6
+ # Copyright 2013-2024, John McNamara, jmcnamara@cpan.org
7
7
  #
8
8
  import xlsxwriter
9
9
 
@@ -4,7 +4,7 @@
4
4
  # using Python and XlsxWriter.
5
5
  #
6
6
  # SPDX-License-Identifier: BSD-2-Clause
7
- # Copyright 2013-2023, John McNamara, jmcnamara@cpan.org
7
+ # Copyright 2013-2024, John McNamara, jmcnamara@cpan.org
8
8
  #
9
9
  import xlsxwriter
10
10
 
@@ -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-2023, John McNamara, jmcnamara@cpan.org
6
+ # Copyright 2013-2024, John McNamara, jmcnamara@cpan.org
7
7
  #
8
8
  from datetime import datetime
9
9
  import xlsxwriter
@@ -5,7 +5,7 @@
5
5
  # the styles available in Excel 2013.
6
6
  #
7
7
  # SPDX-License-Identifier: BSD-2-Clause
8
- # Copyright 2013-2023, John McNamara, jmcnamara@cpan.org
8
+ # Copyright 2013-2024, John McNamara, jmcnamara@cpan.org
9
9
  #
10
10
  import xlsxwriter
11
11
 
@@ -4,7 +4,7 @@
4
4
  # and XlsxWriter.
5
5
  #
6
6
  # SPDX-License-Identifier: BSD-2-Clause
7
- # Copyright 2013-2023, John McNamara, jmcnamara@cpan.org
7
+ # Copyright 2013-2024, John McNamara, jmcnamara@cpan.org
8
8
  #
9
9
  import xlsxwriter
10
10
 
@@ -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-2023, John McNamara, jmcnamara@cpan.org
6
+ # Copyright 2013-2024, John McNamara, jmcnamara@cpan.org
7
7
  #
8
8
  import xlsxwriter
9
9
 
@@ -6,7 +6,7 @@
6
6
  # For more advanced comment options see comments2.py.
7
7
  #
8
8
  # SPDX-License-Identifier: BSD-2-Clause
9
- # Copyright 2013-2023, John McNamara, jmcnamara@cpan.org
9
+ # Copyright 2013-2024, John McNamara, jmcnamara@cpan.org
10
10
  #
11
11
  import xlsxwriter
12
12
 
@@ -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-2023, John McNamara, jmcnamara@cpan.org
9
+ # Copyright 2013-2024, John McNamara, jmcnamara@cpan.org
10
10
  #
11
11
  import xlsxwriter
12
12
 
@@ -6,7 +6,7 @@
6
6
  # range of cells based on certain criteria.
7
7
  #
8
8
  # SPDX-License-Identifier: BSD-2-Clause
9
- # Copyright 2013-2023, John McNamara, jmcnamara@cpan.org
9
+ # Copyright 2013-2024, John McNamara, jmcnamara@cpan.org
10
10
  #
11
11
  import xlsxwriter
12
12
 
@@ -4,7 +4,7 @@
4
4
  # manager. This doesn't require an explicit close().
5
5
  #
6
6
  # SPDX-License-Identifier: BSD-2-Clause
7
- # Copyright 2013-2023, John McNamara, jmcnamara@cpan.org
7
+ # Copyright 2013-2024, John McNamara, jmcnamara@cpan.org
8
8
  #
9
9
  import xlsxwriter
10
10
 
@@ -9,7 +9,7 @@
9
9
  # a drop down list.
10
10
  #
11
11
  # SPDX-License-Identifier: BSD-2-Clause
12
- # Copyright 2013-2023, John McNamara, jmcnamara@cpan.org
12
+ # Copyright 2013-2024, John McNamara, jmcnamara@cpan.org
13
13
  #
14
14
  from datetime import date, time
15
15
  import xlsxwriter
@@ -4,7 +4,7 @@
4
4
  # using the XlsxWriter Python module.
5
5
  #
6
6
  # SPDX-License-Identifier: BSD-2-Clause
7
- # Copyright 2013-2023, John McNamara, jmcnamara@cpan.org
7
+ # Copyright 2013-2024, John McNamara, jmcnamara@cpan.org
8
8
  #
9
9
  from datetime import datetime
10
10
  import xlsxwriter
@@ -6,7 +6,7 @@
6
6
  # a single cell or a range of cells in a workbook.
7
7
  #
8
8
  # SPDX-License-Identifier: BSD-2-Clause
9
- # Copyright 2013-2023, John McNamara, jmcnamara@cpan.org
9
+ # Copyright 2013-2024, John McNamara, jmcnamara@cpan.org
10
10
  #
11
11
  import xlsxwriter
12
12
 
@@ -3,7 +3,7 @@
3
3
  # A simple example of some of the features of the XlsxWriter Python module.
4
4
  #
5
5
  # SPDX-License-Identifier: BSD-2-Clause
6
- # Copyright 2013-2023, John McNamara, jmcnamara@cpan.org
6
+ # Copyright 2013-2024, John McNamara, jmcnamara@cpan.org
7
7
  #
8
8
  import xlsxwriter
9
9
 
@@ -4,7 +4,7 @@
4
4
  # borders with XlsxWriter.
5
5
  #
6
6
  # SPDX-License-Identifier: BSD-2-Clause
7
- # Copyright 2013-2023, John McNamara, jmcnamara@cpan.org
7
+ # Copyright 2013-2024, John McNamara, jmcnamara@cpan.org
8
8
  #
9
9
  import xlsxwriter
10
10
 
@@ -4,7 +4,7 @@
4
4
  # module.
5
5
  #
6
6
  # SPDX-License-Identifier: BSD-2-Clause
7
- # Copyright 2013-2023, John McNamara, jmcnamara@cpan.org
7
+ # Copyright 2013-2024, John McNamara, jmcnamara@cpan.org
8
8
  #
9
9
  import io
10
10
  from django.http import HttpResponse
@@ -3,7 +3,7 @@
3
3
  # An example of adding document properties to a XlsxWriter file.
4
4
  #
5
5
  # SPDX-License-Identifier: BSD-2-Clause
6
- # Copyright 2013-2023, John McNamara, jmcnamara@cpan.org
6
+ # Copyright 2013-2024, John McNamara, jmcnamara@cpan.org
7
7
  #
8
8
  import xlsxwriter
9
9
 
@@ -6,7 +6,7 @@
6
6
  # functions.
7
7
  #
8
8
  # SPDX-License-Identifier: BSD-2-Clause
9
- # Copyright 2013-2023, John McNamara, jmcnamara@cpan.org
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-2023, John McNamara, jmcnamara@cpan.org
37
+ # Copyright 2013-2024, John McNamara, jmcnamara@cpan.org
38
38
  #
39
39
  import xlsxwriter
40
40
 
@@ -3,7 +3,7 @@
3
3
  # A hello world spreadsheet using the XlsxWriter Python module.
4
4
  #
5
5
  # SPDX-License-Identifier: BSD-2-Clause
6
- # Copyright 2013-2023, John McNamara, jmcnamara@cpan.org
6
+ # Copyright 2013-2024, John McNamara, jmcnamara@cpan.org
7
7
  #
8
8
  import xlsxwriter
9
9
 
@@ -5,7 +5,7 @@
5
5
  # Excel uses an optimizations to hide all rows that don't have data.
6
6
  #
7
7
  # SPDX-License-Identifier: BSD-2-Clause
8
- # Copyright 2013-2023, John McNamara, jmcnamara@cpan.org
8
+ # Copyright 2013-2024, John McNamara, jmcnamara@cpan.org
9
9
  #
10
10
  import xlsxwriter
11
11
 
@@ -3,7 +3,7 @@
3
3
  # Example of how to hide a worksheet with XlsxWriter.
4
4
  #
5
5
  # SPDX-License-Identifier: BSD-2-Clause
6
- # Copyright 2013-2023, John McNamara, jmcnamara@cpan.org
6
+ # Copyright 2013-2024, John McNamara, jmcnamara@cpan.org
7
7
  #
8
8
  import xlsxwriter
9
9
 
@@ -5,7 +5,7 @@
5
5
  # with the Google App Engine.
6
6
  #
7
7
  # SPDX-License-Identifier: BSD-2-Clause
8
- # Copyright 2013-2023, John McNamara, jmcnamara@cpan.org
8
+ # Copyright 2013-2024, John McNamara, jmcnamara@cpan.org
9
9
  #
10
10
 
11
11
  import http.server
@@ -3,7 +3,7 @@
3
3
  # Example of how to use the XlsxWriter module to write hyperlinks
4
4
  #
5
5
  # SPDX-License-Identifier: BSD-2-Clause
6
- # Copyright 2013-2023, John McNamara, jmcnamara@cpan.org
6
+ # Copyright 2013-2024, John McNamara, jmcnamara@cpan.org
7
7
  #
8
8
  import xlsxwriter
9
9
 
@@ -4,7 +4,7 @@
4
4
  # XlsxWriter Python module.
5
5
  #
6
6
  # SPDX-License-Identifier: BSD-2-Clause
7
- # Copyright 2013-2023, John McNamara, jmcnamara@cpan.org
7
+ # Copyright 2013-2024, John McNamara, jmcnamara@cpan.org
8
8
  #
9
9
  import xlsxwriter
10
10
 
@@ -4,7 +4,7 @@
4
4
  # Python module.
5
5
  #
6
6
  # SPDX-License-Identifier: BSD-2-Clause
7
- # Copyright 2013-2023, John McNamara, jmcnamara@cpan.org
7
+ # Copyright 2013-2024, John McNamara, jmcnamara@cpan.org
8
8
  #
9
9
  import xlsxwriter
10
10
 
@@ -4,7 +4,7 @@
4
4
  # worksheet using the XlsxWriter module.
5
5
  #
6
6
  # SPDX-License-Identifier: BSD-2-Clause
7
- # Copyright 2013-2023, John McNamara, jmcnamara@cpan.org
7
+ # Copyright 2013-2024, John McNamara, jmcnamara@cpan.org
8
8
  #
9
9
 
10
10
  from io import BytesIO