Skip to content

Commit 07c27aa

Browse files
authored
Merge pull request #6 from shotstack/remove-defaults-and-requireds
Remove defaults and requireds
2 parents 964a1cc + 3f5bf19 commit 07c27aa

22 files changed

+119
-170
lines changed

patches/model_utils.patch

Lines changed: 0 additions & 25 deletions
This file was deleted.

patches/render_response_data.patch

Lines changed: 0 additions & 13 deletions
This file was deleted.

setup.py

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,7 @@
1-
"""
2-
Shotstack
3-
4-
Shotstack is a video, image and audio editing service that allows for the automated generation of videos, images and audio using JSON and a RESTful API. You arrange and configure an edit and POST it to the API which will render your media and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.gitbook.io/docs/guides/getting-started) documentation. There are two main API's, one for editing and generating assets (Edit API) and one for managing hosted assets (Serve API). The Edit API base URL is: <b>https://api.shotstack.io/{version}</b> The Serve API base URL is: <b>https://api.shotstack.io/serve/{version}</b> # noqa: E501
5-
6-
The version of the OpenAPI document: v1
7-
Generated by: https://openapi-generator.tech
8-
"""
9-
10-
111
from setuptools import setup, find_packages # noqa: H301
122

133
NAME = "shotstack-sdk"
14-
VERSION = "0.2.2"
4+
VERSION = "0.2.5"
155
# To install the library, run the following
166
#
177
# python setup.py install
@@ -30,13 +20,21 @@
3020
description="Shotstack",
3121
author="Shotstack",
3222
author_email="[email protected]",
33-
url="https://shotstack.io",
34-
keywords=["Shotstack"],
23+
url="https://shotstack.io/product/sdk/python/",
24+
keywords=["shotstack", "video", "video editing", "video editor", "video editing api", "video generation", "video manipulation", "ffmpeg"],
3525
python_requires=">=3.6",
3626
install_requires=REQUIRES,
3727
packages=find_packages(exclude=["test", "tests"]),
3828
include_package_data=True,
29+
long_description_content_type="text/markdown",
3930
long_description="""\
40-
Shotstack is a video, image and audio editing service that allows for the automated generation of videos, images and audio using JSON and a RESTful API. You arrange and configure an edit and POST it to the API which will render your media and provide a file location when complete. For more details visit [shotstack.io](https://shotstack.io) or checkout our [getting started](https://shotstack.gitbook.io/docs/guides/getting-started) documentation. There are two main API&#39;s, one for editing and generating assets (Edit API) and one for managing hosted assets (Serve API). The Edit API base URL is: &lt;b&gt;https://api.shotstack.io/{version}&lt;/b&gt; The Serve API base URL is: &lt;b&gt;https://api.shotstack.io/serve/{version}&lt;/b&gt; # noqa: E501
31+
Shotstack is a video, image and audio editing service that allows for the automated generation of videos, images and audio using JSON
32+
and a RESTful API. You arrange and configure an edit and POST it to the API which will render your media and provide a file
33+
location when complete.
34+
35+
For more details visit [shotstack.io](https://shotstack.io) or checkout our
36+
[getting started](https://shotstack.gitbook.io/docs/guides/getting-started) documentation.
37+
38+
View the GitHub repo for full [SDK documentation](https://github.com/shotstack/shotstack-sdk-python/).
4139
"""
4240
)

