mira-network 0.1.6__py3-none-any.whl → 0.1.7__py3-none-any.whl

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.
mira_network/__init__.py CHANGED
@@ -1,5 +1,4 @@
1
1
  from .client import MiraClient
2
- from .sync_client import MiraSyncClient
3
2
  from .models import (
4
3
  Message,
5
4
  ModelProvider,
mira_network/client.py CHANGED
@@ -1,4 +1,4 @@
1
- from typing import AsyncIterator, Optional, List, Dict, AsyncGenerator, Union, Any
1
+ from typing import AsyncIterator, Optional, List, Dict, Union, Any
2
2
  import httpx
3
3
  from .models import (
4
4
  AiRequest,
@@ -57,8 +57,6 @@ class MiraClient:
57
57
  **kwargs,
58
58
  )
59
59
 
60
- print("\n\n\n======>", request.model_dump(), "\n\n\n")
61
-
62
60
  response = await self._client.post(
63
61
  f"{self.base_url}/v1/chat/completions",
64
62
  headers=self._get_headers(),
mira_network/models.py CHANGED
@@ -1,4 +1,4 @@
1
- from typing import Optional, List, Dict
1
+ from typing import Optional, List
2
2
  from pydantic import BaseModel, Field, field_validator
3
3
 
4
4
 
@@ -10,7 +10,7 @@ class MiraSyncClient:
10
10
  def __init__(
11
11
  self,
12
12
  base_url: str = "https://apis.mira.network",
13
- api_token: Optional[str] = None,
13
+ api_key: Optional[str] = None,
14
14
  ):
15
15
  """Initialize Mira synchronous client.
16
16
 
@@ -19,7 +19,7 @@ class MiraSyncClient:
19
19
  api_token: Optional API token for authentication
20
20
  """
21
21
  self.base_url = base_url
22
- self.api_token = api_token
22
+ self.api_key = api_key
23
23
  self._session = requests.Session()
24
24
 
25
25
  def __enter__(self):
@@ -30,8 +30,8 @@ class MiraSyncClient:
30
30
 
31
31
  def _get_headers(self) -> Dict[str, str]:
32
32
  headers = {"Content-Type": "application/json"}
33
- if self.api_token:
34
- headers["Authorization"] = f"Bearer {self.api_token}"
33
+ if self.api_key:
34
+ headers["Authorization"] = f"Bearer {self.api_key}"
35
35
  return headers
36
36
 
37
37
  def list_models(self) -> List[str]:
@@ -1,30 +1,43 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mira-network
3
- Version: 0.1.6
3
+ Version: 0.1.7
4
4
  Summary: Python SDK for Mira Network API
5
- Author-Email: sarim2000 <sarimbleedblue@gmail.com>
5
+ Author-Email: mira-network <sdk@mira.network>
6
6
  License: MIT
7
- Requires-Python: ==3.11.*
7
+ Requires-Python: <3.14,>=3.9
8
8
  Requires-Dist: httpx>=0.28.1
9
9
  Requires-Dist: pydantic>=2.10.4
10
10
  Requires-Dist: typing-extensions>=4.8.0
11
11
  Requires-Dist: requests>=2.32.3
12
12
  Requires-Dist: pytest-cov>=6.0.0
13
+ Requires-Dist: pytest>=8.3.4
14
+ Requires-Dist: pytest-asyncio>=0.25.0
15
+ Requires-Dist: ruff>=0.9.3
16
+ Requires-Dist: black>=25.1.0
13
17
  Description-Content-Type: text/markdown
14
18
 
15
19
  <div align="center">
16
- <img src="https://your-domain.com/logo.png" alt="Mira Network SDK" width="200"/>
20
+ <img src="https://mira.network/_next/static/media/nav_logo.dfc4db53.svg" alt="Mira Network SDK" width="100"/>
17
21
  <h1>Mira Network Python SDK</h1>
18
22
  <p><strong>Your Universal Gateway to AI Language Models</strong></p>
19
23
  </div>
20
24
 
21
25
  <p align="center">
22
- <a href="https://badge.fury.io/py/mira-network"><img src="https://badge.fury.io/py/mira-network.svg" alt="PyPI version"></a>
23
- <a href="https://opensource.org/licenses/MIT"><img src="https://img.shields.io/badge/License-MIT-yellow.svg" alt="License: MIT"></a>
24
- <a href="https://github.com/mira-network/python-sdk/actions"><img src="https://github.com/mira-network/python-sdk/workflows/tests/badge.svg" alt="Build Status"></a>
25
- <a href="https://codecov.io/gh/mira-network/python-sdk"><img src="https://codecov.io/gh/mira-network/python-sdk/branch/main/graph/badge.svg" alt="Coverage Status"></a>
26
- <a href="https://pypi.org/project/mira-network/"><img src="https://img.shields.io/pypi/dm/mira-network.svg" alt="Downloads"></a>
27
- <a href="https://discord.gg/mira-network"><img src="https://img.shields.io/discord/1234567890?color=7289da&label=discord" alt="Discord"></a>
26
+ <!-- Version and Download stats -->
27
+ <a href="https://pypi.org/project/mira-network/"><img src="https://img.shields.io/pypi/v/mira-network" alt="PyPI Version"></a>
28
+ <a href="https://pypi.org/project/mira-network/"><img src="https://img.shields.io/pypi/dm/mira-network" alt="Downloads"></a>
29
+
30
+ <!-- Package metadata -->
31
+ <a href="https://pypi.org/project/mira-network/"><img src="https://img.shields.io/pypi/format/mira-network" alt="Format"></a>
32
+ <a href="https://pypi.org/project/mira-network/"><img src="https://img.shields.io/pypi/implementation/mira-network" alt="Implementation"></a>
33
+
34
+ <!-- License -->
35
+ <a href="https://pypi.org/project/mira-network/"><img src="https://img.shields.io/pypi/l/mira-network" alt="License"></a>
36
+
37
+ <!-- Build Status -->
38
+ <a href="https://github.com/Aroha-Labs/mira-network/actions/workflows/ci-sdk.yml">
39
+ <img src="https://github.com/Aroha-Labs/mira-network/actions/workflows/ci-sdk.yml/badge.svg" alt="Build Status">
40
+ </a>
28
41
  </p>
29
42
 
30
43
  <p align="center">
@@ -0,0 +1,9 @@
1
+ mira_network-0.1.7.dist-info/METADATA,sha256=26Wnxl4rxw73IIN5XtBJZ4LuVkr5js5OR333QYXDtfE,9478
2
+ mira_network-0.1.7.dist-info/WHEEL,sha256=thaaA2w1JzcGC48WYufAs8nrYZjJm8LqNfnXFOFyCC4,90
3
+ mira_network-0.1.7.dist-info/entry_points.txt,sha256=6OYgBcLyFCUgeqLgnvMyOJxPCWzgy7se4rLPKtNonMs,34
4
+ mira_network-0.1.7.dist-info/licenses/LICENSE,sha256=bOPoXuA3yH-uo70eTxPrRY4aiy8NkZDVkI8ZVagZIfc,1069
5
+ mira_network/__init__.py,sha256=h4vgSUv520lY8Ij_k5GclS9elYe1gXKfDnq70Zu-7Og,232
6
+ mira_network/client.py,sha256=ykbdbjp5rS0ZSbN7w_SEd57_Hvo1yjExX3ojGjaoSx4,4390
7
+ mira_network/models.py,sha256=VkJjAmVIx3L5U3G0WVcdcEAXnNgud5gjRVfGGsYVtvQ,1799
8
+ mira_network/sync_client.py,sha256=Q5gzIx92mfFsS90hogtzvjNC51tL6zC4HZzQoK0oJ-Q,3389
9
+ mira_network-0.1.7.dist-info/RECORD,,
@@ -1,9 +0,0 @@
1
- mira_network-0.1.6.dist-info/METADATA,sha256=bkV2UrnyIAIYM-cavAb_Cv1KfOlfIowH-F3muw61ZrM,9222
2
- mira_network-0.1.6.dist-info/WHEEL,sha256=thaaA2w1JzcGC48WYufAs8nrYZjJm8LqNfnXFOFyCC4,90
3
- mira_network-0.1.6.dist-info/entry_points.txt,sha256=6OYgBcLyFCUgeqLgnvMyOJxPCWzgy7se4rLPKtNonMs,34
4
- mira_network-0.1.6.dist-info/licenses/LICENSE,sha256=bOPoXuA3yH-uo70eTxPrRY4aiy8NkZDVkI8ZVagZIfc,1069
5
- mira_network/__init__.py,sha256=82x6bhP9_ZhHaBkW-O10F4ADipp1crGQzTaxQ878buA,272
6
- mira_network/client.py,sha256=rM1QJUPCmPdctC-Hu9migBXfP8jlDDOyLuCvdb6nQf4,4470
7
- mira_network/models.py,sha256=aEJiDHEDFIAQMB-C8ZFY5ruRNGJ-U2Cz9vS5nF7GqVg,1805
8
- mira_network/sync_client.py,sha256=vAiQG0SDHO9aROklnPqr0m-AsPIyL8wNfA0L7h5EhPg,3399
9
- mira_network-0.1.6.dist-info/RECORD,,