saverapi-client 1.0.0__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.
@@ -0,0 +1,27 @@
1
+ Metadata-Version: 2.4
2
+ Name: saverapi-client
3
+ Version: 1.0.0
4
+ Summary: Python client for SaverAPI.NET
5
+ Author-email: "SaverAPI.NET" <saverapinet@gmail.com>
6
+ Requires-Python: >=3.7
7
+ Description-Content-Type: text/markdown
8
+ Requires-Dist: requests
9
+
10
+ # SaverAPI Client 🚀
11
+
12
+ Official Python client for SaverAPI.NET
13
+
14
+ ## Installation
15
+ pip install saverapi-client
16
+
17
+ ## Usage
18
+
19
+ from saverapi import SaverAPI
20
+
21
+ api = SaverAPI(api_key="YOUR_API_KEY")
22
+
23
+ data = api.download("https://www.instagram.com/reel/xxxx/")
24
+ print(data)
25
+
26
+ yt = api.youtube("https://youtu.be/OORSiK8ScTI", format="720")
27
+ print(yt)
@@ -0,0 +1,18 @@
1
+ # SaverAPI Client 🚀
2
+
3
+ Official Python client for SaverAPI.NET
4
+
5
+ ## Installation
6
+ pip install saverapi-client
7
+
8
+ ## Usage
9
+
10
+ from saverapi import SaverAPI
11
+
12
+ api = SaverAPI(api_key="YOUR_API_KEY")
13
+
14
+ data = api.download("https://www.instagram.com/reel/xxxx/")
15
+ print(data)
16
+
17
+ yt = api.youtube("https://youtu.be/OORSiK8ScTI", format="720")
18
+ print(yt)
@@ -0,0 +1,14 @@
1
+ [project]
2
+ name = "saverapi-client"
3
+ version = "1.0.0"
4
+ description = "Python client for SaverAPI.NET"
5
+ readme = "README.md"
6
+ requires-python = ">=3.7"
7
+ authors = [
8
+ { name="SaverAPI.NET", email="saverapinet@gmail.com" }
9
+ ]
10
+ dependencies = ["requests"]
11
+
12
+ [build-system]
13
+ requires = ["setuptools", "wheel"]
14
+ build-backend = "setuptools.build_meta"
@@ -0,0 +1,3 @@
1
+ from .client import SaverAPI
2
+
3
+ __all__ = ["SaverAPI"]
@@ -0,0 +1,32 @@
1
+ import requests
2
+
3
+ class SaverAPI:
4
+ BASE_URL = "https://saverapi.net/api"
5
+
6
+ def __init__(self, api_key: str, timeout: int = 30):
7
+ self.api_key = api_key
8
+ self.timeout = timeout
9
+ self.headers = {
10
+ "x-api-key": self.api_key,
11
+ "Content-Type": "application/json"
12
+ }
13
+
14
+ def _request(self, endpoint: str, params: dict):
15
+ url = f"{self.BASE_URL}{endpoint}"
16
+ response = requests.get(url, params=params, headers=self.headers, timeout=self.timeout)
17
+
18
+ if response.status_code != 200:
19
+ raise Exception(f"API Error: {response.status_code} - {response.text}")
20
+
21
+ return response.json()
22
+
23
+ def youtube(self, url: str, format: str = "720"):
24
+ return self._request("/youtube-api", {
25
+ "url": url,
26
+ "farmat": format
27
+ })
28
+
29
+ def download(self, url: str):
30
+ return self._request("/all-in-one-downloader-api", {
31
+ "url": url
32
+ })
@@ -0,0 +1,27 @@
1
+ Metadata-Version: 2.4
2
+ Name: saverapi-client
3
+ Version: 1.0.0
4
+ Summary: Python client for SaverAPI.NET
5
+ Author-email: "SaverAPI.NET" <saverapinet@gmail.com>
6
+ Requires-Python: >=3.7
7
+ Description-Content-Type: text/markdown
8
+ Requires-Dist: requests
9
+
10
+ # SaverAPI Client 🚀
11
+
12
+ Official Python client for SaverAPI.NET
13
+
14
+ ## Installation
15
+ pip install saverapi-client
16
+
17
+ ## Usage
18
+
19
+ from saverapi import SaverAPI
20
+
21
+ api = SaverAPI(api_key="YOUR_API_KEY")
22
+
23
+ data = api.download("https://www.instagram.com/reel/xxxx/")
24
+ print(data)
25
+
26
+ yt = api.youtube("https://youtu.be/OORSiK8ScTI", format="720")
27
+ print(yt)
@@ -0,0 +1,9 @@
1
+ README.md
2
+ pyproject.toml
3
+ saverapi/__init__.py
4
+ saverapi/client.py
5
+ saverapi_client.egg-info/PKG-INFO
6
+ saverapi_client.egg-info/SOURCES.txt
7
+ saverapi_client.egg-info/dependency_links.txt
8
+ saverapi_client.egg-info/requires.txt
9
+ saverapi_client.egg-info/top_level.txt
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+