mixpeek 0.6.19__tar.gz → 0.6.21__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.
- {mixpeek-0.6.19 → mixpeek-0.6.21}/PKG-INFO +3 -1
- {mixpeek-0.6.19 → mixpeek-0.6.21}/mixpeek/client.py +3 -0
- mixpeek-0.6.21/mixpeek/endpoints/pipelines.py +26 -0
- {mixpeek-0.6.19 → mixpeek-0.6.21}/mixpeek.egg-info/PKG-INFO +3 -1
- {mixpeek-0.6.19 → mixpeek-0.6.21}/mixpeek.egg-info/SOURCES.txt +2 -0
- mixpeek-0.6.21/mixpeek.egg-info/requires.txt +2 -0
- {mixpeek-0.6.19 → mixpeek-0.6.21}/setup.py +6 -1
- {mixpeek-0.6.19 → mixpeek-0.6.21}/MANIFEST.in +0 -0
- {mixpeek-0.6.19 → mixpeek-0.6.21}/README.md +0 -0
- {mixpeek-0.6.19 → mixpeek-0.6.21}/mixpeek/__init__.py +0 -0
- {mixpeek-0.6.19 → mixpeek-0.6.21}/mixpeek/endpoints/__init__.py +0 -0
- {mixpeek-0.6.19 → mixpeek-0.6.21}/mixpeek/endpoints/connections.py +0 -0
- {mixpeek-0.6.19 → mixpeek-0.6.21}/mixpeek/endpoints/embed.py +0 -0
- {mixpeek-0.6.19 → mixpeek-0.6.21}/mixpeek/endpoints/extract.py +0 -0
- {mixpeek-0.6.19 → mixpeek-0.6.21}/mixpeek/endpoints/generate.py +0 -0
- {mixpeek-0.6.19 → mixpeek-0.6.21}/mixpeek/endpoints/tools.py +0 -0
- {mixpeek-0.6.19 → mixpeek-0.6.21}/mixpeek/exceptions.py +0 -0
- {mixpeek-0.6.19 → mixpeek-0.6.21}/mixpeek.egg-info/dependency_links.txt +0 -0
- {mixpeek-0.6.19 → mixpeek-0.6.21}/mixpeek.egg-info/top_level.txt +0 -0
- {mixpeek-0.6.19 → mixpeek-0.6.21}/requirements.txt +0 -0
- {mixpeek-0.6.19 → mixpeek-0.6.21}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: mixpeek
|
3
|
-
Version: 0.6.
|
3
|
+
Version: 0.6.21
|
4
4
|
Summary: Mixpeek Python SDK
|
5
5
|
Home-page: https://github.com/mixpeek/mixpeek-python
|
6
6
|
Author: Ethan Steininger
|
@@ -10,6 +10,8 @@ Classifier: License :: OSI Approved :: MIT License
|
|
10
10
|
Classifier: Operating System :: OS Independent
|
11
11
|
Requires-Python: >=3.6
|
12
12
|
Description-Content-Type: text/markdown
|
13
|
+
Requires-Dist: requests==2.32.3
|
14
|
+
Requires-Dist: pydantic==2.7.3
|
13
15
|
|
14
16
|
# Mixpeek SDK
|
15
17
|
|
@@ -5,6 +5,8 @@ from .endpoints.embed import Embed
|
|
5
5
|
from .endpoints.generate import Generate
|
6
6
|
from .endpoints.connections import Connections
|
7
7
|
from .endpoints.tools import Tools
|
8
|
+
from .endpoints.pipelines import Pipelines
|
9
|
+
|
8
10
|
|
9
11
|
class Mixpeek:
|
10
12
|
def __init__(self, api_key: str):
|
@@ -19,3 +21,4 @@ class Mixpeek:
|
|
19
21
|
self.generate = Generate(self.base_url, self.headers)
|
20
22
|
self.connections = Connections(self.base_url, self.headers)
|
21
23
|
self.tools = Tools(self.base_url, self.headers)
|
24
|
+
self.pipelines = Pipelines(self.base_url, self.headers)
|
@@ -0,0 +1,26 @@
|
|
1
|
+
import requests
|
2
|
+
|
3
|
+
class Pipelines:
|
4
|
+
def __init__(self, base_url, headers):
|
5
|
+
self.base_url = base_url
|
6
|
+
self.headers = headers
|
7
|
+
|
8
|
+
def create(self, alias: str, code: str, destination: dict, source: dict):
|
9
|
+
url = f"{self.base_url}pipelines/"
|
10
|
+
data = {
|
11
|
+
"alias": alias,
|
12
|
+
"code": code,
|
13
|
+
"destination": destination,
|
14
|
+
"source": source
|
15
|
+
}
|
16
|
+
response = requests.post(url, json=data, headers=self.headers)
|
17
|
+
return response.json()
|
18
|
+
|
19
|
+
def invoke(self, pipeline_id: str, payload: dict, options: dict):
|
20
|
+
url = f"{self.base_url}pipelines/invoke/{pipeline_id}"
|
21
|
+
data = {
|
22
|
+
"payload": payload,
|
23
|
+
"options": options
|
24
|
+
}
|
25
|
+
response = requests.post(url, json=data, headers=self.headers)
|
26
|
+
return response.json()
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: mixpeek
|
3
|
-
Version: 0.6.
|
3
|
+
Version: 0.6.21
|
4
4
|
Summary: Mixpeek Python SDK
|
5
5
|
Home-page: https://github.com/mixpeek/mixpeek-python
|
6
6
|
Author: Ethan Steininger
|
@@ -10,6 +10,8 @@ Classifier: License :: OSI Approved :: MIT License
|
|
10
10
|
Classifier: Operating System :: OS Independent
|
11
11
|
Requires-Python: >=3.6
|
12
12
|
Description-Content-Type: text/markdown
|
13
|
+
Requires-Dist: requests==2.32.3
|
14
|
+
Requires-Dist: pydantic==2.7.3
|
13
15
|
|
14
16
|
# Mixpeek SDK
|
15
17
|
|
@@ -8,10 +8,12 @@ mixpeek/exceptions.py
|
|
8
8
|
mixpeek.egg-info/PKG-INFO
|
9
9
|
mixpeek.egg-info/SOURCES.txt
|
10
10
|
mixpeek.egg-info/dependency_links.txt
|
11
|
+
mixpeek.egg-info/requires.txt
|
11
12
|
mixpeek.egg-info/top_level.txt
|
12
13
|
mixpeek/endpoints/__init__.py
|
13
14
|
mixpeek/endpoints/connections.py
|
14
15
|
mixpeek/endpoints/embed.py
|
15
16
|
mixpeek/endpoints/extract.py
|
16
17
|
mixpeek/endpoints/generate.py
|
18
|
+
mixpeek/endpoints/pipelines.py
|
17
19
|
mixpeek/endpoints/tools.py
|
@@ -1,8 +1,12 @@
|
|
1
1
|
from setuptools import setup, find_packages
|
2
2
|
|
3
|
+
# Read the contents of your requirements.txt file
|
4
|
+
with open('requirements.txt') as f:
|
5
|
+
required = f.read().splitlines()
|
6
|
+
|
3
7
|
setup(
|
4
8
|
name='mixpeek',
|
5
|
-
version='0.6.
|
9
|
+
version='0.6.21',
|
6
10
|
author='Ethan Steininger',
|
7
11
|
author_email='ethan@mixpeek.com',
|
8
12
|
description='Mixpeek Python SDK',
|
@@ -10,6 +14,7 @@ setup(
|
|
10
14
|
long_description_content_type='text/markdown',
|
11
15
|
url='https://github.com/mixpeek/mixpeek-python',
|
12
16
|
packages=find_packages(),
|
17
|
+
install_requires=required,
|
13
18
|
classifiers=[
|
14
19
|
'Programming Language :: Python :: 3',
|
15
20
|
'License :: OSI Approved :: MIT License',
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|