2
Makefile
2
Makefile
@ -15,7 +15,7 @@ generate: docker-image ## Generate the api client.
|
||||
--name python-generator \
|
||||
-v $(CURDIR):/usr/src \
|
||||
--workdir /usr/src \
|
||||
$(DOCKER_IMAGE_NAME) poetry run python generate/generate.py
|
||||
$(DOCKER_IMAGE_NAME) poetry run python generate/generate.py && poetry run autopep8 --in-place --aggressive --aggressive kittycad/models/*.py && autopep8 --in-place --aggressive --aggressive kittycad/api/*.py
|
||||
|
||||
.PHONY: shell
|
||||
shell: docker-image ## Pop into a shell in the docker image.
|
||||
|
@ -8,7 +8,6 @@ from ..types import UNSET, Unset
|
||||
|
||||
T = TypeVar("T", bound="AuthSession")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
class AuthSession:
|
||||
""" """
|
||||
@ -81,20 +80,19 @@ class AuthSession:
|
||||
|
||||
user_id = d.pop("user_id", UNSET)
|
||||
|
||||
|
||||
auth_session = cls(
|
||||
created_at=created_at,
|
||||
email=email,
|
||||
id=id,
|
||||
image=image,
|
||||
ip_address=ip_address,
|
||||
is_valid=is_valid,
|
||||
token=token,
|
||||
user_id=user_id,
|
||||
created_at= created_at,
|
||||
email= email,
|
||||
id= id,
|
||||
image= image,
|
||||
ip_address= ip_address,
|
||||
is_valid= is_valid,
|
||||
token= token,
|
||||
user_id= user_id,
|
||||
)
|
||||
|
||||
auth_session.additional_properties = d
|
||||
|
||||
|
||||
return auth_session
|
||||
|
||||
@property
|
||||
|
@ -6,7 +6,6 @@ from ..types import UNSET, Unset
|
||||
|
||||
T = TypeVar("T", bound="ErrorMessage")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
class ErrorMessage:
|
||||
""" """
|
||||
@ -42,15 +41,14 @@ class ErrorMessage:
|
||||
|
||||
status = d.pop("status", UNSET)
|
||||
|
||||
|
||||
error_message = cls(
|
||||
code=code,
|
||||
message=message,
|
||||
status=status,
|
||||
code= code,
|
||||
message= message,
|
||||
status= status,
|
||||
)
|
||||
|
||||
error_message.additional_properties = d
|
||||
|
||||
|
||||
return error_message
|
||||
|
||||
@property
|
||||
|
@ -11,7 +11,6 @@ from ..types import UNSET, Unset
|
||||
|
||||
T = TypeVar("T", bound="FileConversion")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
class FileConversion:
|
||||
""" """
|
||||
@ -119,20 +118,19 @@ class FileConversion:
|
||||
else:
|
||||
status = FileConversionStatus(_status)
|
||||
|
||||
|
||||
file_conversion = cls(
|
||||
completed_at=completed_at,
|
||||
created_at=created_at,
|
||||
id=id,
|
||||
output=output,
|
||||
output_format=output_format,
|
||||
src_format=src_format,
|
||||
started_at=started_at,
|
||||
status=status,
|
||||
completed_at= completed_at,
|
||||
created_at= created_at,
|
||||
id= id,
|
||||
output= output,
|
||||
output_format= output_format,
|
||||
src_format= src_format,
|
||||
started_at= started_at,
|
||||
status= status,
|
||||
)
|
||||
|
||||
file_conversion.additional_properties = d
|
||||
|
||||
|
||||
return file_conversion
|
||||
|
||||
@property
|
||||
|
@ -1,6 +1,5 @@
|
||||
from enum import Enum
|
||||
|
||||
|
||||
class FileConversionStatus(str, Enum):
|
||||
QUEUED = 'Queued'
|
||||
UPLOADED = 'Uploaded'
|
||||
|
@ -6,7 +6,6 @@ from ..types import UNSET, Unset
|
||||
|
||||
T = TypeVar("T", bound="GPUDevice")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
class GPUDevice:
|
||||
""" """
|
||||
@ -54,17 +53,16 @@ class GPUDevice:
|
||||
|
||||
peak_memory_bandwidth = d.pop("peak_memory_bandwidth", UNSET)
|
||||
|
||||
|
||||
gpu_device = cls(
|
||||
id=id,
|
||||
memory_bus_width=memory_bus_width,
|
||||
memory_clock_rate=memory_clock_rate,
|
||||
name=name,
|
||||
peak_memory_bandwidth=peak_memory_bandwidth,
|
||||
id= id,
|
||||
memory_bus_width= memory_bus_width,
|
||||
memory_clock_rate= memory_clock_rate,
|
||||
name= name,
|
||||
peak_memory_bandwidth= peak_memory_bandwidth,
|
||||
)
|
||||
|
||||
gpu_device.additional_properties = d
|
||||
|
||||
|
||||
return gpu_device
|
||||
|
||||
@property
|
||||
|
@ -7,7 +7,6 @@ from ..types import UNSET, Unset
|
||||
|
||||
T = TypeVar("T", bound="Instance")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
class Instance:
|
||||
""" """
|
||||
@ -98,23 +97,22 @@ class Instance:
|
||||
|
||||
zone = d.pop("zone", UNSET)
|
||||
|
||||
|
||||
instance = cls(
|
||||
cpu_platform=cpu_platform,
|
||||
description=description,
|
||||
environment=environment,
|
||||
git_hash=git_hash,
|
||||
hostname=hostname,
|
||||
id=id,
|
||||
image=image,
|
||||
ip_address=ip_address,
|
||||
machine_type=machine_type,
|
||||
name=name,
|
||||
zone=zone,
|
||||
cpu_platform= cpu_platform,
|
||||
description= description,
|
||||
environment= environment,
|
||||
git_hash= git_hash,
|
||||
hostname= hostname,
|
||||
id= id,
|
||||
image= image,
|
||||
ip_address= ip_address,
|
||||
machine_type= machine_type,
|
||||
name= name,
|
||||
zone= zone,
|
||||
)
|
||||
|
||||
instance.additional_properties = d
|
||||
|
||||
|
||||
return instance
|
||||
|
||||
@property
|
||||
|
@ -1,6 +1,5 @@
|
||||
from enum import Enum
|
||||
|
||||
|
||||
class PongEnum(str, Enum):
|
||||
PONG = 'pong'
|
||||
|
||||
|
@ -7,7 +7,6 @@ from ..types import UNSET, Unset
|
||||
|
||||
T = TypeVar("T", bound="PongMessage")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
class PongMessage:
|
||||
""" """
|
||||
@ -38,13 +37,12 @@ class PongMessage:
|
||||
else:
|
||||
message = PongEnum(_message)
|
||||
|
||||
|
||||
pong_message = cls(
|
||||
message=message,
|
||||
message= message,
|
||||
)
|
||||
|
||||
pong_message.additional_properties = d
|
||||
|
||||
|
||||
return pong_message
|
||||
|
||||
@property
|
||||
|
@ -1,6 +1,5 @@
|
||||
from enum import Enum
|
||||
|
||||
|
||||
class ServerEnv(str, Enum):
|
||||
PRODUCTION = 'production'
|
||||
DEVELOPMENT = 'development'
|
||||
|
@ -1,6 +1,5 @@
|
||||
from enum import Enum
|
||||
|
||||
|
||||
class ValidOutputFileFormat(str, Enum):
|
||||
STL = 'stl'
|
||||
OBJ = 'obj'
|
||||
|
@ -1,6 +1,5 @@
|
||||
from enum import Enum
|
||||
|
||||
|
||||
class ValidSourceFileFormat(str, Enum):
|
||||
STL = 'stl'
|
||||
OBJ = 'obj'
|
||||
|
@ -30,6 +30,7 @@ sphinx-automodapi = "^0.13"
|
||||
pytest-cov = "^3.0.0"
|
||||
pytest-asyncio = "^0.16.0"
|
||||
openapi-parser = "^0.2.6"
|
||||
autopep8 = "^1.6.0"
|
||||
|
||||
[build-system]
|
||||
requires = ["poetry>=1.0"]
|
||||
|
Reference in New Issue
Block a user