cvron-ai 0.1.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.
cvron_ai-0.1.0/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 CVRON
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,41 @@
1
+ Metadata-Version: 2.4
2
+ Name: cvron-ai
3
+ Version: 0.1.0
4
+ Summary: CVRON AI API'leri için resmi Python kütüphanesi - Video, Image, LLM ve Tools
5
+ Author-email: CVRON <info@cvron.com>
6
+ License: MIT
7
+ Project-URL: Homepage, https://cvron.alwaysdata.net
8
+ Requires-Python: >=3.8
9
+ Description-Content-Type: text/markdown
10
+ License-File: LICENSE
11
+ Requires-Dist: requests>=2.25.0
12
+ Dynamic: license-file
13
+
14
+ # CVRON AI - Python Kütüphanesi
15
+
16
+ **cvron.alwaysdata.net** üzerindeki tüm AI API'lerine tek bir kütüphane ile erişin!
17
+
18
+ 🎬 **Video Üretimi** | 🖼️ **Resim Oluşturma** | 📝 **LLM Modelleri** | 🛠️ **Araçlar**
19
+
20
+ ## ✨ Özellikler
21
+ - ✅ **API anahtarı GEREKMEZ**
22
+ - ✅ **Kredi kartı GEREKMEZ**
23
+ - ✅ Tüm modeller tek bir import
24
+
25
+ ## 📦 Kurulum
26
+ ```bash
27
+ pip install cvron-ai
28
+ ```
29
+
30
+ ## 🚀 Hızlı Başlangıç
31
+
32
+ ### 📝 LLM ile Sohbet
33
+ ```python
34
+ from cvron import CvronAPI
35
+
36
+ client = CvronAPI()
37
+
38
+ # Llama ile konuş
39
+ cevap = client.text.llama("Python öğrenmek için en iyi kaynak nedir?")
40
+ print(cevap['response'])
41
+ ```
@@ -0,0 +1,28 @@
1
+ # CVRON AI - Python Kütüphanesi
2
+
3
+ **cvron.alwaysdata.net** üzerindeki tüm AI API'lerine tek bir kütüphane ile erişin!
4
+
5
+ 🎬 **Video Üretimi** | 🖼️ **Resim Oluşturma** | 📝 **LLM Modelleri** | 🛠️ **Araçlar**
6
+
7
+ ## ✨ Özellikler
8
+ - ✅ **API anahtarı GEREKMEZ**
9
+ - ✅ **Kredi kartı GEREKMEZ**
10
+ - ✅ Tüm modeller tek bir import
11
+
12
+ ## 📦 Kurulum
13
+ ```bash
14
+ pip install cvron-ai
15
+ ```
16
+
17
+ ## 🚀 Hızlı Başlangıç
18
+
19
+ ### 📝 LLM ile Sohbet
20
+ ```python
21
+ from cvron import CvronAPI
22
+
23
+ client = CvronAPI()
24
+
25
+ # Llama ile konuş
26
+ cevap = client.text.llama("Python öğrenmek için en iyi kaynak nedir?")
27
+ print(cevap['response'])
28
+ ```
@@ -0,0 +1,5 @@
1
+ from .client import CvronAPI
2
+ from .exceptions import CvronAPIError
3
+
4
+ __version__ = "0.1.0"
5
+ __all__ = ['CvronAPI', 'CvronAPIError']
@@ -0,0 +1,46 @@
1
+ import requests
2
+ from .exceptions import CvronAPIError
3
+
4
+ class CvronAPI:
5
+ """CVRON AI API istemcisi - Hiçbir API anahtarı gerekmez!"""
6
+
7
+ def __init__(self, base_url="https://cvron.alwaysdata.net"):
8
+ self.base_url = base_url.rstrip('/')
9
+ self.session = requests.Session()
10
+ self.session.headers.update({
11
+ "User-Agent": "CvronPythonClient/1.0",
12
+ "Accept": "application/json"
13
+ })
14
+
15
+ # Tüm endpoint'leri bağla
16
+ from .endpoints.video import VideoEndpoints
17
+ from .endpoints.image import ImageEndpoints
18
+ from .endpoints.text import TextEndpoints
19
+ from .endpoints.tools import ToolsEndpoints
20
+
21
+ self.video = VideoEndpoints(self)
22
+ self.image = ImageEndpoints(self)
23
+ self.text = TextEndpoints(self)
24
+ self.tools = ToolsEndpoints(self)
25
+
26
+ def _request(self, method, endpoint, **kwargs):
27
+ """Merkezi istek yönetimi."""
28
+ url = f"{self.base_url}/{endpoint.lstrip('/')}"
29
+
30
+ try:
31
+ response = self.session.request(method, url, **kwargs)
32
+ response.raise_for_status()
33
+
34
+ content_type = response.headers.get('content-type', '')
35
+ if 'application/json' in content_type:
36
+ return response.json()
37
+ return response.text
38
+
39
+ except requests.exceptions.RequestException as e:
40
+ raise CvronAPIError(f"API isteği başarısız: {e}") from e
41
+
42
+ def get(self, endpoint, **kwargs):
43
+ return self._request('GET', endpoint, **kwargs)
44
+
45
+ def post(self, endpoint, **kwargs):
46
+ return self._request('POST', endpoint, **kwargs)
File without changes
@@ -0,0 +1,22 @@
1
+ from typing import Optional
2
+ from ..client import CvronAPI
3
+
4
+ class ImageEndpoints:
5
+ def __init__(self, client: CvronAPI):
6
+ self.client = client
7
+
8
+ def upload_image(self, image_url: str) -> dict:
9
+ """FileBin ile resim yükler ve hosted URL alır."""
10
+ return self.client.get("/cvronai/up.php", params={"url": image_url})
11
+
12
+ def flux_dev_generate(self, prompt: str) -> dict:
13
+ """Flux Dev ile resim oluşturur."""
14
+ return self.client.get("/cvronai/flux-dev.php", params={"prompt": prompt})
15
+
16
+ def image_to_image(self, prompt: str, image_url: str) -> dict:
17
+ """Mevcut resmi prompt ile düzenler."""
18
+ params = {
19
+ "prompt": prompt,
20
+ "image_url": image_url
21
+ }
22
+ return self.client.get("/cvronai/image2image.php", params=params)
@@ -0,0 +1,34 @@
1
+ from typing import Optional
2
+ from ..client import CvronAPI
3
+
4
+ class TextEndpoints:
5
+ def __init__(self, client: CvronAPI):
6
+ self.client = client
7
+
8
+ def llama(self, prompt: str) -> dict:
9
+ """Llama LLM ile metin üretir."""
10
+ return self.client.get("/cvronai/llama.php", params={"prompt": prompt})
11
+
12
+ def gpt5_nano(self, prompt: str) -> dict:
13
+ """GPT-5 Nano LLM ile metin üretir."""
14
+ return self.client.get("/cvronai/gpt-5-nano.php", params={"prompt": prompt})
15
+
16
+ def gemini(self, prompt: str) -> dict:
17
+ """Gemini 2.5 Flash LLM ile metin üretir."""
18
+ return self.client.get("/cvronai/gemini-2.5-flash-lite.php", params={"prompt": prompt})
19
+
20
+ def deepseek(self, prompt: str) -> dict:
21
+ """DeepSeek V3.2 LLM ile metin üretir."""
22
+ return self.client.get("/cvronai/deepseek-v3.2.php", params={"prompt": prompt})
23
+
24
+ def chat(self, prompt: str, model: str = "llama") -> dict:
25
+ """Seçilen model ile sohbet eder."""
26
+ models = {
27
+ "llama": "/cvronai/llama.php",
28
+ "gpt5": "/cvronai/gpt-5-nano.php",
29
+ "gemini": "/cvronai/gemini-2.5-flash-lite.php",
30
+ "deepseek": "/cvronai/deepseek-v3.2.php"
31
+ }
32
+
33
+ endpoint = models.get(model.lower(), models["llama"])
34
+ return self.client.get(endpoint, params={"prompt": prompt})
@@ -0,0 +1,18 @@
1
+ from typing import Optional
2
+ from ..client import CvronAPI
3
+
4
+ class ToolsEndpoints:
5
+ def __init__(self, client: CvronAPI):
6
+ self.client = client
7
+
8
+ def get_proxies(self) -> dict:
9
+ """Canlı HTTPS proxy listesi alır."""
10
+ return self.client.get("/cvronapi/sslproxy.php")
11
+
12
+ def shorten_url(self, url: str) -> dict:
13
+ """URL kısaltır."""
14
+ return self.client.get("/cvronapi/url-shortener.php", params={"url": url})
15
+
16
+ def get_windows_keys(self) -> dict:
17
+ """Güncel Windows ürün anahtarlarını alır."""
18
+ return self.client.get("/cvronapi/win-key.php")
@@ -0,0 +1,20 @@
1
+ from typing import Optional
2
+ from ..client import CvronAPI
3
+
4
+ class VideoEndpoints:
5
+ def __init__(self, client: CvronAPI):
6
+ self.client = client
7
+
8
+ def wan22_image_to_video(self, prompt: str, image_url: str) -> dict:
9
+ """
10
+ WAN 22 ile resimden video oluşturur.
11
+
12
+ Args:
13
+ prompt: Video açıklaması
14
+ image_url: Kaynak resmin URL'si
15
+ """
16
+ params = {
17
+ "prompt": prompt,
18
+ "image": image_url
19
+ }
20
+ return self.client.get("/cvronai/wan22.php", params=params)
@@ -0,0 +1,15 @@
1
+ class CvronAPIError(Exception):
2
+ """CVRON API hata sınıfı."""
3
+ pass
4
+
5
+ class CvronConnectionError(CvronAPIError):
6
+ """Bağlantı hatası."""
7
+ pass
8
+
9
+ class CvronNotFoundError(CvronAPIError):
10
+ """Kaynak bulunamadı (404)."""
11
+ pass
12
+
13
+ class CvronServerError(CvronAPIError):
14
+ """Sunucu hatası (500)."""
15
+ pass
@@ -0,0 +1,41 @@
1
+ Metadata-Version: 2.4
2
+ Name: cvron-ai
3
+ Version: 0.1.0
4
+ Summary: CVRON AI API'leri için resmi Python kütüphanesi - Video, Image, LLM ve Tools
5
+ Author-email: CVRON <info@cvron.com>
6
+ License: MIT
7
+ Project-URL: Homepage, https://cvron.alwaysdata.net
8
+ Requires-Python: >=3.8
9
+ Description-Content-Type: text/markdown
10
+ License-File: LICENSE
11
+ Requires-Dist: requests>=2.25.0
12
+ Dynamic: license-file
13
+
14
+ # CVRON AI - Python Kütüphanesi
15
+
16
+ **cvron.alwaysdata.net** üzerindeki tüm AI API'lerine tek bir kütüphane ile erişin!
17
+
18
+ 🎬 **Video Üretimi** | 🖼️ **Resim Oluşturma** | 📝 **LLM Modelleri** | 🛠️ **Araçlar**
19
+
20
+ ## ✨ Özellikler
21
+ - ✅ **API anahtarı GEREKMEZ**
22
+ - ✅ **Kredi kartı GEREKMEZ**
23
+ - ✅ Tüm modeller tek bir import
24
+
25
+ ## 📦 Kurulum
26
+ ```bash
27
+ pip install cvron-ai
28
+ ```
29
+
30
+ ## 🚀 Hızlı Başlangıç
31
+
32
+ ### 📝 LLM ile Sohbet
33
+ ```python
34
+ from cvron import CvronAPI
35
+
36
+ client = CvronAPI()
37
+
38
+ # Llama ile konuş
39
+ cevap = client.text.llama("Python öğrenmek için en iyi kaynak nedir?")
40
+ print(cevap['response'])
41
+ ```
@@ -0,0 +1,17 @@
1
+ LICENSE
2
+ README.md
3
+ pyproject.toml
4
+ cvron/__init__.py
5
+ cvron/client.py
6
+ cvron/exceptions.py
7
+ cvron/endpoints/__init__.py
8
+ cvron/endpoints/image.py
9
+ cvron/endpoints/text.py
10
+ cvron/endpoints/tools.py
11
+ cvron/endpoints/video.py
12
+ cvron_ai.egg-info/PKG-INFO
13
+ cvron_ai.egg-info/SOURCES.txt
14
+ cvron_ai.egg-info/dependency_links.txt
15
+ cvron_ai.egg-info/requires.txt
16
+ cvron_ai.egg-info/top_level.txt
17
+ tests/test_api.py
@@ -0,0 +1 @@
1
+ requests>=2.25.0
@@ -0,0 +1 @@
1
+ cvron
@@ -0,0 +1,18 @@
1
+ [build-system]
2
+ requires = ["setuptools>=61.0", "wheel"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "cvron-ai"
7
+ version = "0.1.0"
8
+ description = "CVRON AI API'leri için resmi Python kütüphanesi - Video, Image, LLM ve Tools"
9
+ readme = "README.md"
10
+ authors = [{name = "CVRON", email = "info@cvron.com"}]
11
+ license = {text = "MIT"}
12
+ requires-python = ">=3.8"
13
+ dependencies = [
14
+ "requests>=2.25.0"
15
+ ]
16
+
17
+ [project.urls]
18
+ Homepage = "https://cvron.alwaysdata.net"
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,13 @@
1
+ import unittest
2
+ from cvron import CvronAPI
3
+
4
+ class TestCvronAPI(unittest.TestCase):
5
+ def setUp(self):
6
+ self.client = CvronAPI()
7
+
8
+ def test_llama(self):
9
+ res = self.client.text.llama("Test")
10
+ self.assertIsNotNone(res)
11
+
12
+ if __name__ == '__main__':
13
+ unittest.main()