Skip to content

Commit 971f5ed

Browse files
committed
Rollback changes made to client.py
1 parent 94fcbd3 commit 971f5ed

1 file changed

Lines changed: 6 additions & 10 deletions

File tree

transloadit/client.py

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
if typing.TYPE_CHECKING:
88
from requests import Response
99

10+
1011
class Transloadit:
1112
"""
1213
This class serves as a client interface to the Transloadit API.
@@ -16,7 +17,6 @@ class Transloadit:
1617
- auth_secret (str): Transloadit auth secret.
1718
- service (Optional[str]): URL of the Transloadit API.
1819
- duration (int): How long in seconds for which a Transloadit request should be valid.
19-
- sha_384 (bool): Whether to use SHA-384 for signing requests. Defaults to True. If False, SHA-1 is used.
2020
- request (transloadit.request.Request): An instance of the Transloadit HTTP Request object.
2121
2222
:Constructor Args:
@@ -28,17 +28,14 @@ class Transloadit:
2828
- duration (Optional[int]):
2929
How long in seconds for which a Transloadit request should be valid. Defaults to 300
3030
if not specified.
31-
- sha_384 (Optional[bool]):
32-
Whether to use SHA-384 for signing requests. Defaults to True. If False, SHA-1 is used.
3331
"""
3432

3533
def __init__(
36-
self,
37-
auth_key: str,
38-
auth_secret: str,
39-
service: str = "https://api2.transloadit.com",
40-
duration: int = 300,
41-
sha_384: bool = True,
34+
self,
35+
auth_key: str,
36+
auth_secret: str,
37+
service: str = "https://api2.transloadit.com",
38+
duration: int = 300,
4239
):
4340
if not service.startswith(("http://", "https://")):
4441
service = "https://" + service
@@ -47,7 +44,6 @@ def __init__(
4744
self.auth_key = auth_key
4845
self.auth_secret = auth_secret
4946
self.duration = duration
50-
self.sha_384 = sha_384
5147
self.request = request.Request(self)
5248

5349
def new_assembly(self, params: dict = None) -> assembly.Assembly:

0 commit comments

Comments
 (0)