fastpix-python 0.1.4__tar.gz → 0.1.6__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.
Files changed (28) hide show
  1. {fastpix_python-0.1.4/fastpix_python.egg-info → fastpix_python-0.1.6}/PKG-INFO +10 -6
  2. {fastpix_python-0.1.4 → fastpix_python-0.1.6}/README.md +4 -4
  3. {fastpix_python-0.1.4 → fastpix_python-0.1.6}/fastpix/client/client.py +7 -1
  4. fastpix_python-0.1.6/fastpix/utilis/constants.py +33 -0
  5. {fastpix_python-0.1.4 → fastpix_python-0.1.6/fastpix_python.egg-info}/PKG-INFO +10 -6
  6. {fastpix_python-0.1.4 → fastpix_python-0.1.6}/setup.py +7 -2
  7. fastpix_python-0.1.4/fastpix/utilis/constants.py +0 -1
  8. {fastpix_python-0.1.4 → fastpix_python-0.1.6}/LICENSE +0 -0
  9. {fastpix_python-0.1.4 → fastpix_python-0.1.6}/fastpix/__init__.py +0 -0
  10. {fastpix_python-0.1.4 → fastpix_python-0.1.6}/fastpix/async_client/__init__.py +0 -0
  11. {fastpix_python-0.1.4 → fastpix_python-0.1.6}/fastpix/async_client/api.py +0 -0
  12. {fastpix_python-0.1.4 → fastpix_python-0.1.6}/fastpix/async_client/client.py +0 -0
  13. {fastpix_python-0.1.4 → fastpix_python-0.1.6}/fastpix/async_client/live_streams.py +0 -0
  14. {fastpix_python-0.1.4 → fastpix_python-0.1.6}/fastpix/async_client/media.py +0 -0
  15. {fastpix_python-0.1.4 → fastpix_python-0.1.6}/fastpix/async_client/playback_ids.py +0 -0
  16. {fastpix_python-0.1.4 → fastpix_python-0.1.6}/fastpix/client/__init__.py +0 -0
  17. {fastpix_python-0.1.4 → fastpix_python-0.1.6}/fastpix/client/api.py +0 -0
  18. {fastpix_python-0.1.4 → fastpix_python-0.1.6}/fastpix/client/live_streams.py +0 -0
  19. {fastpix_python-0.1.4 → fastpix_python-0.1.6}/fastpix/client/media.py +0 -0
  20. {fastpix_python-0.1.4 → fastpix_python-0.1.6}/fastpix/client/playback_ids.py +0 -0
  21. {fastpix_python-0.1.4 → fastpix_python-0.1.6}/fastpix/utilis/__init__.py +0 -0
  22. {fastpix_python-0.1.4 → fastpix_python-0.1.6}/fastpix/utilis/exceptions.py +0 -0
  23. {fastpix_python-0.1.4 → fastpix_python-0.1.6}/fastpix/utilis/utilis.py +0 -0
  24. {fastpix_python-0.1.4 → fastpix_python-0.1.6}/fastpix_python.egg-info/SOURCES.txt +0 -0
  25. {fastpix_python-0.1.4 → fastpix_python-0.1.6}/fastpix_python.egg-info/dependency_links.txt +0 -0
  26. {fastpix_python-0.1.4 → fastpix_python-0.1.6}/fastpix_python.egg-info/requires.txt +0 -0
  27. {fastpix_python-0.1.4 → fastpix_python-0.1.6}/fastpix_python.egg-info/top_level.txt +0 -0
  28. {fastpix_python-0.1.4 → fastpix_python-0.1.6}/setup.cfg +0 -0
@@ -1,10 +1,13 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: fastpix_python
3
- Version: 0.1.4
3
+ Version: 0.1.6
4
4
  Summary: FastPix SDK with both sync and async support
5
- Home-page: https://github.com/fastpix-io/fastpix-python-server-sdk
5
+ Home-page: https://github.com/FastPix/fastpix-python
6
6
  Author: FastPix
7
7
  Author-email: dev@fastpix.io
8
+ Project-URL: GitHub, https://github.com/FastPix/fastpix-python
9
+ Project-URL: Website, https://fastpix.io
10
+ Project-URL: Dashboard, https://dashboard.fastpix.io
8
11
  Classifier: Development Status :: 3 - Alpha
9
12
  Classifier: Intended Audience :: Developers
10
13
  Classifier: License :: OSI Approved :: MIT License
@@ -25,6 +28,7 @@ Dynamic: description
25
28
  Dynamic: description-content-type
26
29
  Dynamic: home-page
27
30
  Dynamic: license-file
31
+ Dynamic: project-url
28
32
  Dynamic: provides-extra
29
33
  Dynamic: requires-dist
30
34
  Dynamic: requires-python
