-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8f18978
commit 5d0ebdd
Showing
91 changed files
with
445 additions
and
256 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# ref: https://docs.gitlab.com/ee/ci/README.html | ||
|
||
stages: | ||
- test | ||
|
||
.nosetest: | ||
stage: test | ||
script: | ||
- pip install -r requirements.txt | ||
- pip install -r test-requirements.txt | ||
- pytest --cov=carbon3d | ||
|
||
nosetest-2.7: | ||
extends: .nosetest | ||
image: python:2.7-alpine | ||
nosetest-3.3: | ||
extends: .nosetest | ||
image: python:3.3-alpine | ||
nosetest-3.4: | ||
extends: .nosetest | ||
image: python:3.4-alpine | ||
nosetest-3.5: | ||
extends: .nosetest | ||
image: python:3.5-alpine | ||
nosetest-3.6: | ||
extends: .nosetest | ||
image: python:3.6-alpine | ||
nosetest-3.7: | ||
extends: .nosetest | ||
image: python:3.7-alpine | ||
nosetest-3.8: | ||
extends: .nosetest | ||
image: python:3.8-alpine |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
4.2.3 | ||
4.3.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,15 +7,15 @@ | |
Welcome to the Carbon DLS API docs! A Carbon DLS API token ([JWT](https://en.wikipedia.org/wiki/JSON_Web_Token)) must be included with each request to the API. Steps to create API tokens: - Create and download an API key [here](https://print.carbon3d.com/api_keys) - For testing: Generate JWT tokens using the [token generator](/token_generator) - For production: Generate JWT tokens dynamically (<em>see authtoken-create.py example</em>) - A valid Carbon API token must be included as <code>Authorization: Bearer [token]</code> HTTP header. This API provides a programmatic interface for submitting part (and soon build) orders. The general process for creating an order is as follows: - Upload model files to the API with the [/models](#/Models) endpoint - Create parts that reference a model and a part number with the [/parts](#/Parts) endpoint - Part numbers can be created [here](https://print.carbon3d.com/catalog_parts) - Create an order with the [/orders](#/Orders) endpoint Uploaded models, parts and orders can be retrieved either in bulk or by UUID at the [/models](#/Models), [/parts](#/Parts) and [/orders](#/Orders) endpoints, respectively. Once a part order is submitted, automatic packing will create one or more builds (for mass-customization applications only). Builds can be retrieved either in bulk or by UUID at the [/builds](#/Builds) endpoint. - Build attachments (traveler, slice video) can be retrieved by UUID at the [/attachments](#/Attachments) endpoint. This API also provides a programmatic interface to access [printer](#/Printers) (fleet) status and query for [prints](#/Prints). # noqa: E501 | ||
The version of the OpenAPI document: 0.0.3 | ||
The version of the OpenAPI document: 0.0.4 | ||
Contact: [email protected] | ||
Generated by: https://openapi-generator.tech | ||
""" | ||
|
||
|
||
from __future__ import absolute_import | ||
|
||
__version__ = "0.0.3" | ||
__version__ = "0.0.4" | ||
|
||
# import apis into sdk package | ||
from carbon3d.api.attachments_api import AttachmentsApi | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
Welcome to the Carbon DLS API docs! A Carbon DLS API token ([JWT](https://en.wikipedia.org/wiki/JSON_Web_Token)) must be included with each request to the API. Steps to create API tokens: - Create and download an API key [here](https://print.carbon3d.com/api_keys) - For testing: Generate JWT tokens using the [token generator](/token_generator) - For production: Generate JWT tokens dynamically (<em>see authtoken-create.py example</em>) - A valid Carbon API token must be included as <code>Authorization: Bearer [token]</code> HTTP header. This API provides a programmatic interface for submitting part (and soon build) orders. The general process for creating an order is as follows: - Upload model files to the API with the [/models](#/Models) endpoint - Create parts that reference a model and a part number with the [/parts](#/Parts) endpoint - Part numbers can be created [here](https://print.carbon3d.com/catalog_parts) - Create an order with the [/orders](#/Orders) endpoint Uploaded models, parts and orders can be retrieved either in bulk or by UUID at the [/models](#/Models), [/parts](#/Parts) and [/orders](#/Orders) endpoints, respectively. Once a part order is submitted, automatic packing will create one or more builds (for mass-customization applications only). Builds can be retrieved either in bulk or by UUID at the [/builds](#/Builds) endpoint. - Build attachments (traveler, slice video) can be retrieved by UUID at the [/attachments](#/Attachments) endpoint. This API also provides a programmatic interface to access [printer](#/Printers) (fleet) status and query for [prints](#/Prints). # noqa: E501 | ||
The version of the OpenAPI document: 0.0.3 | ||
The version of the OpenAPI document: 0.0.4 | ||
Contact: [email protected] | ||
Generated by: https://openapi-generator.tech | ||
""" | ||
|
@@ -19,7 +19,7 @@ | |
import six | ||
|
||
from carbon3d.api_client import ApiClient | ||
from carbon3d.exceptions import ( | ||
from carbon3d.exceptions import ( # noqa: F401 | ||
ApiTypeError, | ||
ApiValueError | ||
) | ||
|
@@ -89,11 +89,17 @@ def get_attachment_with_http_info(self, uuid, **kwargs): # noqa: E501 | |
|
||
local_var_params = locals() | ||
|
||
all_params = ['uuid'] # noqa: E501 | ||
all_params.append('async_req') | ||
all_params.append('_return_http_data_only') | ||
all_params.append('_preload_content') | ||
all_params.append('_request_timeout') | ||
all_params = [ | ||
'uuid' | ||
] | ||
all_params.extend( | ||
[ | ||
'async_req', | ||
'_return_http_data_only', | ||
'_preload_content', | ||
'_request_timeout' | ||
] | ||
) | ||
|
||
for key, val in six.iteritems(local_var_params['kwargs']): | ||
if key not in all_params: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
Welcome to the Carbon DLS API docs! A Carbon DLS API token ([JWT](https://en.wikipedia.org/wiki/JSON_Web_Token)) must be included with each request to the API. Steps to create API tokens: - Create and download an API key [here](https://print.carbon3d.com/api_keys) - For testing: Generate JWT tokens using the [token generator](/token_generator) - For production: Generate JWT tokens dynamically (<em>see authtoken-create.py example</em>) - A valid Carbon API token must be included as <code>Authorization: Bearer [token]</code> HTTP header. This API provides a programmatic interface for submitting part (and soon build) orders. The general process for creating an order is as follows: - Upload model files to the API with the [/models](#/Models) endpoint - Create parts that reference a model and a part number with the [/parts](#/Parts) endpoint - Part numbers can be created [here](https://print.carbon3d.com/catalog_parts) - Create an order with the [/orders](#/Orders) endpoint Uploaded models, parts and orders can be retrieved either in bulk or by UUID at the [/models](#/Models), [/parts](#/Parts) and [/orders](#/Orders) endpoints, respectively. Once a part order is submitted, automatic packing will create one or more builds (for mass-customization applications only). Builds can be retrieved either in bulk or by UUID at the [/builds](#/Builds) endpoint. - Build attachments (traveler, slice video) can be retrieved by UUID at the [/attachments](#/Attachments) endpoint. This API also provides a programmatic interface to access [printer](#/Printers) (fleet) status and query for [prints](#/Prints). # noqa: E501 | ||
The version of the OpenAPI document: 0.0.3 | ||
The version of the OpenAPI document: 0.0.4 | ||
Contact: [email protected] | ||
Generated by: https://openapi-generator.tech | ||
""" | ||
|
@@ -19,7 +19,7 @@ | |
import six | ||
|
||
from carbon3d.api_client import ApiClient | ||
from carbon3d.exceptions import ( | ||
from carbon3d.exceptions import ( # noqa: F401 | ||
ApiTypeError, | ||
ApiValueError | ||
) | ||
|
@@ -89,11 +89,17 @@ def get_build_with_http_info(self, uuid, **kwargs): # noqa: E501 | |
|
||
local_var_params = locals() | ||
|
||
all_params = ['uuid'] # noqa: E501 | ||
all_params.append('async_req') | ||
all_params.append('_return_http_data_only') | ||
all_params.append('_preload_content') | ||
all_params.append('_request_timeout') | ||
all_params = [ | ||
'uuid' | ||
] | ||
all_params.extend( | ||
[ | ||
'async_req', | ||
'_return_http_data_only', | ||
'_preload_content', | ||
'_request_timeout' | ||
] | ||
) | ||
|
||
for key, val in six.iteritems(local_var_params['kwargs']): | ||
if key not in all_params: | ||
|
@@ -201,11 +207,19 @@ def get_builds_with_http_info(self, limit, offset, **kwargs): # noqa: E501 | |
|
||
local_var_params = locals() | ||
|
||
all_params = ['limit', 'offset', 'sort'] # noqa: E501 | ||
all_params.append('async_req') | ||
all_params.append('_return_http_data_only') | ||
all_params.append('_preload_content') | ||
all_params.append('_request_timeout') | ||
all_params = [ | ||
'limit', | ||
'offset', | ||
'sort' | ||
] | ||
all_params.extend( | ||
[ | ||
'async_req', | ||
'_return_http_data_only', | ||
'_preload_content', | ||
'_request_timeout' | ||
] | ||
) | ||
|
||
for key, val in six.iteritems(local_var_params['kwargs']): | ||
if key not in all_params: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
Welcome to the Carbon DLS API docs! A Carbon DLS API token ([JWT](https://en.wikipedia.org/wiki/JSON_Web_Token)) must be included with each request to the API. Steps to create API tokens: - Create and download an API key [here](https://print.carbon3d.com/api_keys) - For testing: Generate JWT tokens using the [token generator](/token_generator) - For production: Generate JWT tokens dynamically (<em>see authtoken-create.py example</em>) - A valid Carbon API token must be included as <code>Authorization: Bearer [token]</code> HTTP header. This API provides a programmatic interface for submitting part (and soon build) orders. The general process for creating an order is as follows: - Upload model files to the API with the [/models](#/Models) endpoint - Create parts that reference a model and a part number with the [/parts](#/Parts) endpoint - Part numbers can be created [here](https://print.carbon3d.com/catalog_parts) - Create an order with the [/orders](#/Orders) endpoint Uploaded models, parts and orders can be retrieved either in bulk or by UUID at the [/models](#/Models), [/parts](#/Parts) and [/orders](#/Orders) endpoints, respectively. Once a part order is submitted, automatic packing will create one or more builds (for mass-customization applications only). Builds can be retrieved either in bulk or by UUID at the [/builds](#/Builds) endpoint. - Build attachments (traveler, slice video) can be retrieved by UUID at the [/attachments](#/Attachments) endpoint. This API also provides a programmatic interface to access [printer](#/Printers) (fleet) status and query for [prints](#/Prints). # noqa: E501 | ||
The version of the OpenAPI document: 0.0.3 | ||
The version of the OpenAPI document: 0.0.4 | ||
Contact: [email protected] | ||
Generated by: https://openapi-generator.tech | ||
""" | ||
|
@@ -19,7 +19,7 @@ | |
import six | ||
|
||
from carbon3d.api_client import ApiClient | ||
from carbon3d.exceptions import ( | ||
from carbon3d.exceptions import ( # noqa: F401 | ||
ApiTypeError, | ||
ApiValueError | ||
) | ||
|
@@ -89,11 +89,17 @@ def get_model_with_http_info(self, uuid, **kwargs): # noqa: E501 | |
|
||
local_var_params = locals() | ||
|
||
all_params = ['uuid'] # noqa: E501 | ||
all_params.append('async_req') | ||
all_params.append('_return_http_data_only') | ||
all_params.append('_preload_content') | ||
all_params.append('_request_timeout') | ||
all_params = [ | ||
'uuid' | ||
] | ||
all_params.extend( | ||
[ | ||
'async_req', | ||
'_return_http_data_only', | ||
'_preload_content', | ||
'_request_timeout' | ||
] | ||
) | ||
|
||
for key, val in six.iteritems(local_var_params['kwargs']): | ||
if key not in all_params: | ||
|
@@ -203,11 +209,20 @@ def get_models_with_http_info(self, limit, offset, **kwargs): # noqa: E501 | |
|
||
local_var_params = locals() | ||
|
||
all_params = ['limit', 'offset', 'filename', 'sort'] # noqa: E501 | ||
all_params.append('async_req') | ||
all_params.append('_return_http_data_only') | ||
all_params.append('_preload_content') | ||
all_params.append('_request_timeout') | ||
all_params = [ | ||
'limit', | ||
'offset', | ||
'filename', | ||
'sort' | ||
] | ||
all_params.extend( | ||
[ | ||
'async_req', | ||
'_return_http_data_only', | ||
'_preload_content', | ||
'_request_timeout' | ||
] | ||
) | ||
|
||
for key, val in six.iteritems(local_var_params['kwargs']): | ||
if key not in all_params: | ||
|
@@ -332,11 +347,19 @@ def upload_model_with_http_info(self, filename, **kwargs): # noqa: E501 | |
|
||
local_var_params = locals() | ||
|
||
all_params = ['filename', 'application_id', 'body'] # noqa: E501 | ||
all_params.append('async_req') | ||
all_params.append('_return_http_data_only') | ||
all_params.append('_preload_content') | ||
all_params.append('_request_timeout') | ||
all_params = [ | ||
'filename', | ||
'application_id', | ||
'body' | ||
] | ||
all_params.extend( | ||
[ | ||
'async_req', | ||
'_return_http_data_only', | ||
'_preload_content', | ||
'_request_timeout' | ||
] | ||
) | ||
|
||
for key, val in six.iteritems(local_var_params['kwargs']): | ||
if key not in all_params: | ||
|
Oops, something went wrong.