mixpeek 0.6.28__tar.gz → 0.6.29__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mixpeek
3
- Version: 0.6.28
3
+ Version: 0.6.29
4
4
  Summary: Mixpeek Python SDK
5
5
  Home-page: https://github.com/mixpeek/mixpeek-python
6
6
  Author: Ethan Steininger
@@ -43,8 +43,10 @@ class Connections:
43
43
  self.headers = parent.headers
44
44
  self.api_key = parent.api_key
45
45
 
46
- def upload(self, connection_id: str, file_path: str):
46
+ def upload(self, connection_id: str, file_path: str, prefix: str = None):
47
47
  url = f"{self.base_url}connections/storage?connection_id={connection_id}"
48
+ if prefix:
49
+ url += f"&prefix={prefix}"
48
50
 
49
51
  files=[
50
52
  ('file',(os.path.basename(file_path),open(file_path,'rb'),'application/octet-stream'))
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mixpeek
3
- Version: 0.6.28
3
+ Version: 0.6.29
4
4
  Summary: Mixpeek Python SDK
5
5
  Home-page: https://github.com/mixpeek/mixpeek-python
6
6
  Author: Ethan Steininger
@@ -6,7 +6,7 @@ with open('requirements.txt') as f:
6
6
 
7
7
  setup(
8
8
  name='mixpeek',
9
- version='0.6.28',
9
+ version='0.6.29',
10
10
  author='Ethan Steininger',
11
11
  author_email='ethan@mixpeek.com',
12
12
  description='Mixpeek Python SDK',
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes