mixpeek 0.6.24__py3-none-any.whl → 0.6.26__py3-none-any.whl

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.
@@ -16,12 +16,13 @@ class Connections:
16
16
  response = requests.post(url, json=data, headers=self.headers)
17
17
  return response.json()
18
18
 
19
+ # mixpeek.connections.data.insert(connection_id="123", payload={"key": "value"})
19
20
  class Data:
20
21
  def __init__(self, parent):
21
22
  self.base_url = parent.base_url
22
23
  self.headers = parent.headers
23
24
 
24
- def insert(self, connection_id: str, payload: dict):
25
+ def insert(self, connection_id: str, payload: list):
25
26
  pass
26
27
 
27
28
  def delete(self, connection_id: str, filters: dict):
@@ -5,7 +5,7 @@ class Extract:
5
5
  self.base_url = base_url
6
6
  self.headers = headers
7
7
 
8
- def extract(self, modality: str, input: str, input_type: str):
8
+ def extract(self, input: str, input_type: str, modality: str = None):
9
9
  url = f"{self.base_url}extract/"
10
10
  data = {
11
11
  "modality": modality,
@@ -5,6 +5,16 @@ class Pipelines:
5
5
  self.base_url = base_url
6
6
  self.headers = headers
7
7
 
8
+ # mixpeek.pipelines.enable
9
+ def enable(self, pipeline_id: str, enable: bool):
10
+ url = f"{self.base_url}pipelines/{pipeline_id}/enable"
11
+ data = {
12
+ "enable": enable
13
+ }
14
+ response = requests.patch(url, json=data, headers=self.headers)
15
+ return response.json()
16
+
17
+ # mixpeek.pipelines.create
8
18
  def create(self, alias: str, code: str, destination: dict, source: dict):
9
19
  url = f"{self.base_url}pipelines/"
10
20
  data = {
@@ -16,6 +26,7 @@ class Pipelines:
16
26
  response = requests.post(url, json=data, headers=self.headers)
17
27
  return response.json()
18
28
 
29
+ # mixpeek.pipelines.invoke
19
30
  def invoke(self, pipeline_id: str, payload: dict, options: dict):
20
31
  url = f"{self.base_url}pipelines/invoke/{pipeline_id}"
21
32
  data = {
@@ -1,5 +1,6 @@
1
1
  import requests
2
2
 
3
+
3
4
  class Tools:
4
5
  def __init__(self, base_url, headers):
5
6
  self.base_url = base_url
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mixpeek
3
- Version: 0.6.24
3
+ Version: 0.6.26
4
4
  Summary: Mixpeek Python SDK
5
5
  Home-page: https://github.com/mixpeek/mixpeek-python
6
6
  Author: Ethan Steininger
@@ -0,0 +1,14 @@
1
+ mixpeek/__init__.py,sha256=XDdcK7wTEOEcF1cp-GeWmgPJ21Ny1R9pB0PPNrdDTMo,28
2
+ mixpeek/client.py,sha256=aZ6zzSrqbV3RxD2G-W0Aqy06QWDfRux_0DfLr-awdG0,895
3
+ mixpeek/exceptions.py,sha256=Orhdo5UFLn3fcWVJtlgkznW8Iy5ndL96h0qTY8zOlDA,235
4
+ mixpeek/endpoints/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
+ mixpeek/endpoints/connections.py,sha256=-SdwLhHY1KNnNT9u_V2hx0kiKjYrDXKLzceedZBqa14,917
6
+ mixpeek/endpoints/embed.py,sha256=8ds_FinxZRW-ZQyv6LjDAX6Zoek2Cv4OYhwIgSBqwTs,1598
7
+ mixpeek/endpoints/extract.py,sha256=7-d-8Mc7Uj20JyQRURoXeawpvUGvwMeBI8nwtjCYe8k,483
8
+ mixpeek/endpoints/generate.py,sha256=SFjVYfgeuIt4wO0I5ItnB4TEHhRkLgZOvQfWlEioye8,594
9
+ mixpeek/endpoints/pipelines.py,sha256=X2mRsWgOx6FgWbInrAdjLQJbjXjorNqAo9mjFawLpoE,1210
10
+ mixpeek/endpoints/tools.py,sha256=Ni9AYm2-jpDS1SLUohNLTOkXDUxLPnNLpTlhWJLfofs,791
11
+ mixpeek-0.6.26.dist-info/METADATA,sha256=PKf1HAukMjpd1omrd6Rxxegqz9_-r-5XEZq93FUjRsE,1952
12
+ mixpeek-0.6.26.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
13
+ mixpeek-0.6.26.dist-info/top_level.txt,sha256=EJ8Jc4IhqyUwnUlBwKbs498Ju4O9a-IDh2kXc_lo6Vg,8
14
+ mixpeek-0.6.26.dist-info/RECORD,,
@@ -1,14 +0,0 @@
1
- mixpeek/__init__.py,sha256=XDdcK7wTEOEcF1cp-GeWmgPJ21Ny1R9pB0PPNrdDTMo,28
2
- mixpeek/client.py,sha256=aZ6zzSrqbV3RxD2G-W0Aqy06QWDfRux_0DfLr-awdG0,895
3
- mixpeek/exceptions.py,sha256=Orhdo5UFLn3fcWVJtlgkznW8Iy5ndL96h0qTY8zOlDA,235
4
- mixpeek/endpoints/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
- mixpeek/endpoints/connections.py,sha256=ctzbdZV7ophrYOSqfHne0HE3sxxRXOep00qcujE0NKs,832
6
- mixpeek/endpoints/embed.py,sha256=8ds_FinxZRW-ZQyv6LjDAX6Zoek2Cv4OYhwIgSBqwTs,1598
7
- mixpeek/endpoints/extract.py,sha256=1KWxvgbQanRwYcFPWGthyv32LVj2gAhxDERwY3QgHUg,476
8
- mixpeek/endpoints/generate.py,sha256=SFjVYfgeuIt4wO0I5ItnB4TEHhRkLgZOvQfWlEioye8,594
9
- mixpeek/endpoints/pipelines.py,sha256=HgU00smP4guE0Qf601Up2mk9LqTimg4Dg27kkhE_H-Q,840
10
- mixpeek/endpoints/tools.py,sha256=Z9aRrFcoLM3sJ1nDzMsmFCima6AVuLsaOTnrn-g9XgE,790
11
- mixpeek-0.6.24.dist-info/METADATA,sha256=Chid_L1p-By8F75hcyZOR9AUy9K4N_ludXn2k8FT6lU,1952
12
- mixpeek-0.6.24.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
13
- mixpeek-0.6.24.dist-info/top_level.txt,sha256=EJ8Jc4IhqyUwnUlBwKbs498Ju4O9a-IDh2kXc_lo6Vg,8
14
- mixpeek-0.6.24.dist-info/RECORD,,