fastpix-python 0.1.4__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.
Files changed (28) hide show
  1. {fastpix_python-0.1.4/fastpix_python.egg-info → fastpix_python-0.1.5}/PKG-INFO +2 -2
  2. {fastpix_python-0.1.4 → fastpix_python-0.1.5}/README.md +1 -1
  3. fastpix_python-0.1.5/fastpix/utilis/constants.py +33 -0
  4. {fastpix_python-0.1.4 → fastpix_python-0.1.5/fastpix_python.egg-info}/PKG-INFO +2 -2
  5. {fastpix_python-0.1.4 → fastpix_python-0.1.5}/setup.py +1 -1
  6. fastpix_python-0.1.4/fastpix/utilis/constants.py +0 -1
  7. {fastpix_python-0.1.4 → fastpix_python-0.1.5}/LICENSE +0 -0
  8. {fastpix_python-0.1.4 → fastpix_python-0.1.5}/fastpix/__init__.py +0 -0
  9. {fastpix_python-0.1.4 → fastpix_python-0.1.5}/fastpix/async_client/__init__.py +0 -0
  10. {fastpix_python-0.1.4 → fastpix_python-0.1.5}/fastpix/async_client/api.py +0 -0
  11. {fastpix_python-0.1.4 → fastpix_python-0.1.5}/fastpix/async_client/client.py +0 -0
  12. {fastpix_python-0.1.4 → fastpix_python-0.1.5}/fastpix/async_client/live_streams.py +0 -0
  13. {fastpix_python-0.1.4 → fastpix_python-0.1.5}/fastpix/async_client/media.py +0 -0
  14. {fastpix_python-0.1.4 → fastpix_python-0.1.5}/fastpix/async_client/playback_ids.py +0 -0
  15. {fastpix_python-0.1.4 → fastpix_python-0.1.5}/fastpix/client/__init__.py +0 -0
  16. {fastpix_python-0.1.4 → fastpix_python-0.1.5}/fastpix/client/api.py +0 -0
  17. {fastpix_python-0.1.4 → fastpix_python-0.1.5}/fastpix/client/client.py +0 -0
  18. {fastpix_python-0.1.4 → fastpix_python-0.1.5}/fastpix/client/live_streams.py +0 -0
  19. {fastpix_python-0.1.4 → fastpix_python-0.1.5}/fastpix/client/media.py +0 -0
  20. {fastpix_python-0.1.4 → fastpix_python-0.1.5}/fastpix/client/playback_ids.py +0 -0
  21. {fastpix_python-0.1.4 → fastpix_python-0.1.5}/fastpix/utilis/__init__.py +0 -0
  22. {fastpix_python-0.1.4 → fastpix_python-0.1.5}/fastpix/utilis/exceptions.py +0 -0
  23. {fastpix_python-0.1.4 → fastpix_python-0.1.5}/fastpix/utilis/utilis.py +0 -0
  24. {fastpix_python-0.1.4 → fastpix_python-0.1.5}/fastpix_python.egg-info/SOURCES.txt +0 -0
  25. {fastpix_python-0.1.4 → fastpix_python-0.1.5}/fastpix_python.egg-info/dependency_links.txt +0 -0
  26. {fastpix_python-0.1.4 → fastpix_python-0.1.5}/fastpix_python.egg-info/requires.txt +0 -0
  27. {fastpix_python-0.1.4 → fastpix_python-0.1.5}/fastpix_python.egg-info/top_level.txt +0 -0
  28. {fastpix_python-0.1.4 → fastpix_python-0.1.5}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: fastpix_python
3
- Version: 0.1.4
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.3
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
 
@@ -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
 
@@ -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
2
  Name: fastpix_python
3
- Version: 0.1.4
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.3
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
 
@@ -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.5",
9
9
  packages=find_packages(),
10
10
  install_requires=[
11
11
  "requests>=2.25.0",
@@ -1 +0,0 @@
1
- BASE_URL = "https://v1.fastpix.io"
File without changes
File without changes