@@ -51,7 +55,7 @@ The FastPix Python SDK simplifies integration with the FastPix platform. This SD
51
55
  For detailed usage, refer to the [FastPix API Reference](https://docs.fastpix.io/reference).
52
56
 
53
57
  ## Latest Release
54
- - Current Version: 0.1.3
58
+ - Current Version: 0.1.5
55
59
  - View our [changelog](CHANELOG.md) for details on recent updates
56
60
  - Download the latest release from our [releases page](https://github.com/FastPix/python-server-sdk/releases/tag/v1.0.0)
57
61
 
@@ -79,7 +83,7 @@ pip install git+https://github.com/FastPix/fastpix_python
79
83
  ### Importing the SDK
80
84
 
81
85
  ```python
82
- from fastpix_python import Client
86
+ from fastpix.client import Client
83
87
  ```
84
88
 
85
89
  ### Initialization:
@@ -87,7 +91,7 @@ from fastpix_python import Client
87
91
  Initialize the FastPix SDK with your API credentials.
88
92
 
89
93
  ```python
90
- from fastpix_python import Client
94
+ from fastpix.client import Client
91
95
 
92
96
  client = Client(username="your-access-token-id", password="your-secret-key")
93
97
  ```
@@ -99,7 +103,7 @@ Below is an example of configuring `FastPix Python SDK` into your project.
99
103
  `Note:-` For Async SDK Users: When using the AsyncClient, all SDK methods must be prefixed with the await keyword.
100
104
  ```python
101
105
  # Sync Usage
102
- from fastpix_python import Client
106
+ from fastpix.client import Client
103
107
 
104
108
  client = Client(username="your-access-token-id", password="your-secret-key")
105
109
 
@@ -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.3
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
 
@@ -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 fastpix_python import Client
50
+ from fastpix.client 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 fastpix_python import Client
58
+ from fastpix.client 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 fastpix_python import Client
70
+ from fastpix.client import Client
71
71
 
72
72
  client = Client(username="your-access-token-id", password="your-secret-key")
73
73
 
@@ -49,7 +49,13 @@ class Client:
49
49
  """
50
50
  try:
51
51
  # Attempt to fetch media to verify credentials
52
- response = self.media.get_all_media()
52
+ media_request_params = {
53
+ "limit": 10, # Number of media assets to fetch in one request
54
+ "offset": 1, # Starting position for the list of media assets
55
+ "orderBy": "desc" # Sort order for the media assets
56
+ }
57
+
58
+ response = self.media.get_all_media(params=media_request_params)
53
59
  return response
54
60
 
55
61
  except APIError as e:
@@ -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,10 +1,13 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: fastpix_python
3
- Version: 0.1.4
3
+ Version: 0.1.6
4
4
  Summary: FastPix SDK with both sync and async support
5
- Home-page: https://github.com/fastpix-io/fastpix-python-server-sdk
5
+ Home-page: https://github.com/FastPix/fastpix-python
6
6
  Author: FastPix
7
7
  Author-email: dev@fastpix.io
8
+ Project-URL: GitHub, https://github.com/FastPix/fastpix-python
9
+ Project-URL: Website, https://fastpix.io
10
+ Project-URL: Dashboard, https://dashboard.fastpix.io
8
11
  Classifier: Development Status :: 3 - Alpha
9
12
  Classifier: Intended Audience :: Developers
10
13
  Classifier: License :: OSI Approved :: MIT License
@@ -25,6 +28,7 @@ Dynamic: description
25
28
  Dynamic: description-content-type
26
29
  Dynamic: home-page
27
30
  Dynamic: license-file
31
+ Dynamic: project-url
28
32
  Dynamic: provides-extra
29
33
  Dynamic: requires-dist
30
34
  Dynamic: requires-python
@@ -51,7 +55,7 @@ The FastPix Python SDK simplifies integration with the FastPix platform. This SD
51
55
  For detailed usage, refer to the [FastPix API Reference](https://docs.fastpix.io/reference).
52
56
 
53
57
  ## Latest Release
54
- - Current Version: 0.1.3
58
+ - Current Version: 0.1.5
55
59
  - View our [changelog](CHANELOG.md) for details on recent updates
56
60
  - Download the latest release from our [releases page](https://github.com/FastPix/python-server-sdk/releases/tag/v1.0.0)
57
61
 
@@ -79,7 +83,7 @@ pip install git+https://github.com/FastPix/fastpix_python
79
83
  ### Importing the SDK
80
84
 
81
85
  ```python
82
- from fastpix_python import Client
86
+ from fastpix.client import Client
83
87
  ```
84
88
 
85
89
  ### Initialization:
@@ -87,7 +91,7 @@ from fastpix_python import Client
87
91
  Initialize the FastPix SDK with your API credentials.
88
92
 
89
93
  ```python
90
- from fastpix_python import Client
94
+ from fastpix.client import Client
91
95
 
92
96
  client = Client(username="your-access-token-id", password="your-secret-key")
93
97
  ```
@@ -99,7 +103,7 @@ Below is an example of configuring `FastPix Python SDK` into your project.
99
103
  `Note:-` For Async SDK Users: When using the AsyncClient, all SDK methods must be prefixed with the await keyword.
100
104
  ```python
101
105
  # Sync Usage
102
- from fastpix_python import Client
106
+ from fastpix.client import Client
103
107
 
104
108
  client = Client(username="your-access-token-id", password="your-secret-key")
105
109
 
@@ -5,7 +5,7 @@ with open("README.md", "r", encoding="utf-8") as fh:
5
5
 
6
6
  setup(
7
7
  name="fastpix_python",
8
- version="0.1.4",
8
+ version="0.1.6",
9
9
  packages=find_packages(),
10
10
  install_requires=[
11
11
  "requests>=2.25.0",
@@ -20,7 +20,12 @@ setup(
20
20
  long_description_content_type="text/markdown",
21
21
  author="FastPix",
22
22
  author_email="dev@fastpix.io",
23
- url="https://github.com/fastpix-io/fastpix-python-server-sdk",
23
+ url="https://github.com/FastPix/fastpix-python",
24
+ project_urls={
25
+ "GitHub": "https://github.com/FastPix/fastpix-python",
26
+ "Website": "https://fastpix.io",
27
+ "Dashboard": "https://dashboard.fastpix.io",
28
+ },
24
29
  classifiers=[
25
30
  "Development Status :: 3 - Alpha",
26
31
  "Intended Audience :: Developers",
@@ -1 +0,0 @@
1
- BASE_URL = "https://v1.fastpix.io"
File without changes
File without changes