You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Roman Donchenko 3d9c5add94
SDK: fix string field serialization for multipart/form-data requests (#5479)
Django REST Framework ignores the Content-Type on request body parts, so
it doesn't know that they are JSON-encoded. Instead, it just tries to
decode each part as if it was an `str()`-encoded value.

Change the encoding to match the decoding. The only type this matters
for is `str`, because `json.dumps` and `str` produce different encodings
for `str` values.

Remove `none_type` from the list of encodable types since, to my
knowledge, there's no way to encode a `None` value as a
`multipart/form-data` part in a way that DRF will understand.
3 years ago
..
model_templates SDK layer 2 - cover RC1 usecases (#4813) 4 years ago
.openapi-generator-ignore Add 2nd layer of SDK (#19) 4 years ago
README.mustache Extend SDK layer 1 docs (#5011) 3 years ago
README_common.mustache Extend SDK layer 1 docs (#5011) 3 years ago
__init__.mustache Add CVAT SDK package (#7) 4 years ago
__init__api.mustache Add CVAT SDK package (#7) 4 years ago
__init__apis.mustache Add CVAT SDK package (#7) 4 years ago
__init__model.mustache Add CVAT SDK package (#7) 4 years ago
__init__models.mustache Add 2nd layer of SDK (#19) 4 years ago
__init__package.mustache Add 2nd layer of SDK (#19) 4 years ago
api.mustache Add 2nd layer of SDK (#19) 4 years ago
api_client.mustache SDK: fix string field serialization for multipart/form-data requests (#5479) 3 years ago
api_doc.mustache Extend SDK layer 1 docs (#5011) 3 years ago
api_doc_example.mustache Extend SDK layer 1 docs (#5011) 3 years ago
api_name.mustache Add CVAT SDK package (#7) 4 years ago
configuration.mustache Add SDK docs (#4928) 3 years ago
model.mustache SDK layer 2 - cover RC1 usecases (#4813) 4 years ago
model_doc.mustache Extend SDK layer 1 docs (#5011) 3 years ago
model_utils.mustache SDK layer 2 - cover RC1 usecases (#4813) 4 years ago
operation_name.mustache Add CVAT SDK package (#7) 4 years ago
partial_header.mustache Add CVAT SDK package (#7) 4 years ago
rest.mustache Add 2nd layer of SDK (#19) 4 years ago
return_type.mustache Add CVAT SDK package (#7) 4 years ago
setup.mustache SDK: make the dataset cache directory customizable (#5535) 3 years ago

README.mustache

# {{{projectName}}}
{{#appDescriptionWithNewLines}}
{{{.}}}
{{/appDescriptionWithNewLines}}

This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:

- API version: {{appVersion}}
- Package version: {{packageVersion}}
{{^hideGenerationTimestamp}}
- Build date: {{generatedDate}}
{{/hideGenerationTimestamp}}
- Build package: {{generatorClass}}
{{#infoUrl}}
For more information, please visit [{{{infoUrl}}}]({{{infoUrl}}})
{{/infoUrl}}

## Installation & Usage

To install a prebuilt package, run the following command in the terminal:

```sh
pip install cvat-sdk
```

To install from the local directory, follow [the developer guide](https://opencv.github.io/cvat/docs/api_sdk/sdk/developer_guide).

After installation you can import the package:

```python
import cvat_sdk
```

## Getting Started

{{> README_common }}