shotstack_sdk/model/asset.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -225,13 +225,13 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
225225
through its discriminator because we passed in
226226
_visited_composed_classes = (Animal,)
227227
trim (float): The start trim point of the luma matte clip, in seconds (defaults to 0). Videos will start from the in trim point. A luma matte video will play until the file ends or the Clip length is reached.. [optional] # noqa: E501
228-
volume (float): Set the volume for the audio clip between 0 and 1 where 0 is muted and 1 is full volume (defaults to 1).. [optional] if omitted the server will use the default value of 1 # noqa: E501
228+
volume (float): Set the volume for the audio clip between 0 and 1 where 0 is muted and 1 is full volume (defaults to 1).. [optional] # noqa: E501
229229
crop (Crop): [optional] # noqa: E501
230230
style (str): Uses a preset to apply font properties and styling to the title. <ul> <li>`minimal`</li> <li>`blockbuster`</li> <li>`vogue`</li> <li>`sketchy`</li> <li>`skinny`</li> <li>`chunk`</li> <li>`chunkLight`</li> <li>`marker`</li> <li>`future`</li> <li>`subtitle`</li> </ul>. [optional] # noqa: E501
231-
color (str): Set the text color using hexadecimal color notation. Transparency is supported by setting the first two characters of the hex string (opposite to HTML), i.e. #80ffffff will be white with 50% transparency.. [optional] if omitted the server will use the default value of "#ffffff" # noqa: E501
232-
size (str): Set the relative size of the text using predefined sizes from xx-small to xx-large. <ul> <li>`xx-small`</li> <li>`x-small`</li> <li>`small`</li> <li>`medium`</li> <li>`large`</li> <li>`x-large`</li> <li>`xx-large`</li> </ul>. [optional] if omitted the server will use the default value of "medium" # noqa: E501
233-
background (str): Apply a background color behind the HTML bounding box using. Set the text color using hexadecimal color notation. Transparency is supported by setting the first two characters of the hex string (opposite to HTML), i.e. #80ffffff will be white with 50% transparency.. [optional] if omitted the server will use the default value of "transparent" # noqa: E501
234-
position (str): Place the HTML in one of nine predefined positions within the HTML area. <ul> <li>`top` - top (center)</li> <li>`topRight` - top right</li> <li>`right` - right (center)</li> <li>`bottomRight` - bottom right</li> <li>`bottom` - bottom (center)</li> <li>`bottomLeft` - bottom left</li> <li>`left` - left (center)</li> <li>`topLeft` - top left</li> <li>`center` - center</li> </ul>. [optional] if omitted the server will use the default value of "center" # noqa: E501
231+
color (str): Set the text color using hexadecimal color notation. Transparency is supported by setting the first two characters of the hex string (opposite to HTML), i.e. #80ffffff will be white with 50% transparency.. [optional] # noqa: E501
232+
size (str): Set the relative size of the text using predefined sizes from xx-small to xx-large. <ul> <li>`xx-small`</li> <li>`x-small`</li> <li>`small`</li> <li>`medium`</li> <li>`large`</li> <li>`x-large`</li> <li>`xx-large`</li> </ul>. [optional] # noqa: E501
233+
background (str): Apply a background color behind the HTML bounding box using. Set the text color using hexadecimal color notation. Transparency is supported by setting the first two characters of the hex string (opposite to HTML), i.e. #80ffffff will be white with 50% transparency.. [optional] # noqa: E501
234+
position (str): Place the HTML in one of nine predefined positions within the HTML area. <ul> <li>`top` - top (center)</li> <li>`topRight` - top right</li> <li>`right` - right (center)</li> <li>`bottomRight` - bottom right</li> <li>`bottom` - bottom (center)</li> <li>`bottomLeft` - bottom left</li> <li>`left` - left (center)</li> <li>`topLeft` - top left</li> <li>`center` - center</li> </ul>. [optional] # noqa: E501
235235
offset (Offset): [optional] # noqa: E501
236236
css (str): The CSS text string to apply styling to the HTML. See list of [support CSS properties](https://shotstack.io/docs/guide/architecting-an-application/html-support#supported-css-properties).. [optional] # noqa: E501
237237
width (int): Set the width of the HTML asset bounding box in pixels. Text will wrap to fill the bounding box.. [optional] # noqa: E501
@@ -341,13 +341,13 @@ def __init__(self, *args, **kwargs): # noqa: E501
341341
through its discriminator because we passed in
342342
_visited_composed_classes = (Animal,)
343343
trim (float): The start trim point of the luma matte clip, in seconds (defaults to 0). Videos will start from the in trim point. A luma matte video will play until the file ends or the Clip length is reached.. [optional] # noqa: E501
344-
volume (float): Set the volume for the audio clip between 0 and 1 where 0 is muted and 1 is full volume (defaults to 1).. [optional] if omitted the server will use the default value of 1 # noqa: E501
344+
volume (float): Set the volume for the audio clip between 0 and 1 where 0 is muted and 1 is full volume (defaults to 1).. [optional] # noqa: E501
345345
crop (Crop): [optional] # noqa: E501
346346
style (str): Uses a preset to apply font properties and styling to the title. <ul> <li>`minimal`</li> <li>`blockbuster`</li> <li>`vogue`</li> <li>`sketchy`</li> <li>`skinny`</li> <li>`chunk`</li> <li>`chunkLight`</li> <li>`marker`</li> <li>`future`</li> <li>`subtitle`</li> </ul>. [optional] # noqa: E501
347-
color (str): Set the text color using hexadecimal color notation. Transparency is supported by setting the first two characters of the hex string (opposite to HTML), i.e. #80ffffff will be white with 50% transparency.. [optional] if omitted the server will use the default value of "#ffffff" # noqa: E501
348-
size (str): Set the relative size of the text using predefined sizes from xx-small to xx-large. <ul> <li>`xx-small`</li> <li>`x-small`</li> <li>`small`</li> <li>`medium`</li> <li>`large`</li> <li>`x-large`</li> <li>`xx-large`</li> </ul>. [optional] if omitted the server will use the default value of "medium" # noqa: E501
349-
background (str): Apply a background color behind the HTML bounding box using. Set the text color using hexadecimal color notation. Transparency is supported by setting the first two characters of the hex string (opposite to HTML), i.e. #80ffffff will be white with 50% transparency.. [optional] if omitted the server will use the default value of "transparent" # noqa: E501
350-
position (str): Place the HTML in one of nine predefined positions within the HTML area. <ul> <li>`top` - top (center)</li> <li>`topRight` - top right</li> <li>`right` - right (center)</li> <li>`bottomRight` - bottom right</li> <li>`bottom` - bottom (center)</li> <li>`bottomLeft` - bottom left</li> <li>`left` - left (center)</li> <li>`topLeft` - top left</li> <li>`center` - center</li> </ul>. [optional] if omitted the server will use the default value of "center" # noqa: E501
347+
color (str): Set the text color using hexadecimal color notation. Transparency is supported by setting the first two characters of the hex string (opposite to HTML), i.e. #80ffffff will be white with 50% transparency.. [optional] # noqa: E501
348+
size (str): Set the relative size of the text using predefined sizes from xx-small to xx-large. <ul> <li>`xx-small`</li> <li>`x-small`</li> <li>`small`</li> <li>`medium`</li> <li>`large`</li> <li>`x-large`</li> <li>`xx-large`</li> </ul>. [optional] # noqa: E501
349+
background (str): Apply a background color behind the HTML bounding box using. Set the text color using hexadecimal color notation. Transparency is supported by setting the first two characters of the hex string (opposite to HTML), i.e. #80ffffff will be white with 50% transparency.. [optional] # noqa: E501
350+
position (str): Place the HTML in one of nine predefined positions within the HTML area. <ul> <li>`top` - top (center)</li> <li>`topRight` - top right</li> <li>`right` - right (center)</li> <li>`bottomRight` - bottom right</li> <li>`bottom` - bottom (center)</li> <li>`bottomLeft` - bottom left</li> <li>`left` - left (center)</li> <li>`topLeft` - top left</li> <li>`center` - center</li> </ul>. [optional] # noqa: E501
351351
offset (Offset): [optional] # noqa: E501
352352
css (str): The CSS text string to apply styling to the HTML. See list of [support CSS properties](https://shotstack.io/docs/guide/architecting-an-application/html-support#supported-css-properties).. [optional] # noqa: E501
353353
width (int): Set the width of the HTML asset bounding box in pixels. Text will wrap to fill the bounding box.. [optional] # noqa: E501

0 commit comments

Comments
 (0)