├── .bumpversion.cfg ├── .github └── workflows │ ├── CI.yaml │ ├── build-docs.yaml │ ├── publish_pypi.yaml │ └── release.yaml ├── .gitignore ├── .pre-commit-config.yaml ├── CHANGELOG.md ├── LICENSE.txt ├── README.md ├── docs ├── Makefile ├── make.bat └── source │ ├── CHANGELOG.md │ ├── _templates │ └── versioning.html │ ├── api │ ├── enums.md │ ├── exceptions.md │ ├── index.md │ ├── plexosdb.md │ ├── sqlite_manager.md │ ├── utils.md │ └── xml_handler.md │ ├── conf.py │ ├── howtos │ ├── add_attributes.md │ ├── add_objects.md │ ├── add_properties.md │ ├── add_reports.md │ ├── bulk_operations.md │ ├── copy_objects.md │ ├── create_db.md │ ├── delete_objects.md │ ├── import_export.md │ ├── index.md │ ├── manage_relationships.md │ ├── query_database.md │ ├── remove_non_ascii.md │ └── work_with_scenarios.md │ ├── index.md │ ├── installation.md │ └── tutorial.md ├── pyproject.toml ├── src └── plexosdb │ ├── __init__.py │ ├── __main__.py │ ├── checks.py │ ├── db.py │ ├── db_manager.py │ ├── enums.py │ ├── exceptions.py │ ├── py.typed │ ├── queries │ ├── object_properties.sql │ ├── object_query.sql │ ├── property.sql │ ├── property_query.sql │ └── simple_object_query.sql │ ├── schema.sql │ ├── utils.py │ └── xml_handler.py ├── tests ├── benchmark.py ├── benchmark_bulk_properties.py ├── benchmark_object_properties.py ├── conftest.py ├── data │ ├── master_files.zip │ └── plexosdb.xml ├── fixtures │ ├── __init__.py │ ├── csv_fixtures.py │ ├── example_dbs.py │ └── profiles.py ├── test_csv_fixtures.py ├── test_db_manager.py ├── test_db_manager_error_handling.py ├── test_db_manager_fetchone_dict.py ├── test_db_manager_insert_records.py ├── test_enums_functions.py ├── test_plexosdb.py ├── test_plexosdb_attributes.py ├── test_plexosdb_check_property_exists.py ├── test_plexosdb_checks.py ├── test_plexosdb_copy_object.py ├── test_plexosdb_copy_object_memberships.py ├── test_plexosdb_datafile_tag.py ├── test_plexosdb_delete_object.py ├── test_plexosdb_from_records.py ├── test_plexosdb_iterate_properties.py ├── test_plexosdb_list_methods.py ├── test_plexosdb_list_objects.py ├── test_plexosdb_list_update_methods.py ├── test_plexosdb_properties.py ├── test_plexosdb_reports.py ├── test_plexosdb_scenario.py ├── test_plexosdb_xml.py ├── test_utils.py ├── test_utils_build_data_id_map.py ├── test_utils_functions.py └── test_utils_properties.py └── uv.lock /.bumpversion.cfg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NREL/plexosdb/HEAD/.bumpversion.cfg -------------------------------------------------------------------------------- /.github/workflows/CI.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NREL/plexosdb/HEAD/.github/workflows/CI.yaml -------------------------------------------------------------------------------- /.github/workflows/build-docs.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NREL/plexosdb/HEAD/.github/workflows/build-docs.yaml -------------------------------------------------------------------------------- /.github/workflows/publish_pypi.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NREL/plexosdb/HEAD/.github/workflows/publish_pypi.yaml -------------------------------------------------------------------------------- /.github/workflows/release.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NREL/plexosdb/HEAD/.github/workflows/release.yaml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NREL/plexosdb/HEAD/.gitignore -------------------------------------------------------------------------------- /.pre-commit-config.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NREL/plexosdb/HEAD/.pre-commit-config.yaml -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NREL/plexosdb/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NREL/plexosdb/HEAD/LICENSE.txt -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NREL/plexosdb/HEAD/README.md -------------------------------------------------------------------------------- /docs/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NREL/plexosdb/HEAD/docs/Makefile -------------------------------------------------------------------------------- /docs/make.bat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NREL/plexosdb/HEAD/docs/make.bat -------------------------------------------------------------------------------- /docs/source/CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NREL/plexosdb/HEAD/docs/source/CHANGELOG.md -------------------------------------------------------------------------------- /docs/source/_templates/versioning.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NREL/plexosdb/HEAD/docs/source/_templates/versioning.html -------------------------------------------------------------------------------- /docs/source/api/enums.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NREL/plexosdb/HEAD/docs/source/api/enums.md -------------------------------------------------------------------------------- /docs/source/api/exceptions.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NREL/plexosdb/HEAD/docs/source/api/exceptions.md -------------------------------------------------------------------------------- /docs/source/api/index.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NREL/plexosdb/HEAD/docs/source/api/index.md -------------------------------------------------------------------------------- /docs/source/api/plexosdb.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NREL/plexosdb/HEAD/docs/source/api/plexosdb.md -------------------------------------------------------------------------------- /docs/source/api/sqlite_manager.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NREL/plexosdb/HEAD/docs/source/api/sqlite_manager.md -------------------------------------------------------------------------------- /docs/source/api/utils.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NREL/plexosdb/HEAD/docs/source/api/utils.md -------------------------------------------------------------------------------- /docs/source/api/xml_handler.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NREL/plexosdb/HEAD/docs/source/api/xml_handler.md -------------------------------------------------------------------------------- /docs/source/conf.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NREL/plexosdb/HEAD/docs/source/conf.py -------------------------------------------------------------------------------- /docs/source/howtos/add_attributes.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NREL/plexosdb/HEAD/docs/source/howtos/add_attributes.md -------------------------------------------------------------------------------- /docs/source/howtos/add_objects.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NREL/plexosdb/HEAD/docs/source/howtos/add_objects.md -------------------------------------------------------------------------------- /docs/source/howtos/add_properties.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NREL/plexosdb/HEAD/docs/source/howtos/add_properties.md -------------------------------------------------------------------------------- /docs/source/howtos/add_reports.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NREL/plexosdb/HEAD/docs/source/howtos/add_reports.md -------------------------------------------------------------------------------- /docs/source/howtos/bulk_operations.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NREL/plexosdb/HEAD/docs/source/howtos/bulk_operations.md -------------------------------------------------------------------------------- /docs/source/howtos/copy_objects.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NREL/plexosdb/HEAD/docs/source/howtos/copy_objects.md -------------------------------------------------------------------------------- /docs/source/howtos/create_db.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NREL/plexosdb/HEAD/docs/source/howtos/create_db.md -------------------------------------------------------------------------------- /docs/source/howtos/delete_objects.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NREL/plexosdb/HEAD/docs/source/howtos/delete_objects.md -------------------------------------------------------------------------------- /docs/source/howtos/import_export.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NREL/plexosdb/HEAD/docs/source/howtos/import_export.md -------------------------------------------------------------------------------- /docs/source/howtos/index.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NREL/plexosdb/HEAD/docs/source/howtos/index.md -------------------------------------------------------------------------------- /docs/source/howtos/manage_relationships.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NREL/plexosdb/HEAD/docs/source/howtos/manage_relationships.md -------------------------------------------------------------------------------- /docs/source/howtos/query_database.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NREL/plexosdb/HEAD/docs/source/howtos/query_database.md -------------------------------------------------------------------------------- /docs/source/howtos/remove_non_ascii.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NREL/plexosdb/HEAD/docs/source/howtos/remove_non_ascii.md -------------------------------------------------------------------------------- /docs/source/howtos/work_with_scenarios.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NREL/plexosdb/HEAD/docs/source/howtos/work_with_scenarios.md -------------------------------------------------------------------------------- /docs/source/index.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NREL/plexosdb/HEAD/docs/source/index.md -------------------------------------------------------------------------------- /docs/source/installation.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NREL/plexosdb/HEAD/docs/source/installation.md -------------------------------------------------------------------------------- /docs/source/tutorial.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NREL/plexosdb/HEAD/docs/source/tutorial.md -------------------------------------------------------------------------------- /pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NREL/plexosdb/HEAD/pyproject.toml -------------------------------------------------------------------------------- /src/plexosdb/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NREL/plexosdb/HEAD/src/plexosdb/__init__.py -------------------------------------------------------------------------------- /src/plexosdb/__main__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/plexosdb/checks.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NREL/plexosdb/HEAD/src/plexosdb/checks.py -------------------------------------------------------------------------------- /src/plexosdb/db.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NREL/plexosdb/HEAD/src/plexosdb/db.py -------------------------------------------------------------------------------- /src/plexosdb/db_manager.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NREL/plexosdb/HEAD/src/plexosdb/db_manager.py -------------------------------------------------------------------------------- /src/plexosdb/enums.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NREL/plexosdb/HEAD/src/plexosdb/enums.py -------------------------------------------------------------------------------- /src/plexosdb/exceptions.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NREL/plexosdb/HEAD/src/plexosdb/exceptions.py -------------------------------------------------------------------------------- /src/plexosdb/py.typed: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/plexosdb/queries/object_properties.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NREL/plexosdb/HEAD/src/plexosdb/queries/object_properties.sql -------------------------------------------------------------------------------- /src/plexosdb/queries/object_query.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NREL/plexosdb/HEAD/src/plexosdb/queries/object_query.sql -------------------------------------------------------------------------------- /src/plexosdb/queries/property.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NREL/plexosdb/HEAD/src/plexosdb/queries/property.sql -------------------------------------------------------------------------------- /src/plexosdb/queries/property_query.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NREL/plexosdb/HEAD/src/plexosdb/queries/property_query.sql -------------------------------------------------------------------------------- /src/plexosdb/queries/simple_object_query.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NREL/plexosdb/HEAD/src/plexosdb/queries/simple_object_query.sql -------------------------------------------------------------------------------- /src/plexosdb/schema.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NREL/plexosdb/HEAD/src/plexosdb/schema.sql -------------------------------------------------------------------------------- /src/plexosdb/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NREL/plexosdb/HEAD/src/plexosdb/utils.py -------------------------------------------------------------------------------- /src/plexosdb/xml_handler.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NREL/plexosdb/HEAD/src/plexosdb/xml_handler.py -------------------------------------------------------------------------------- /tests/benchmark.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NREL/plexosdb/HEAD/tests/benchmark.py -------------------------------------------------------------------------------- /tests/benchmark_bulk_properties.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NREL/plexosdb/HEAD/tests/benchmark_bulk_properties.py -------------------------------------------------------------------------------- /tests/benchmark_object_properties.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NREL/plexosdb/HEAD/tests/benchmark_object_properties.py -------------------------------------------------------------------------------- /tests/conftest.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NREL/plexosdb/HEAD/tests/conftest.py -------------------------------------------------------------------------------- /tests/data/master_files.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NREL/plexosdb/HEAD/tests/data/master_files.zip -------------------------------------------------------------------------------- /tests/data/plexosdb.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NREL/plexosdb/HEAD/tests/data/plexosdb.xml -------------------------------------------------------------------------------- /tests/fixtures/__init__.py: -------------------------------------------------------------------------------- 1 | """Fixtures used for testing.""" 2 | -------------------------------------------------------------------------------- /tests/fixtures/csv_fixtures.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NREL/plexosdb/HEAD/tests/fixtures/csv_fixtures.py -------------------------------------------------------------------------------- /tests/fixtures/example_dbs.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NREL/plexosdb/HEAD/tests/fixtures/example_dbs.py -------------------------------------------------------------------------------- /tests/fixtures/profiles.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NREL/plexosdb/HEAD/tests/fixtures/profiles.py -------------------------------------------------------------------------------- /tests/test_csv_fixtures.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NREL/plexosdb/HEAD/tests/test_csv_fixtures.py -------------------------------------------------------------------------------- /tests/test_db_manager.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NREL/plexosdb/HEAD/tests/test_db_manager.py -------------------------------------------------------------------------------- /tests/test_db_manager_error_handling.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NREL/plexosdb/HEAD/tests/test_db_manager_error_handling.py -------------------------------------------------------------------------------- /tests/test_db_manager_fetchone_dict.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NREL/plexosdb/HEAD/tests/test_db_manager_fetchone_dict.py -------------------------------------------------------------------------------- /tests/test_db_manager_insert_records.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NREL/plexosdb/HEAD/tests/test_db_manager_insert_records.py -------------------------------------------------------------------------------- /tests/test_enums_functions.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NREL/plexosdb/HEAD/tests/test_enums_functions.py -------------------------------------------------------------------------------- /tests/test_plexosdb.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NREL/plexosdb/HEAD/tests/test_plexosdb.py -------------------------------------------------------------------------------- /tests/test_plexosdb_attributes.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NREL/plexosdb/HEAD/tests/test_plexosdb_attributes.py -------------------------------------------------------------------------------- /tests/test_plexosdb_check_property_exists.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NREL/plexosdb/HEAD/tests/test_plexosdb_check_property_exists.py -------------------------------------------------------------------------------- /tests/test_plexosdb_checks.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NREL/plexosdb/HEAD/tests/test_plexosdb_checks.py -------------------------------------------------------------------------------- /tests/test_plexosdb_copy_object.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NREL/plexosdb/HEAD/tests/test_plexosdb_copy_object.py -------------------------------------------------------------------------------- /tests/test_plexosdb_copy_object_memberships.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NREL/plexosdb/HEAD/tests/test_plexosdb_copy_object_memberships.py -------------------------------------------------------------------------------- /tests/test_plexosdb_datafile_tag.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NREL/plexosdb/HEAD/tests/test_plexosdb_datafile_tag.py -------------------------------------------------------------------------------- /tests/test_plexosdb_delete_object.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NREL/plexosdb/HEAD/tests/test_plexosdb_delete_object.py -------------------------------------------------------------------------------- /tests/test_plexosdb_from_records.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NREL/plexosdb/HEAD/tests/test_plexosdb_from_records.py -------------------------------------------------------------------------------- /tests/test_plexosdb_iterate_properties.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NREL/plexosdb/HEAD/tests/test_plexosdb_iterate_properties.py -------------------------------------------------------------------------------- /tests/test_plexosdb_list_methods.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NREL/plexosdb/HEAD/tests/test_plexosdb_list_methods.py -------------------------------------------------------------------------------- /tests/test_plexosdb_list_objects.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NREL/plexosdb/HEAD/tests/test_plexosdb_list_objects.py -------------------------------------------------------------------------------- /tests/test_plexosdb_list_update_methods.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NREL/plexosdb/HEAD/tests/test_plexosdb_list_update_methods.py -------------------------------------------------------------------------------- /tests/test_plexosdb_properties.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NREL/plexosdb/HEAD/tests/test_plexosdb_properties.py -------------------------------------------------------------------------------- /tests/test_plexosdb_reports.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NREL/plexosdb/HEAD/tests/test_plexosdb_reports.py -------------------------------------------------------------------------------- /tests/test_plexosdb_scenario.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NREL/plexosdb/HEAD/tests/test_plexosdb_scenario.py -------------------------------------------------------------------------------- /tests/test_plexosdb_xml.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NREL/plexosdb/HEAD/tests/test_plexosdb_xml.py -------------------------------------------------------------------------------- /tests/test_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NREL/plexosdb/HEAD/tests/test_utils.py -------------------------------------------------------------------------------- /tests/test_utils_build_data_id_map.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NREL/plexosdb/HEAD/tests/test_utils_build_data_id_map.py -------------------------------------------------------------------------------- /tests/test_utils_functions.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NREL/plexosdb/HEAD/tests/test_utils_functions.py -------------------------------------------------------------------------------- /tests/test_utils_properties.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NREL/plexosdb/HEAD/tests/test_utils_properties.py -------------------------------------------------------------------------------- /uv.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NREL/plexosdb/HEAD/uv.lock --------------------------------------------------------------------------------