osw 2.3.2__tar.gz → 2.3.4__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.
- {osw-2.3.2 → osw-2.3.4}/CHANGELOG.md +29 -0
- {osw-2.3.2 → osw-2.3.4}/CITATION.cff +1 -1
- osw-2.3.4/LICENSE.txt +176 -0
- osw-2.3.4/NOTICE +2 -0
- {osw-2.3.2 → osw-2.3.4}/PKG-INFO +4 -4
- {osw-2.3.2 → osw-2.3.4}/examples/gui_local_slot_editing.py +188 -75
- {osw-2.3.2 → osw-2.3.4}/pyproject.toml +7 -3
- {osw-2.3.2 → osw-2.3.4}/src/osw/core.py +107 -1
- {osw-2.3.2 → osw-2.3.4}/src/osw/model/page_package.py +4 -0
- {osw-2.3.2 → osw-2.3.4}/src/osw/wiki_tools.py +4 -0
- {osw-2.3.2 → osw-2.3.4}/src/osw/wtsite.py +23 -10
- {osw-2.3.2 → osw-2.3.4}/tests/test_overwrite_policy.py +4 -0
- {osw-2.3.2 → osw-2.3.4}/tests/test_store_entity_failure.py +4 -0
- osw-2.3.4/tests/test_store_entity_verify.py +208 -0
- {osw-2.3.2 → osw-2.3.4}/tests/test_wiki_tools.py +35 -0
- osw-2.3.4/tests/test_wtsite_create_page_package.py +86 -0
- osw-2.3.4/tests/test_wtsite_read_page_package.py +78 -0
- {osw-2.3.2 → osw-2.3.4}/uv.lock +5 -4
- osw-2.3.2/LICENSE.txt +0 -619
- {osw-2.3.2 → osw-2.3.4}/.github/actions/setup-python-env/action.yml +0 -0
- {osw-2.3.2 → osw-2.3.4}/.github/workflows/docs.yml +0 -0
- {osw-2.3.2 → osw-2.3.4}/.github/workflows/integration.yml +0 -0
- {osw-2.3.2 → osw-2.3.4}/.github/workflows/main.yml +0 -0
- {osw-2.3.2 → osw-2.3.4}/.github/workflows/on-release-main.yml +0 -0
- {osw-2.3.2 → osw-2.3.4}/.github/workflows/validate-codecov-config.yml +0 -0
- {osw-2.3.2 → osw-2.3.4}/.gitignore +0 -0
- {osw-2.3.2 → osw-2.3.4}/.gitmodules +0 -0
- {osw-2.3.2 → osw-2.3.4}/.pre-commit-config.yaml +0 -0
- {osw-2.3.2 → osw-2.3.4}/CONTRIBUTING.md +0 -0
- {osw-2.3.2 → osw-2.3.4}/Makefile +0 -0
- {osw-2.3.2 → osw-2.3.4}/README.md +0 -0
- {osw-2.3.2 → osw-2.3.4}/codecov.yaml +0 -0
- {osw-2.3.2 → osw-2.3.4}/conftest.py +0 -0
- {osw-2.3.2 → osw-2.3.4}/docs/about.md +0 -0
- {osw-2.3.2 → osw-2.3.4}/docs/api/auth.md +0 -0
- {osw-2.3.2 → osw-2.3.4}/docs/api/controller.md +0 -0
- {osw-2.3.2 → osw-2.3.4}/docs/api/core.md +0 -0
- {osw-2.3.2 → osw-2.3.4}/docs/api/index.md +0 -0
- {osw-2.3.2 → osw-2.3.4}/docs/api/model.md +0 -0
- {osw-2.3.2 → osw-2.3.4}/docs/api/wiki-tools.md +0 -0
- {osw-2.3.2 → osw-2.3.4}/docs/dev.md +0 -0
- {osw-2.3.2 → osw-2.3.4}/docs/get-started.md +0 -0
- {osw-2.3.2 → osw-2.3.4}/docs/index.md +0 -0
- {osw-2.3.2 → osw-2.3.4}/docs/stylesheets/extra.css +0 -0
- {osw-2.3.2 → osw-2.3.4}/docs/tutorials/basics.ipynb +0 -0
- {osw-2.3.2 → osw-2.3.4}/docs/tutorials/img/osw_intro_data_model.png +0 -0
- {osw-2.3.2 → osw-2.3.4}/docs/tutorials/img/osw_intro_technology_stack.png +0 -0
- {osw-2.3.2 → osw-2.3.4}/examples/.env_example +0 -0
- {osw-2.3.2 → osw-2.3.4}/examples/clean_demo_platform.py +0 -0
- {osw-2.3.2 → osw-2.3.4}/examples/controller_logic.py +0 -0
- {osw-2.3.2 → osw-2.3.4}/examples/create_entity.py +0 -0
- {osw-2.3.2 → osw-2.3.4}/examples/create_page_package.py +0 -0
- {osw-2.3.2 → osw-2.3.4}/examples/data/example_ontology.ttl +0 -0
- {osw-2.3.2 → osw-2.3.4}/examples/data_processing/local_jsonpath_queries.py +0 -0
- {osw-2.3.2 → osw-2.3.4}/examples/data_processing/regex_matching.py +0 -0
- {osw-2.3.2 → osw-2.3.4}/examples/database_access.py +0 -0
- {osw-2.3.2 → osw-2.3.4}/examples/device_inventory.py +0 -0
- {osw-2.3.2 → osw-2.3.4}/examples/file_download_minimal.py +0 -0
- {osw-2.3.2 → osw-2.3.4}/examples/file_upload_download.py +0 -0
- {osw-2.3.2 → osw-2.3.4}/examples/generate_rdf.py +0 -0
- {osw-2.3.2 → osw-2.3.4}/examples/get_page_content.py +0 -0
- {osw-2.3.2 → osw-2.3.4}/examples/inter_osw_copy_page.py +0 -0
- {osw-2.3.2 → osw-2.3.4}/examples/load_entity.py +0 -0
- {osw-2.3.2 → osw-2.3.4}/examples/offline_content_package.py +0 -0
- {osw-2.3.2 → osw-2.3.4}/examples/ontology_import.py +0 -0
- {osw-2.3.2 → osw-2.3.4}/examples/ontology_import_emmo.py +0 -0
- {osw-2.3.2 → osw-2.3.4}/examples/ontology_import_mwo.py +0 -0
- {osw-2.3.2 → osw-2.3.4}/examples/oold_integration.py +0 -0
- {osw-2.3.2 → osw-2.3.4}/examples/page_manipulation.py +0 -0
- {osw-2.3.2 → osw-2.3.4}/examples/prefect/deploy_flow.py +0 -0
- {osw-2.3.2 → osw-2.3.4}/examples/prefect/hello_world.py +0 -0
- {osw-2.3.2 → osw-2.3.4}/examples/prefect/notify_teams.py +0 -0
- {osw-2.3.2 → osw-2.3.4}/examples/query_minimal.py +0 -0
- {osw-2.3.2 → osw-2.3.4}/examples/register_model.py +0 -0
- {osw-2.3.2 → osw-2.3.4}/examples/settings.example.json +0 -0
- {osw-2.3.2 → osw-2.3.4}/examples/store_entity.py +0 -0
- {osw-2.3.2 → osw-2.3.4}/examples/update_local_model.py +0 -0
- {osw-2.3.2 → osw-2.3.4}/examples/use_express_functions.py +0 -0
- {osw-2.3.2 → osw-2.3.4}/scripts/migration/file_page_migration.py +0 -0
- {osw-2.3.2 → osw-2.3.4}/scripts/migration/legacy_articles +0 -0
- {osw-2.3.2 → osw-2.3.4}/src/osw/__init__.py +0 -0
- {osw-2.3.2 → osw-2.3.4}/src/osw/auth.py +0 -0
- {osw-2.3.2 → osw-2.3.4}/src/osw/controller/__init__.py +0 -0
- {osw-2.3.2 → osw-2.3.4}/src/osw/controller/database.py +0 -0
- {osw-2.3.2 → osw-2.3.4}/src/osw/controller/entity.py +0 -0
- {osw-2.3.2 → osw-2.3.4}/src/osw/controller/file/__init__.py +0 -0
- {osw-2.3.2 → osw-2.3.4}/src/osw/controller/file/base.py +0 -0
- {osw-2.3.2 → osw-2.3.4}/src/osw/controller/file/local.py +0 -0
- {osw-2.3.2 → osw-2.3.4}/src/osw/controller/file/memory.py +0 -0
- {osw-2.3.2 → osw-2.3.4}/src/osw/controller/file/remote.py +0 -0
- {osw-2.3.2 → osw-2.3.4}/src/osw/controller/file/s3.py +0 -0
- {osw-2.3.2 → osw-2.3.4}/src/osw/controller/file/wiki.py +0 -0
- {osw-2.3.2 → osw-2.3.4}/src/osw/controller/page_package.py +0 -0
- {osw-2.3.2 → osw-2.3.4}/src/osw/custom_types.py +0 -0
- {osw-2.3.2 → osw-2.3.4}/src/osw/data/__init__.py +0 -0
- {osw-2.3.2 → osw-2.3.4}/src/osw/data/import_utility.py +0 -0
- {osw-2.3.2 → osw-2.3.4}/src/osw/data/mining.py +0 -0
- {osw-2.3.2 → osw-2.3.4}/src/osw/defaults.py +0 -0
- {osw-2.3.2 → osw-2.3.4}/src/osw/express.py +0 -0
- {osw-2.3.2 → osw-2.3.4}/src/osw/model/__init__.py +0 -0
- {osw-2.3.2 → osw-2.3.4}/src/osw/model/entity.py +0 -0
- {osw-2.3.2 → osw-2.3.4}/src/osw/ontology.py +0 -0
- {osw-2.3.2 → osw-2.3.4}/src/osw/params.py +0 -0
- {osw-2.3.2 → osw-2.3.4}/src/osw/sparql_client_smw.py +0 -0
- {osw-2.3.2 → osw-2.3.4}/src/osw/utils/__init__.py +0 -0
- {osw-2.3.2 → osw-2.3.4}/src/osw/utils/_httpx_gateway.py +0 -0
- {osw-2.3.2 → osw-2.3.4}/src/osw/utils/code_postprocessing.py +0 -0
- {osw-2.3.2 → osw-2.3.4}/src/osw/utils/oold.py +0 -0
- {osw-2.3.2 → osw-2.3.4}/src/osw/utils/regex.py +0 -0
- {osw-2.3.2 → osw-2.3.4}/src/osw/utils/regex_pattern.py +0 -0
- {osw-2.3.2 → osw-2.3.4}/src/osw/utils/strings.py +0 -0
- {osw-2.3.2 → osw-2.3.4}/src/osw/utils/templates.py +0 -0
- {osw-2.3.2 → osw-2.3.4}/src/osw/utils/util.py +0 -0
- {osw-2.3.2 → osw-2.3.4}/src/osw/utils/wiki.py +0 -0
- {osw-2.3.2 → osw-2.3.4}/src/osw/utils/wikitext.py +0 -0
- {osw-2.3.2 → osw-2.3.4}/src/osw/utils/workflow.py +0 -0
- {osw-2.3.2 → osw-2.3.4}/tests/conftest.py +0 -0
- {osw-2.3.2 → osw-2.3.4}/tests/controller_mixin.py +0 -0
- {osw-2.3.2 → osw-2.3.4}/tests/data_import_utility_test.py +0 -0
- {osw-2.3.2 → osw-2.3.4}/tests/integration/conftest.py +0 -0
- {osw-2.3.2 → osw-2.3.4}/tests/integration/db_test.py +0 -0
- {osw-2.3.2 → osw-2.3.4}/tests/integration/example_ontology.ttl +0 -0
- {osw-2.3.2 → osw-2.3.4}/tests/integration/file_page_migration_dependencies.py +0 -0
- {osw-2.3.2 → osw-2.3.4}/tests/integration/login_test.py +0 -0
- {osw-2.3.2 → osw-2.3.4}/tests/integration/ontology_import_test.py +0 -0
- {osw-2.3.2 → osw-2.3.4}/tests/integration/performance_test.py +0 -0
- {osw-2.3.2 → osw-2.3.4}/tests/integration/store_and_load_test.py +0 -0
- {osw-2.3.2 → osw-2.3.4}/tests/integration/test.png +0 -0
- {osw-2.3.2 → osw-2.3.4}/tests/integration/test.svg +0 -0
- {osw-2.3.2 → osw-2.3.4}/tests/integration/test_express.py +0 -0
- {osw-2.3.2 → osw-2.3.4}/tests/integration/test_express_init.py +0 -0
- {osw-2.3.2 → osw-2.3.4}/tests/integration/test_file_controller.py +0 -0
- {osw-2.3.2 → osw-2.3.4}/tests/integration/test_file_page_migration.py +0 -0
- {osw-2.3.2 → osw-2.3.4}/tests/integration/test_page_export_import.py +0 -0
- {osw-2.3.2 → osw-2.3.4}/tests/integration/test_page_package.py +0 -0
- {osw-2.3.2 → osw-2.3.4}/tests/integration/test_rdf_generation.py +0 -0
- {osw-2.3.2 → osw-2.3.4}/tests/integration/test_wtsite.py +0 -0
- {osw-2.3.2 → osw-2.3.4}/tests/sparql_client_test.py +0 -0
- {osw-2.3.2 → osw-2.3.4}/tests/test_credential_manager.py +0 -0
- {osw-2.3.2 → osw-2.3.4}/tests/test_download_filename_modes.py +0 -0
- {osw-2.3.2 → osw-2.3.4}/tests/test_in_memory_upload.py +0 -0
- {osw-2.3.2 → osw-2.3.4}/tests/test_osl.py +0 -0
- {osw-2.3.2 → osw-2.3.4}/tests/test_page_package_search.py +0 -0
- {osw-2.3.2 → osw-2.3.4}/tests/test_schema_ref_stub.py +0 -0
- {osw-2.3.2 → osw-2.3.4}/tests/test_wtpage_update_dict.py +0 -0
- {osw-2.3.2 → osw-2.3.4}/tests/test_wtsite_edit.py +0 -0
- {osw-2.3.2 → osw-2.3.4}/tests/test_wtsite_modify_search_results.py +0 -0
- {osw-2.3.2 → osw-2.3.4}/tests/test_wtsite_session_lock.py +0 -0
- {osw-2.3.2 → osw-2.3.4}/tests/test_wtsite_upload_page.py +0 -0
- {osw-2.3.2 → osw-2.3.4}/tests/utils/code_postprocessing_test.py +0 -0
- {osw-2.3.2 → osw-2.3.4}/tests/utils/oold_test.py +0 -0
- {osw-2.3.2 → osw-2.3.4}/tests/utils/parallelize_test.py +0 -0
- {osw-2.3.2 → osw-2.3.4}/tests/utils/templates_test.py +0 -0
- {osw-2.3.2 → osw-2.3.4}/tests/utils/utils_test.py +0 -0
- {osw-2.3.2 → osw-2.3.4}/tests/utils/workflow_test.py +0 -0
- {osw-2.3.2 → osw-2.3.4}/zensical.toml +0 -0
|
@@ -10,6 +10,35 @@
|
|
|
10
10
|
|
|
11
11
|
<!-- version list -->
|
|
12
12
|
|
|
13
|
+
## v2.3.4 (2026-09-21)
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
- **core**: Confirm a missing page before reporting a failed store
|
|
18
|
+
([`5756436`](https://github.com/OpenSemanticLab/osw-python/commit/5756436e08ba95be3e177c6a78c424bfdba756c8))
|
|
19
|
+
|
|
20
|
+
- **core**: Verify that store_entity actually created the page
|
|
21
|
+
([`f84a529`](https://github.com/OpenSemanticLab/osw-python/commit/f84a5297c605fc458783e5497edeb1f97113053b))
|
|
22
|
+
|
|
23
|
+
### Chores
|
|
24
|
+
|
|
25
|
+
- Relicense to Apache-2.0 ([#173](https://github.com/OpenSemanticLab/osw-python/pull/173),
|
|
26
|
+
[`848615c`](https://github.com/OpenSemanticLab/osw-python/commit/848615cbd1e06401922eda88231a51028440a242))
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
## v2.3.3 (2026-09-08)
|
|
30
|
+
|
|
31
|
+
### Bug Fixes
|
|
32
|
+
|
|
33
|
+
- **gui**: Improvements to gui_local_slot_editing
|
|
34
|
+
([`a84e73a`](https://github.com/OpenSemanticLab/osw-python/commit/a84e73ad1e2f3a3f7c20eabce748d288bbb531a8))
|
|
35
|
+
|
|
36
|
+
### Build System
|
|
37
|
+
|
|
38
|
+
- **deps**: Require pysimplegui>=6 for the UI extra
|
|
39
|
+
([`4ca7ab9`](https://github.com/OpenSemanticLab/osw-python/commit/4ca7ab97ad94ad53629db2db513769af648acf5a))
|
|
40
|
+
|
|
41
|
+
|
|
13
42
|
## v2.3.2 (2026-09-07)
|
|
14
43
|
|
|
15
44
|
### Bug Fixes
|
|
@@ -3,7 +3,7 @@ message: "If you use this software, please cite it as below."
|
|
|
3
3
|
type: software
|
|
4
4
|
title: "OpenSemanticWorld Python Package (osw-python)"
|
|
5
5
|
# Managed by python-semantic-release (version_variables). Do not edit by hand.
|
|
6
|
-
version: 2.3.
|
|
6
|
+
version: 2.3.4
|
|
7
7
|
abstract: "Python toolset for data processing, queries, wikicode generation and page manipulation within OpenSemanticLab: work with OpenSemanticLab instances as typed pydantic entities, query with semantic search, generate models from wiki schemas, and write changes back."
|
|
8
8
|
repository-code: "https://github.com/OpenSemanticLab/osw-python"
|
|
9
9
|
url: "https://opensemanticlab.github.io/osw-python/"
|
osw-2.3.4/LICENSE.txt
ADDED
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
osw-2.3.4/NOTICE
ADDED
{osw-2.3.2 → osw-2.3.4}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: osw
|
|
3
|
-
Version: 2.3.
|
|
3
|
+
Version: 2.3.4
|
|
4
4
|
Summary: Python toolset for data processing, queries, wikicode generation and page manipulation
|
|
5
5
|
Project-URL: Homepage, https://github.com/OpenSemanticLab/osw-python
|
|
6
6
|
Project-URL: Documentation, https://opensemanticlab.github.io/osw-python/
|
|
@@ -8,7 +8,7 @@ Project-URL: Source, https://github.com/OpenSemanticLab/osw-python
|
|
|
8
8
|
Project-URL: Changelog, https://github.com/OpenSemanticLab/osw-python/blob/main/CHANGELOG.md
|
|
9
9
|
Project-URL: Download, https://pypi.org/project/osw/#files
|
|
10
10
|
Author-email: OpenSemanticWorld <team@opensemantic.world>
|
|
11
|
-
License-Expression:
|
|
11
|
+
License-Expression: Apache-2.0
|
|
12
12
|
License-File: LICENSE.txt
|
|
13
13
|
Classifier: Development Status :: 3 - Alpha
|
|
14
14
|
Classifier: Intended Audience :: Developers
|
|
@@ -49,7 +49,7 @@ Requires-Dist: geopy; extra == 'all'
|
|
|
49
49
|
Requires-Dist: mwparserfromhell; extra == 'all'
|
|
50
50
|
Requires-Dist: openpyxl; extra == 'all'
|
|
51
51
|
Requires-Dist: psycopg2; extra == 'all'
|
|
52
|
-
Requires-Dist: pysimplegui; extra == 'all'
|
|
52
|
+
Requires-Dist: pysimplegui>=6; extra == 'all'
|
|
53
53
|
Requires-Dist: sqlalchemy; extra == 'all'
|
|
54
54
|
Provides-Extra: dataimport
|
|
55
55
|
Requires-Dist: deepl; extra == 'dataimport'
|
|
@@ -65,7 +65,7 @@ Requires-Dist: deepl; extra == 'tutorial'
|
|
|
65
65
|
Requires-Dist: geopy; extra == 'tutorial'
|
|
66
66
|
Requires-Dist: openpyxl; extra == 'tutorial'
|
|
67
67
|
Provides-Extra: ui
|
|
68
|
-
Requires-Dist: pysimplegui; extra == 'ui'
|
|
68
|
+
Requires-Dist: pysimplegui>=6; extra == 'ui'
|
|
69
69
|
Provides-Extra: wikitext
|
|
70
70
|
Requires-Dist: mwparserfromhell; extra == 'wikitext'
|
|
71
71
|
Provides-Extra: workflow
|
|
@@ -3,6 +3,7 @@ them locally and uploading them again."""
|
|
|
3
3
|
|
|
4
4
|
import json
|
|
5
5
|
import os
|
|
6
|
+
import re
|
|
6
7
|
|
|
7
8
|
# import yaml
|
|
8
9
|
from pathlib import Path
|
|
@@ -52,6 +53,33 @@ def str_or_none(value):
|
|
|
52
53
|
return str(value)
|
|
53
54
|
|
|
54
55
|
|
|
56
|
+
def compute_page_storage_path(
|
|
57
|
+
working_dir: str,
|
|
58
|
+
domain_str: str,
|
|
59
|
+
page_name_as_filename: bool,
|
|
60
|
+
label_str: str = None,
|
|
61
|
+
top_level: str = None,
|
|
62
|
+
) -> str:
|
|
63
|
+
"""Compute the folder that a page's slots are downloaded to / uploaded from.
|
|
64
|
+
|
|
65
|
+
Mirrors the folder-naming logic previously inlined in save_as_page_package: the
|
|
66
|
+
page label is used when 'page_name_as_filename' is set and a label is known,
|
|
67
|
+
otherwise the top-level page title is used. A domain sub folder is inserted so
|
|
68
|
+
that pages from different OSW instances don't collide inside the same local
|
|
69
|
+
working directory.
|
|
70
|
+
|
|
71
|
+
Both the '-DL-' (download) and '-UL-' (upload) event handlers call this helper
|
|
72
|
+
so they always agree on where a given page's content is stored on disk.
|
|
73
|
+
"""
|
|
74
|
+
if page_name_as_filename and label_str is not None:
|
|
75
|
+
page_dir_name = label_str
|
|
76
|
+
else:
|
|
77
|
+
page_dir_name = top_level
|
|
78
|
+
# Sanitize the domain for use as a directory name (invalid on Windows: \/:*?"<>|)
|
|
79
|
+
domain_dir = re.sub(r'[\\/:*?"<>|]', "_", domain_str)
|
|
80
|
+
return os.path.join(working_dir, domain_dir, page_dir_name)
|
|
81
|
+
|
|
82
|
+
|
|
55
83
|
def create_config_from_setting(settings_: dict) -> WtPage.PageDumpConfig:
|
|
56
84
|
config_ = WtPage.PageDumpConfig(
|
|
57
85
|
target_dir=settings_["local_working_directory"],
|
|
@@ -66,6 +94,7 @@ def save_as_page_package(
|
|
|
66
94
|
full_page_name_str,
|
|
67
95
|
wtsite_inst: WtSite,
|
|
68
96
|
dump_config_inst: WtPage.PageDumpConfig,
|
|
97
|
+
domain_str: str,
|
|
69
98
|
label_str: str = None,
|
|
70
99
|
top_level: str = None,
|
|
71
100
|
sub_level: str = None, # "content"
|
|
@@ -81,10 +110,13 @@ def save_as_page_package(
|
|
|
81
110
|
package_branch = "deleteme"
|
|
82
111
|
publisher = "Open Semantic World"
|
|
83
112
|
working_dir = dump_config_inst.target_dir
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
113
|
+
target_dir = compute_page_storage_path(
|
|
114
|
+
working_dir,
|
|
115
|
+
domain_str,
|
|
116
|
+
dump_config_inst.page_name_as_filename,
|
|
117
|
+
label_str,
|
|
118
|
+
top_level,
|
|
119
|
+
)
|
|
88
120
|
if isinstance(author, list):
|
|
89
121
|
author_list = author
|
|
90
122
|
elif isinstance(author, str):
|
|
@@ -156,24 +188,46 @@ if __name__ == "__main__":
|
|
|
156
188
|
}
|
|
157
189
|
settings_read_from_file = False
|
|
158
190
|
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
191
|
+
# An empty/missing accounts.pwd.yaml must not prevent the window from opening.
|
|
192
|
+
# The user can still type/select a domain once the window is up.
|
|
193
|
+
domains, accounts, cred_load_error = [], {}, None
|
|
194
|
+
try:
|
|
195
|
+
domains, accounts = read_domains_from_credentials_file(
|
|
196
|
+
settings["cred_filepath"]
|
|
197
|
+
)
|
|
198
|
+
except (FileNotFoundError, ValueError) as e:
|
|
199
|
+
cred_load_error = f"{type(e).__name__}: {e}"
|
|
200
|
+
|
|
201
|
+
if domains:
|
|
202
|
+
if "wiki-dev.open-semantic-lab.org" in domains:
|
|
203
|
+
domain = "wiki-dev.open-semantic-lab.org"
|
|
204
|
+
else:
|
|
205
|
+
domain = domains[0]
|
|
206
|
+
if settings_read_from_file:
|
|
207
|
+
settings["domain"] = domain
|
|
162
208
|
else:
|
|
163
|
-
domain =
|
|
164
|
-
if settings_read_from_file:
|
|
165
|
-
settings["domain"] = domain
|
|
209
|
+
domain = settings.get("domain", "")
|
|
166
210
|
|
|
167
211
|
cm = CredentialManager(cred_filepath=settings["cred_filepath"])
|
|
168
|
-
osw_obj =
|
|
169
|
-
wtsite_obj =
|
|
212
|
+
osw_obj = None
|
|
213
|
+
wtsite_obj = None
|
|
214
|
+
if domain:
|
|
215
|
+
osw_obj = OswExpress(domain=domain, cred_mngr=cm)
|
|
216
|
+
wtsite_obj = osw_obj.site
|
|
170
217
|
|
|
171
218
|
full_page_name = settings["target_page"].split("/")[-1].replace("_", " ")
|
|
172
|
-
page =
|
|
219
|
+
page = None
|
|
220
|
+
if wtsite_obj is not None:
|
|
221
|
+
page = wtsite_obj.get_page(WtSite.GetPageParam(titles=[full_page_name])).pages[
|
|
222
|
+
0
|
|
223
|
+
]
|
|
173
224
|
label_set = False
|
|
174
225
|
label = None
|
|
175
226
|
slots_downloaded = False
|
|
176
227
|
dump_config = create_config_from_setting(settings)
|
|
228
|
+
label_default_text = ""
|
|
229
|
+
if cred_load_error is not None:
|
|
230
|
+
label_default_text = f"Could not load credentials: {cred_load_error}"
|
|
177
231
|
|
|
178
232
|
# ----- GUI Definition -----
|
|
179
233
|
# Setting the theme of the GUI
|
|
@@ -253,7 +307,12 @@ if __name__ == "__main__":
|
|
|
253
307
|
],
|
|
254
308
|
[
|
|
255
309
|
# A display element that will show the label of the OSW page
|
|
256
|
-
psg.Multiline(
|
|
310
|
+
psg.Multiline(
|
|
311
|
+
size=(50, 1),
|
|
312
|
+
key="-LABEL-",
|
|
313
|
+
no_scrollbar=True,
|
|
314
|
+
default_text=label_default_text,
|
|
315
|
+
)
|
|
257
316
|
],
|
|
258
317
|
]),
|
|
259
318
|
],
|
|
@@ -354,10 +413,17 @@ if __name__ == "__main__":
|
|
|
354
413
|
json.dump(settings, f, indent=4)
|
|
355
414
|
elif event == "-CREDENTIALS-":
|
|
356
415
|
settings["cred_filepath"] = values["-CREDENTIALS-"]
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
416
|
+
try:
|
|
417
|
+
domains, accounts = read_domains_from_credentials_file(
|
|
418
|
+
settings["cred_filepath"]
|
|
419
|
+
)
|
|
420
|
+
window["-DOMAIN-"].update(values=domains)
|
|
421
|
+
except (FileNotFoundError, ValueError) as e:
|
|
422
|
+
# Keep the previously loaded domains/accounts, the user can retry
|
|
423
|
+
# with a different file.
|
|
424
|
+
window["-LABEL-"].update(
|
|
425
|
+
f"Could not load credentials: {type(e).__name__}: {e}"
|
|
426
|
+
)
|
|
361
427
|
elif event == "-LWD-":
|
|
362
428
|
settings["local_working_directory"] = values["-LWD-"]
|
|
363
429
|
elif event == "-DOMAIN-":
|
|
@@ -368,51 +434,82 @@ if __name__ == "__main__":
|
|
|
368
434
|
elif event == "Load page":
|
|
369
435
|
window["-LABEL-"].update("Loading page...")
|
|
370
436
|
window["-DL_RES-"].update("")
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
settings["target_page"] = values["-ADDRESS-"]
|
|
376
|
-
else:
|
|
377
|
-
settings["target_page"] = (
|
|
378
|
-
"https://" + domain + "/wiki/" + full_page_name
|
|
437
|
+
if wtsite_obj is None:
|
|
438
|
+
window["-LABEL-"].update(
|
|
439
|
+
"No domain selected. Load a credentials file or select a "
|
|
440
|
+
"domain first."
|
|
379
441
|
)
|
|
380
|
-
if values["-ADDRESS-"].find(settings["domain"]) == -1:
|
|
381
|
-
window["-LABEL-"].update("Page not on selected domain!")
|
|
382
442
|
label_set = False
|
|
383
443
|
else:
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
)
|
|
388
|
-
|
|
389
|
-
jsondata = page.get_slot_content("jsondata")
|
|
390
|
-
if jsondata is None:
|
|
391
|
-
window["-LABEL-"].update("Slot 'jsondata' is empty!")
|
|
392
|
-
label_set = False
|
|
393
|
-
else:
|
|
394
|
-
label = jsondata["label"][0]["text"]
|
|
395
|
-
window["-LABEL-"].update(label)
|
|
396
|
-
label_set = True
|
|
444
|
+
full_page_name = values["-ADDRESS-"].split("/")[-1].replace("_", " ")
|
|
445
|
+
if (values["-ADDRESS-"].find("/wiki/") != -1) or (
|
|
446
|
+
values["-ADDRESS-"].find("/w/") != -1
|
|
447
|
+
):
|
|
448
|
+
settings["target_page"] = values["-ADDRESS-"]
|
|
397
449
|
else:
|
|
398
|
-
|
|
450
|
+
settings["target_page"] = (
|
|
451
|
+
"https://" + domain + "/wiki/" + full_page_name
|
|
452
|
+
)
|
|
453
|
+
if values["-ADDRESS-"].find(settings["domain"]) == -1:
|
|
454
|
+
window["-LABEL-"].update("Page not on selected domain!")
|
|
399
455
|
label_set = False
|
|
456
|
+
else:
|
|
457
|
+
# use connection
|
|
458
|
+
page = wtsite_obj.get_page(
|
|
459
|
+
WtSite.GetPageParam(titles=[full_page_name])
|
|
460
|
+
).pages[0]
|
|
461
|
+
if page.exists:
|
|
462
|
+
jsondata = page.get_slot_content("jsondata")
|
|
463
|
+
if jsondata is None:
|
|
464
|
+
window["-LABEL-"].update("Slot 'jsondata' is empty!")
|
|
465
|
+
label_set = False
|
|
466
|
+
else:
|
|
467
|
+
label = jsondata["label"][0]["text"]
|
|
468
|
+
window["-LABEL-"].update(label)
|
|
469
|
+
label_set = True
|
|
470
|
+
else:
|
|
471
|
+
window["-LABEL-"].update("Page does not exist!")
|
|
472
|
+
label_set = False
|
|
400
473
|
elif event == "-EXC_EMPTY-" or event == "-INC_EMPTY-":
|
|
401
474
|
settings["dump_empty_slots"] = values["-INC_EMPTY-"]
|
|
402
475
|
elif event == "-DL-":
|
|
403
476
|
window["-DL_RES-"].update("Downloading slots...")
|
|
404
477
|
if label_set:
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
478
|
+
try:
|
|
479
|
+
dump_config = create_config_from_setting(settings)
|
|
480
|
+
target_dir = compute_page_storage_path(
|
|
481
|
+
settings["local_working_directory"],
|
|
482
|
+
domain,
|
|
483
|
+
settings["page_name_as_filename"],
|
|
484
|
+
label,
|
|
485
|
+
full_page_name.split(":")[-1],
|
|
486
|
+
)
|
|
487
|
+
window["-DL_RES-"].update(
|
|
488
|
+
f"Clearing '{target_dir}' and downloading slots..."
|
|
489
|
+
)
|
|
490
|
+
# Look up the author for the selected domain, not the first
|
|
491
|
+
# one in the list, and degrade gracefully if there is no
|
|
492
|
+
# credential entry for it (e.g. empty accounts.pwd.yaml).
|
|
493
|
+
author = accounts.get(domain, {}).get("username")
|
|
494
|
+
if author is None:
|
|
495
|
+
window["-DL_RES-"].update(
|
|
496
|
+
f"No credentials found for domain '{domain}'; "
|
|
497
|
+
"using default author."
|
|
498
|
+
)
|
|
499
|
+
author = "Open Semantic World"
|
|
500
|
+
_ = save_as_page_package(
|
|
501
|
+
full_page_name_str=full_page_name,
|
|
502
|
+
wtsite_inst=wtsite_obj,
|
|
503
|
+
dump_config_inst=dump_config,
|
|
504
|
+
domain_str=domain,
|
|
505
|
+
label_str=label,
|
|
506
|
+
sub_level=SUB_LEVEL,
|
|
507
|
+
author=author,
|
|
508
|
+
)
|
|
509
|
+
slots_downloaded = True
|
|
510
|
+
window["-DL_RES-"].update("Slots downloaded!")
|
|
511
|
+
except Exception as e:
|
|
512
|
+
window["-DL_RES-"].update(f"{type(e).__name__}: {e}")
|
|
416
513
|
else:
|
|
417
514
|
window["-DL_RES-"].update("No page loaded!")
|
|
418
515
|
elif event == "-UL_SEL-":
|
|
@@ -434,29 +531,45 @@ if __name__ == "__main__":
|
|
|
434
531
|
elif len(slots_to_upload) == 0:
|
|
435
532
|
window["-UL_RES-"].update("No slots selected!")
|
|
436
533
|
else:
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
storage_path = Path(
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
debug=False,
|
|
534
|
+
try:
|
|
535
|
+
# Recompute the storage path the same way the download path
|
|
536
|
+
# does, instead of trusting a possibly stale dump_config.
|
|
537
|
+
# This also makes upload work against a folder written by a
|
|
538
|
+
# previous run, even if no download happened this session.
|
|
539
|
+
storage_path = Path(
|
|
540
|
+
compute_page_storage_path(
|
|
541
|
+
settings["local_working_directory"],
|
|
542
|
+
domain,
|
|
543
|
+
settings["page_name_as_filename"],
|
|
544
|
+
label,
|
|
545
|
+
full_page_name.split(":")[-1],
|
|
546
|
+
)
|
|
451
547
|
)
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
548
|
+
if not slots_downloaded:
|
|
549
|
+
window["-UL_RES-"].update(
|
|
550
|
+
"No slots downloaded this session, trying folder from a "
|
|
551
|
+
f"previous run at '{storage_path}'..."
|
|
552
|
+
)
|
|
553
|
+
else:
|
|
554
|
+
window["-UL_RES-"].update("Uploading slots...")
|
|
555
|
+
pages = wtsite_obj.read_page_package(
|
|
556
|
+
WtSite.ReadPagePackageParam(
|
|
557
|
+
storage_path=storage_path,
|
|
558
|
+
packages_info_file_name=PACKAGE_INFO_FILE_NAME,
|
|
559
|
+
selected_slots=slots_to_upload,
|
|
560
|
+
debug=False,
|
|
561
|
+
)
|
|
562
|
+
).pages
|
|
563
|
+
param = wtsite_obj.UploadPageParam(pages=pages, parallel=False)
|
|
564
|
+
wtsite_obj.upload_page(param)
|
|
565
|
+
# Success:
|
|
566
|
+
window["-UL_RES-"].update("Slots uploaded!")
|
|
567
|
+
# Report in the download section that the slots have been
|
|
568
|
+
# uploaded to remind the user that he eventually has to
|
|
569
|
+
# re-download the slots
|
|
570
|
+
window["-DL_RES-"].update("Slots uploaded!")
|
|
571
|
+
except Exception as e:
|
|
572
|
+
window["-UL_RES-"].update(f"{type(e).__name__}: {e}")
|
|
460
573
|
|
|
461
574
|
# Some debugging output functionality
|
|
462
575
|
if DEBUG:
|
|
@@ -3,12 +3,12 @@ name = "osw"
|
|
|
3
3
|
description = "Python toolset for data processing, queries, wikicode generation and page manipulation"
|
|
4
4
|
authors = [{ name = "OpenSemanticWorld", email = "team@opensemantic.world" }]
|
|
5
5
|
readme = "README.md"
|
|
6
|
-
license = "
|
|
6
|
+
license = "Apache-2.0"
|
|
7
7
|
license-files = ["LICENSE.txt"]
|
|
8
8
|
requires-python = ">=3.10,<3.14"
|
|
9
9
|
# Managed by python-semantic-release (see [tool.semantic_release]). Do not
|
|
10
10
|
# edit by hand; it is bumped automatically on merge to main.
|
|
11
|
-
version = "2.3.
|
|
11
|
+
version = "2.3.4"
|
|
12
12
|
classifiers = [
|
|
13
13
|
"Development Status :: 3 - Alpha",
|
|
14
14
|
"Intended Audience :: Developers",
|
|
@@ -68,7 +68,11 @@ dataimport = [
|
|
|
68
68
|
"deepl",
|
|
69
69
|
"openpyxl",
|
|
70
70
|
]
|
|
71
|
-
UI = [
|
|
71
|
+
UI = [
|
|
72
|
+
# PySimpleGUI 5 was commercial and its releases are yanked from PyPI.
|
|
73
|
+
# The LGPLv3 line resumed at version 6, which the GUI examples target.
|
|
74
|
+
"pysimplegui>=6",
|
|
75
|
+
]
|
|
72
76
|
workflow = [
|
|
73
77
|
"prefect>=2.20.25,<3.0",
|
|
74
78
|
# prefect 2.20.25 is the final 2.x release (no backports). Its
|