Skip to content

Commit

Permalink
cleaner generated simdata api client, fixed mypy errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jcschaff committed Nov 7, 2024
1 parent cb11036 commit 43341ea
Show file tree
Hide file tree
Showing 56 changed files with 5,805 additions and 22 deletions.
10 changes: 2 additions & 8 deletions .idea/biosim-client.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 23 additions & 0 deletions .openapi-generator-ignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# OpenAPI Generator Ignore
# Generated by openapi-generator https://github.com/openapitools/openapi-generator

# Use this file to prevent files from being overwritten by the generator.
# The patterns follow closely to .gitignore or .dockerignore.

# As an example, the C# client generator defines ApiClient.cs.
# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
#ApiClient.cs

# You can match any string of characters against a directory, file or extension with a single asterisk (*):
#foo/*/qux
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux

# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
#foo/**/qux
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux

# You can also negate patterns with an exclamation (!).
# For example, you can ignore all files in a docs folder with the file extension .md:
#docs/*.md
# Then explicitly reverse the ignore rule for a single file:
#!docs/README.md
48 changes: 48 additions & 0 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
.openapi-generator-ignore
biosim_client/__init__.py
biosim_client/simdata_api/__init__.py
biosim_client/simdata_api/api/__init__.py
biosim_client/simdata_api/api/default_api.py
biosim_client/simdata_api/api_client.py
biosim_client/simdata_api/api_response.py
biosim_client/simdata_api/configuration.py
biosim_client/simdata_api/docs/DatasetData.md
biosim_client/simdata_api/docs/DefaultApi.md
biosim_client/simdata_api/docs/HDF5Attribute.md
biosim_client/simdata_api/docs/HDF5Dataset.md
biosim_client/simdata_api/docs/HDF5File.md
biosim_client/simdata_api/docs/HDF5Group.md
biosim_client/simdata_api/docs/HTTPValidationError.md
biosim_client/simdata_api/docs/Status.md
biosim_client/simdata_api/docs/StatusResponse.md
biosim_client/simdata_api/docs/ValidationError.md
biosim_client/simdata_api/docs/ValidationErrorLocInner.md
biosim_client/simdata_api/docs/Value.md
biosim_client/simdata_api/exceptions.py
biosim_client/simdata_api/models/__init__.py
biosim_client/simdata_api/models/dataset_data.py
biosim_client/simdata_api/models/hdf5_attribute.py
biosim_client/simdata_api/models/hdf5_dataset.py
biosim_client/simdata_api/models/hdf5_file.py
biosim_client/simdata_api/models/hdf5_group.py
biosim_client/simdata_api/models/http_validation_error.py
biosim_client/simdata_api/models/status.py
biosim_client/simdata_api/models/status_response.py
biosim_client/simdata_api/models/validation_error.py
biosim_client/simdata_api/models/validation_error_loc_inner.py
biosim_client/simdata_api/models/value.py
biosim_client/simdata_api/rest.py
biosim_client/simdata_api/test/__init__.py
biosim_client/simdata_api/test/test_dataset_data.py
biosim_client/simdata_api/test/test_default_api.py
biosim_client/simdata_api/test/test_hdf5_attribute.py
biosim_client/simdata_api/test/test_hdf5_dataset.py
biosim_client/simdata_api/test/test_hdf5_file.py
biosim_client/simdata_api/test/test_hdf5_group.py
biosim_client/simdata_api/test/test_http_validation_error.py
biosim_client/simdata_api/test/test_status.py
biosim_client/simdata_api/test/test_status_response.py
biosim_client/simdata_api/test/test_validation_error.py
biosim_client/simdata_api/test/test_validation_error_loc_inner.py
biosim_client/simdata_api/test/test_value.py
biosim_client/simdata_api_README.md
1 change: 1 addition & 0 deletions .openapi-generator/VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
7.9.0
4 changes: 2 additions & 2 deletions biosim_client/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
import numpy as np
import pandas as pd

from biosim_client.api_clients.simdata.openapi_client.models.dataset_data import DatasetData
from biosim_client.api_clients.simdata.openapi_client.models.hdf5_dataset import HDF5Dataset
from biosim_client.simdata_api.models.dataset_data import DatasetData
from biosim_client.simdata_api.models.hdf5_dataset import HDF5Dataset

AttributeValueTypes = list[bool] | list[float] | list[int] | list[str] | bool | float | int | str
DatasetValueTypes = float | int
Expand Down
4 changes: 2 additions & 2 deletions biosim_client/sim_data.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from typing import Optional, get_args

import biosim_client.api_clients.simdata.openapi_client as simdata_client
from biosim_client.api_clients.simdata.openapi_client import HDF5File, DatasetData, HDF5Dataset, Configuration, \
import biosim_client.simdata_api as simdata_client
from biosim_client.simdata_api import HDF5File, DatasetData, HDF5Dataset, Configuration, \
HDF5Attribute
from biosim_client.dataset import Dataset, AttributeValueTypes

Expand Down
46 changes: 46 additions & 0 deletions biosim_client/simdata_api/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# coding: utf-8

# flake8: noqa

"""
simdata-api
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501


__version__ = "1.0.0"

# import apis into sdk package
from biosim_client.simdata_api.api.default_api import DefaultApi

# import ApiClient
from biosim_client.simdata_api.api_response import ApiResponse
from biosim_client.simdata_api.api_client import ApiClient
from biosim_client.simdata_api.configuration import Configuration
from biosim_client.simdata_api.exceptions import OpenApiException
from biosim_client.simdata_api.exceptions import ApiTypeError
from biosim_client.simdata_api.exceptions import ApiValueError
from biosim_client.simdata_api.exceptions import ApiKeyError
from biosim_client.simdata_api.exceptions import ApiAttributeError
from biosim_client.simdata_api.exceptions import ApiException

# import models into sdk package
from biosim_client.simdata_api.models.dataset_data import DatasetData
from biosim_client.simdata_api.models.hdf5_attribute import HDF5Attribute
from biosim_client.simdata_api.models.hdf5_dataset import HDF5Dataset
from biosim_client.simdata_api.models.hdf5_file import HDF5File
from biosim_client.simdata_api.models.hdf5_group import HDF5Group
from biosim_client.simdata_api.models.http_validation_error import HTTPValidationError
from biosim_client.simdata_api.models.status import Status
from biosim_client.simdata_api.models.status_response import StatusResponse
from biosim_client.simdata_api.models.validation_error import ValidationError
from biosim_client.simdata_api.models.validation_error_loc_inner import ValidationErrorLocInner
from biosim_client.simdata_api.models.value import Value

__all__ = ["DefaultApi", "Configuration", "DatasetData", "HDF5Attribute", "HDF5Dataset", "HDF5File", "StatusResponse"]
5 changes: 5 additions & 0 deletions biosim_client/simdata_api/api/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# flake8: noqa

# import apis into api package
from biosim_client.simdata_api.api.default_api import DefaultApi

Loading

0 comments on commit 43341ea

Please sign in to comment.