fastpix-python 0.1.3__tar.gz → 0.1.5__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.
- {fastpix_python-0.1.3/fastpix_python.egg-info → fastpix_python-0.1.5}/PKG-INFO +7 -7
- {fastpix_python-0.1.3 → fastpix_python-0.1.5}/README.md +5 -5
- fastpix_python-0.1.5/fastpix/utilis/constants.py +33 -0
- {fastpix_python-0.1.3 → fastpix_python-0.1.5/fastpix_python.egg-info}/PKG-INFO +7 -7
- {fastpix_python-0.1.3 → fastpix_python-0.1.5}/setup.py +2 -2
- fastpix_python-0.1.3/fastpix/utilis/constants.py +0 -1
- {fastpix_python-0.1.3 → fastpix_python-0.1.5}/LICENSE +0 -0
- {fastpix_python-0.1.3 → fastpix_python-0.1.5}/fastpix/__init__.py +0 -0
- {fastpix_python-0.1.3 → fastpix_python-0.1.5}/fastpix/async_client/__init__.py +0 -0
- {fastpix_python-0.1.3 → fastpix_python-0.1.5}/fastpix/async_client/api.py +0 -0
- {fastpix_python-0.1.3 → fastpix_python-0.1.5}/fastpix/async_client/client.py +0 -0
- {fastpix_python-0.1.3 → fastpix_python-0.1.5}/fastpix/async_client/live_streams.py +0 -0
- {fastpix_python-0.1.3 → fastpix_python-0.1.5}/fastpix/async_client/media.py +0 -0
- {fastpix_python-0.1.3 → fastpix_python-0.1.5}/fastpix/async_client/playback_ids.py +0 -0
- {fastpix_python-0.1.3 → fastpix_python-0.1.5}/fastpix/client/__init__.py +0 -0
- {fastpix_python-0.1.3 → fastpix_python-0.1.5}/fastpix/client/api.py +0 -0
- {fastpix_python-0.1.3 → fastpix_python-0.1.5}/fastpix/client/client.py +0 -0
- {fastpix_python-0.1.3 → fastpix_python-0.1.5}/fastpix/client/live_streams.py +0 -0
- {fastpix_python-0.1.3 → fastpix_python-0.1.5}/fastpix/client/media.py +0 -0
- {fastpix_python-0.1.3 → fastpix_python-0.1.5}/fastpix/client/playback_ids.py +0 -0
- {fastpix_python-0.1.3 → fastpix_python-0.1.5}/fastpix/utilis/__init__.py +0 -0
- {fastpix_python-0.1.3 → fastpix_python-0.1.5}/fastpix/utilis/exceptions.py +0 -0
- {fastpix_python-0.1.3 → fastpix_python-0.1.5}/fastpix/utilis/utilis.py +0 -0
- {fastpix_python-0.1.3 → fastpix_python-0.1.5}/fastpix_python.egg-info/SOURCES.txt +0 -0
- {fastpix_python-0.1.3 → fastpix_python-0.1.5}/fastpix_python.egg-info/dependency_links.txt +0 -0
- {fastpix_python-0.1.3 → fastpix_python-0.1.5}/fastpix_python.egg-info/requires.txt +0 -0
- {fastpix_python-0.1.3 → fastpix_python-0.1.5}/fastpix_python.egg-info/top_level.txt +0 -0
- {fastpix_python-0.1.3 → fastpix_python-0.1.5}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
|
-
Name:
|
|
3
|
-
Version: 0.1.
|
|
2
|
+
Name: fastpix_python
|
|
3
|
+
Version: 0.1.5
|
|
4
4
|
Summary: FastPix SDK with both sync and async support
|
|
5
5
|
Home-page: https://github.com/fastpix-io/fastpix-python-server-sdk
|
|
6
6
|
Author: FastPix
|
|
@@ -51,7 +51,7 @@ The FastPix Python SDK simplifies integration with the FastPix platform. This SD
|
|
|
51
51
|
For detailed usage, refer to the [FastPix API Reference](https://docs.fastpix.io/reference).
|
|
52
52
|
|
|
53
53
|
## Latest Release
|
|
54
|
-
- Current Version: 0.1.
|
|
54
|
+
- Current Version: 0.1.5
|
|
55
55
|
- View our [changelog](CHANELOG.md) for details on recent updates
|
|
56
56
|
- Download the latest release from our [releases page](https://github.com/FastPix/python-server-sdk/releases/tag/v1.0.0)
|
|
57
57
|
|
|
@@ -70,7 +70,7 @@ To get started with the **FastPix Python SDK**, ensure you have the following:
|
|
|
70
70
|
To install the SDK, use pip with the GitHub repository URL to easily download and install the required libraries.
|
|
71
71
|
|
|
72
72
|
```bash
|
|
73
|
-
pip install git+https://github.com/FastPix/
|
|
73
|
+
pip install git+https://github.com/FastPix/fastpix_python
|
|
74
74
|
```
|
|
75
75
|
(you may need to run `pip` with root permission)
|
|
76
76
|
|
|
@@ -79,7 +79,7 @@ pip install git+https://github.com/FastPix/fastpix-python
|
|
|
79
79
|
### Importing the SDK
|
|
80
80
|
|
|
81
81
|
```python
|
|
82
|
-
from
|
|
82
|
+
from fastpix_python import Client
|
|
83
83
|
```
|
|
84
84
|
|
|
85
85
|
### Initialization:
|
|
@@ -87,7 +87,7 @@ from fastpix-python import Client
|
|
|
87
87
|
Initialize the FastPix SDK with your API credentials.
|
|
88
88
|
|
|
89
89
|
```python
|
|
90
|
-
from
|
|
90
|
+
from fastpix_python import Client
|
|
91
91
|
|
|
92
92
|
client = Client(username="your-access-token-id", password="your-secret-key")
|
|
93
93
|
```
|
|
@@ -99,7 +99,7 @@ Below is an example of configuring `FastPix Python SDK` into your project.
|
|
|
99
99
|
`Note:-` For Async SDK Users: When using the AsyncClient, all SDK methods must be prefixed with the await keyword.
|
|
100
100
|
```python
|
|
101
101
|
# Sync Usage
|
|
102
|
-
from
|
|
102
|
+
from fastpix_python import Client
|
|
103
103
|
|
|
104
104
|
client = Client(username="your-access-token-id", password="your-secret-key")
|
|
105
105
|
|
|
@@ -19,7 +19,7 @@ The FastPix Python SDK simplifies integration with the FastPix platform. This SD
|
|
|
19
19
|
For detailed usage, refer to the [FastPix API Reference](https://docs.fastpix.io/reference).
|
|
20
20
|
|
|
21
21
|
## Latest Release
|
|
22
|
-
- Current Version: 0.1.
|
|
22
|
+
- Current Version: 0.1.5
|
|
23
23
|
- View our [changelog](CHANELOG.md) for details on recent updates
|
|
24
24
|
- Download the latest release from our [releases page](https://github.com/FastPix/python-server-sdk/releases/tag/v1.0.0)
|
|
25
25
|
|
|
@@ -38,7 +38,7 @@ To get started with the **FastPix Python SDK**, ensure you have the following:
|
|
|
38
38
|
To install the SDK, use pip with the GitHub repository URL to easily download and install the required libraries.
|
|
39
39
|
|
|
40
40
|
```bash
|
|
41
|
-
pip install git+https://github.com/FastPix/
|
|
41
|
+
pip install git+https://github.com/FastPix/fastpix_python
|
|
42
42
|
```
|
|
43
43
|
(you may need to run `pip` with root permission)
|
|
44
44
|
|
|
@@ -47,7 +47,7 @@ pip install git+https://github.com/FastPix/fastpix-python
|
|
|
47
47
|
### Importing the SDK
|
|
48
48
|
|
|
49
49
|
```python
|
|
50
|
-
from
|
|
50
|
+
from fastpix_python import Client
|
|
51
51
|
```
|
|
52
52
|
|
|
53
53
|
### Initialization:
|
|
@@ -55,7 +55,7 @@ from fastpix-python import Client
|
|
|
55
55
|
Initialize the FastPix SDK with your API credentials.
|
|
56
56
|
|
|
57
57
|
```python
|
|
58
|
-
from
|
|
58
|
+
from fastpix_python import Client
|
|
59
59
|
|
|
60
60
|
client = Client(username="your-access-token-id", password="your-secret-key")
|
|
61
61
|
```
|
|
@@ -67,7 +67,7 @@ Below is an example of configuring `FastPix Python SDK` into your project.
|
|
|
67
67
|
`Note:-` For Async SDK Users: When using the AsyncClient, all SDK methods must be prefixed with the await keyword.
|
|
68
68
|
```python
|
|
69
69
|
# Sync Usage
|
|
70
|
-
from
|
|
70
|
+
from fastpix_python import Client
|
|
71
71
|
|
|
72
72
|
client = Client(username="your-access-token-id", password="your-secret-key")
|
|
73
73
|
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
BASE_URL = "https://v1.fastpix.io"
|
|
2
|
+
|
|
3
|
+
import re
|
|
4
|
+
import uuid
|
|
5
|
+
from typing import Any, Dict
|
|
6
|
+
|
|
7
|
+
def validate_uuid(uuid_str: str) -> bool:
|
|
8
|
+
"""
|
|
9
|
+
Validate if the given string is a valid UUID.
|
|
10
|
+
|
|
11
|
+
Args:
|
|
12
|
+
uuid_str (str): The UUID string to validate
|
|
13
|
+
|
|
14
|
+
Returns:
|
|
15
|
+
bool: True if valid UUID, False otherwise
|
|
16
|
+
"""
|
|
17
|
+
try:
|
|
18
|
+
uuid_obj = uuid.UUID(uuid_str)
|
|
19
|
+
return str(uuid_obj) == uuid_str
|
|
20
|
+
except ValueError:
|
|
21
|
+
return False
|
|
22
|
+
|
|
23
|
+
def validate_request_body(body: Dict[str, Any]) -> bool:
|
|
24
|
+
"""
|
|
25
|
+
Validate if the request body is a non-empty dictionary.
|
|
26
|
+
|
|
27
|
+
Args:
|
|
28
|
+
body (Dict[str, Any]): The request body to validate
|
|
29
|
+
|
|
30
|
+
Returns:
|
|
31
|
+
bool: True if valid request body, False otherwise
|
|
32
|
+
"""
|
|
33
|
+
return isinstance(body, dict) and len(body) > 0
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
|
-
Name:
|
|
3
|
-
Version: 0.1.
|
|
2
|
+
Name: fastpix_python
|
|
3
|
+
Version: 0.1.5
|
|
4
4
|
Summary: FastPix SDK with both sync and async support
|
|
5
5
|
Home-page: https://github.com/fastpix-io/fastpix-python-server-sdk
|
|
6
6
|
Author: FastPix
|
|
@@ -51,7 +51,7 @@ The FastPix Python SDK simplifies integration with the FastPix platform. This SD
|
|
|
51
51
|
For detailed usage, refer to the [FastPix API Reference](https://docs.fastpix.io/reference).
|
|
52
52
|
|
|
53
53
|
## Latest Release
|
|
54
|
-
- Current Version: 0.1.
|
|
54
|
+
- Current Version: 0.1.5
|
|
55
55
|
- View our [changelog](CHANELOG.md) for details on recent updates
|
|
56
56
|
- Download the latest release from our [releases page](https://github.com/FastPix/python-server-sdk/releases/tag/v1.0.0)
|
|
57
57
|
|
|
@@ -70,7 +70,7 @@ To get started with the **FastPix Python SDK**, ensure you have the following:
|
|
|
70
70
|
To install the SDK, use pip with the GitHub repository URL to easily download and install the required libraries.
|
|
71
71
|
|
|
72
72
|
```bash
|
|
73
|
-
pip install git+https://github.com/FastPix/
|
|
73
|
+
pip install git+https://github.com/FastPix/fastpix_python
|
|
74
74
|
```
|
|
75
75
|
(you may need to run `pip` with root permission)
|
|
76
76
|
|
|
@@ -79,7 +79,7 @@ pip install git+https://github.com/FastPix/fastpix-python
|
|
|
79
79
|
### Importing the SDK
|
|
80
80
|
|
|
81
81
|
```python
|
|
82
|
-
from
|
|
82
|
+
from fastpix_python import Client
|
|
83
83
|
```
|
|
84
84
|
|
|
85
85
|
### Initialization:
|
|
@@ -87,7 +87,7 @@ from fastpix-python import Client
|
|
|
87
87
|
Initialize the FastPix SDK with your API credentials.
|
|
88
88
|
|
|
89
89
|
```python
|
|
90
|
-
from
|
|
90
|
+
from fastpix_python import Client
|
|
91
91
|
|
|
92
92
|
client = Client(username="your-access-token-id", password="your-secret-key")
|
|
93
93
|
```
|
|
@@ -99,7 +99,7 @@ Below is an example of configuring `FastPix Python SDK` into your project.
|
|
|
99
99
|
`Note:-` For Async SDK Users: When using the AsyncClient, all SDK methods must be prefixed with the await keyword.
|
|
100
100
|
```python
|
|
101
101
|
# Sync Usage
|
|
102
|
-
from
|
|
102
|
+
from fastpix_python import Client
|
|
103
103
|
|
|
104
104
|
client = Client(username="your-access-token-id", password="your-secret-key")
|
|
105
105
|
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
BASE_URL = "https://v1.fastpix.io"
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|