Skip to content

Commit f712baf

Browse files
committed
Run make format
1 parent 556b835 commit f712baf

File tree

7 files changed

+32
-19
lines changed

7 files changed

+32
-19
lines changed

frameioclient/client.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
from .config import Config
88
from .lib import APIClient, ClientVersion, FrameioDownloader
9+
910
# from .lib import Telemetry
1011
from .services import *
1112

frameioclient/lib/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from .constants import *
22
from .exceptions import *
33
from .logger import SDKLogger
4+
45
# from .telemetry import Telemetry
56
from .version import ClientVersion
67
from .upload import FrameioUploader

frameioclient/lib/telemetry.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,7 @@ def build_context(self):
3030
}
3131

3232
def push(self, event_name, properties):
33-
self.logger.info(
34-
(f"Pushing '{event_name}' event to segment", properties)
35-
)
33+
self.logger.info((f"Pushing '{event_name}' event to segment", properties))
3634

3735
try:
3836
status = analytics.track(

frameioclient/lib/transfer.py

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,22 @@
88

99
import requests
1010

11-
from .exceptions import (AssetChecksumMismatch, AssetChecksumNotPresent,
12-
DownloadException)
11+
from .exceptions import (
12+
AssetChecksumMismatch,
13+
AssetChecksumNotPresent,
14+
DownloadException,
15+
)
1316
from .logger import SDKLogger
1417
from .utils import FormatTypes, Utils
1518

1619
logger = SDKLogger("downloads")
1720

1821
from .bandwidth import DiskBandwidth, NetworkBandwidth
19-
from .exceptions import (AssetNotFullyUploaded, DownloadException,
20-
WatermarkIDDownloadException)
22+
from .exceptions import (
23+
AssetNotFullyUploaded,
24+
DownloadException,
25+
WatermarkIDDownloadException,
26+
)
2127
from .transport import HTTPClient
2228

2329

@@ -250,7 +256,9 @@ def _optimize_concurrency(self):
250256

251257
return 5
252258

253-
def _get_byte_range(self, url: str, start_byte: Optional[int] = 0, end_byte: Optional[int] = 2048):
259+
def _get_byte_range(
260+
self, url: str, start_byte: Optional[int] = 0, end_byte: Optional[int] = 2048
261+
):
254262
"""
255263
Get a specific byte range from a given URL. This is **not** optimized \
256264
for heavily-threaded operations currently.

frameioclient/lib/upload.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,14 @@ def recursive_upload(self, client, folder, parent_asset_id):
142142

143143
complete_dir_obj = os.path.join(folder, file_p)
144144
print(
145-
"Starting {:02d}/{}, Size: {}, Name: {}".format(self.file_num, self.file_count, Utils.format_value(os.path.getsize(complete_dir_obj), type=FormatTypes.SIZE), file_p)
145+
"Starting {:02d}/{}, Size: {}, Name: {}".format(
146+
self.file_num,
147+
self.file_count,
148+
Utils.format_value(
149+
os.path.getsize(complete_dir_obj), type=FormatTypes.SIZE
150+
),
151+
file_p,
152+
)
146153
)
147154
client.assets.upload(parent_asset_id, complete_dir_obj)
148155

frameioclient/services/assets.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -219,9 +219,7 @@ def copy(
219219
220220
client.assets.copy("adeffee123342", id="7ee008c5-49a2-f8b5-997d-8b64de153c30")
221221
"""
222-
kwargs = {
223-
"id": target_asset_id
224-
}
222+
kwargs = {"id": target_asset_id}
225223
endpoint = "/assets/{}/copy".format(destination_folder_id)
226224
return self.client._api_call("post", endpoint, kwargs)
227225

frameioclient/services/comments.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@
88
class Comment(Service):
99
@ApiReference(operation="#createComment")
1010
def create(
11-
self,
12-
asset_id: Union[str, UUID],
13-
text: Optional[str] = None,
14-
timestamp: Optional[int] = None,
15-
annotation: Optional[str] = None,
16-
**kwargs
11+
self,
12+
asset_id: Union[str, UUID],
13+
text: Optional[str] = None,
14+
timestamp: Optional[int] = None,
15+
annotation: Optional[str] = None,
16+
**kwargs
1717
):
1818
"""
1919
Create a comment.
@@ -33,7 +33,7 @@ def create(
3333
text="Hello world",
3434
timestamp=10
3535
)
36-
"""
36+
"""
3737
kwargs = {"text": text, "annotation": annotation, "timestamp": timestamp}
3838

3939
endpoint = "/assets/{}/comments".format(asset_id)

0 commit comments

Comments
 (0)