bcf-api-xml 0.4.16__tar.gz → 0.4.17__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 (28) hide show
  1. {bcf_api_xml-0.4.16 → bcf_api_xml-0.4.17}/PKG-INFO +1 -1
  2. {bcf_api_xml-0.4.16 → bcf_api_xml-0.4.17}/bcf_api_xml/__init__.py +1 -1
  3. {bcf_api_xml-0.4.16 → bcf_api_xml-0.4.17}/bcf_api_xml/export/excel.py +5 -3
  4. {bcf_api_xml-0.4.16 → bcf_api_xml-0.4.17}/pyproject.toml +1 -1
  5. {bcf_api_xml-0.4.16 → bcf_api_xml-0.4.17}/README.md +0 -0
  6. {bcf_api_xml-0.4.16 → bcf_api_xml-0.4.17}/bcf_api_xml/Schemas/bcf.version +0 -0
  7. {bcf_api_xml-0.4.16 → bcf_api_xml-0.4.17}/bcf_api_xml/Schemas/markup.xsd +0 -0
  8. {bcf_api_xml-0.4.16 → bcf_api_xml-0.4.17}/bcf_api_xml/Schemas/project.xsd +0 -0
  9. {bcf_api_xml-0.4.16 → bcf_api_xml-0.4.17}/bcf_api_xml/Schemas/version.xsd +0 -0
  10. {bcf_api_xml-0.4.16 → bcf_api_xml-0.4.17}/bcf_api_xml/Schemas/visinfo.xsd +0 -0
  11. {bcf_api_xml-0.4.16 → bcf_api_xml-0.4.17}/bcf_api_xml/errors.py +0 -0
  12. {bcf_api_xml-0.4.16 → bcf_api_xml-0.4.17}/bcf_api_xml/export/__init__.py +0 -0
  13. {bcf_api_xml-0.4.16 → bcf_api_xml-0.4.17}/bcf_api_xml/export/zip.py +0 -0
  14. {bcf_api_xml-0.4.16 → bcf_api_xml-0.4.17}/bcf_api_xml/import_zip.py +0 -0
  15. {bcf_api_xml-0.4.16 → bcf_api_xml-0.4.17}/bcf_api_xml/models/ClippingPlane.py +0 -0
  16. {bcf_api_xml-0.4.16 → bcf_api_xml-0.4.17}/bcf_api_xml/models/Color.py +0 -0
  17. {bcf_api_xml-0.4.16 → bcf_api_xml-0.4.17}/bcf_api_xml/models/Comment.py +0 -0
  18. {bcf_api_xml-0.4.16 → bcf_api_xml-0.4.17}/bcf_api_xml/models/Component.py +0 -0
  19. {bcf_api_xml-0.4.16 → bcf_api_xml-0.4.17}/bcf_api_xml/models/Line.py +0 -0
  20. {bcf_api_xml-0.4.16 → bcf_api_xml-0.4.17}/bcf_api_xml/models/OrthogonalCamera.py +0 -0
  21. {bcf_api_xml-0.4.16 → bcf_api_xml-0.4.17}/bcf_api_xml/models/PerspectiveCamera.py +0 -0
  22. {bcf_api_xml-0.4.16 → bcf_api_xml-0.4.17}/bcf_api_xml/models/Topic.py +0 -0
  23. {bcf_api_xml-0.4.16 → bcf_api_xml-0.4.17}/bcf_api_xml/models/ViewSetupHints.py +0 -0
  24. {bcf_api_xml-0.4.16 → bcf_api_xml-0.4.17}/bcf_api_xml/models/Viewpoint.py +0 -0
  25. {bcf_api_xml-0.4.16 → bcf_api_xml-0.4.17}/bcf_api_xml/models/Visibility.py +0 -0
  26. {bcf_api_xml-0.4.16 → bcf_api_xml-0.4.17}/bcf_api_xml/models/VisualizationInfo.py +0 -0
  27. {bcf_api_xml-0.4.16 → bcf_api_xml-0.4.17}/bcf_api_xml/models/XYZ.py +0 -0
  28. {bcf_api_xml-0.4.16 → bcf_api_xml-0.4.17}/bcf_api_xml/models/__init__.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: bcf-api-xml
3
- Version: 0.4.16
3
+ Version: 0.4.17
4
4
  Summary: Convert BCF-API to BCF-XML
5
5
  Home-page: https://github.com/bimdata/BCF-API-XML-translator
6
6
  License: MIT
@@ -4,4 +4,4 @@ from bcf_api_xml.export import to_xlsx # noqa: F401
4
4
  from bcf_api_xml.export import to_zip # noqa: F401
5
5
  from bcf_api_xml.import_zip import to_json # noqa: F401
6
6
 
7
- __version__ = "0.4.16"
7
+ __version__ = "0.4.17"
@@ -31,6 +31,7 @@ HEADER_TRANSLATIONS = {
31
31
  "models": "Models",
32
32
  "space": "Organisation",
33
33
  "project": "Project",
34
+ "sheetname": "BCF list",
34
35
  },
35
36
  "fr": {
36
37
  "index": "N°",
@@ -49,6 +50,7 @@ HEADER_TRANSLATIONS = {
49
50
  "models": "Maquettes",
50
51
  "space": "Organisation",
51
52
  "project": "Project",
53
+ "sheetname": "Liste des BCF",
52
54
  },
53
55
  }
54
56
 
@@ -87,12 +89,14 @@ def to_xlsx(
87
89
  comments: dict(topics_guid=[comment])
88
90
  viewpoints: dict(topics_guid=[viewpoint])
89
91
  """
92
+ headers = HEADER_TRANSLATIONS[lang]
93
+
90
94
  xls_file = io.BytesIO()
91
95
  with xlsxwriter.Workbook(xls_file, options={"remove_timezone": True}) as workbook:
92
96
  if sheetname:
93
97
  worksheet = workbook.add_worksheet(sheetname)
94
98
  else:
95
- worksheet = workbook.add_worksheet()
99
+ worksheet = workbook.add_worksheet(headers["sheetname"])
96
100
 
97
101
  # Set default height for tables
98
102
  DEFAULT_CELL_HEIGHT = 220
@@ -136,8 +140,6 @@ def to_xlsx(
136
140
  header_fmt2 = workbook.add_format({"border": 1})
137
141
  base_fm_align = workbook.add_format({"align": "center", "valign": "top"})
138
142
 
139
- headers = HEADER_TRANSLATIONS[lang]
140
-
141
143
  # Company Logo followed by date, espace, space, models
142
144
  row = 0
143
145
 
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "bcf-api-xml"
3
- version = "0.4.16"
3
+ version = "0.4.17"
4
4
  description = "Convert BCF-API to BCF-XML"
5
5
  authors = ["Hugo Duroux <hugo@bimdata.io>"]
6
6
  license = "MIT"
File without changes