semvec/pypi-packages huggingface dataset:
y2 2025.4
Why have two when one will do?
Requires Python: >=3.10
Keywords: CLI, Developer, Tool, Utility

# y2

Why have two when one will do?

<p>
<a href="https://pypi.org/project/y2"><img alt="PyPI" src="https://img.shields.io/pypi/v/y2"></a>
<a href="https://pypi.org/project/y2"><img alt="Python veresions supported" src="https://img.shields.io/pypi/pyversions/y2"></a>
<a href="https://github.com/mangoumbrella/y2/blob/main/LICENSE"><img alt="License" src="https://img.shields.io/pypi/l/y2.svg"></a>
</p>

## Changelog

See [CHANGELOG.md](https://github.com/mangoumbrella/y2/blob/main/CHANGELOG.md).

## License

[y2](https://github.com/mangoumbrella/y2) is licensed under the terms of the Apache license. See [LICENSE](https://github.com/mangoumbrella/y2/blob/main/LICENSE) for more information.
asanak-sms-client 0.0.0
Asanak SMS client for sending and reporting messages via REST API
Requires Python: >=3.7

# 📦 Asanak SMS Client (Python)

یک کلاینت پایتونی برای ارسال پیامک از طریق API Asanak

## 🚀 نصب پکیج

### از PyPI:
```bash
pip install asanak-sms-client
```

### از GitHub:
```bash
pip install git+https://github.com/Asanak-Team/python-sms-client
```

## 📚 استفاده از کلاینت

```python
from asanak_sms_client import AsanakSMSClient

client = AsanakSMSClient("username", "password")

```

1- ارسال پیامک تکی یا چند مقصدی
```python

try:
    data = client.send_sms("9821X", "0912000000", "کد تست 1234")
    print(data)
except Exception as e:
    print(e)
```

2- ارسال پیامک نظیر به نظیر (P2P)
```python

try:
    data = client.send_p2p(["9821XX1", "9821XX2"], ["0912000000", "0912000001"], ["کد تست 1234", "کد تست 4567"], [True, False])
    print(data)
except Exception as e:
    print(e)
```

3-  ارسال پیامک خدماتی با قالب (OTP)
```python

try:
    data = client.send_template(1234, {"code": "1234"}, "0912000000", True)
    print(data)
except Exception as e:
    print(e)
```

4-  استعلام وضعیت پیامک
```python

try:
    data = client.msg_status(['12345678', '12345679'])
    print(data)
except Exception as e:
    print(e)
```

5-  مشاهده موجودی اعتبار پیامکی
```python

try:
    data = client.get_credit()
    print(data["credit"])
except Exception as e:
    print(e)
```

6-  مشاهده موجودی اعتبار پیامکی (ریال)
```python

try:
    data = client.get_rial_credit()
    print(data["credit"])
except Exception as e:
    print(e)
```

7-  دریافت لیست قالب‌های پیامک
```python

try:
    data = client.get_templates()
    print(data)
except Exception as e:
    print(e)
```

## 📝 پارامتر‌های ورودی

- `username`: نام کاربری از API Asanak
- `password`: رمز عبور از API Asanak
- `base_url`: آدرس سرور API Asanak (پیش‌فرض: `https://sms.asanak.ir`)

## 📝 پارامتر‌های خروجی
```json
{
    "meta": {
        "status": int,
        "message": string
    },
    "data": list
}
```
films-sdk-sbre 0.0.2
SDK Python pour accéder à l’API MovieLens (Data Analysts/Data Scientists friendly)
Requires Python: >=3.13

# MovieLens SDK - `films_sdk_sbre`

Un SDK Python simple pour interagir avec l’API REST MovieLens. Il est conçu pour les **Data Analysts** et **Data Scientists**, avec une prise en charge native de **Pydantic**, **dictionnaires** et **DataFrames Pandas**.

[![PyPI version](https://badge.fury.io/py/moviesdk.svg)](https://badge.fury.io/py/moviesdk)
[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://opensource.org/licenses/MIT)

---

## Installation

```bash
pip install films_sdk_sbre
```

---

## Configuration

```python
from films_sdk_sbre import MovieClient, MovieConfig

# Configuration avec l’URL de votre API (Render ou locale)
config = MovieConfig(movie_base_url="https://movie-backend-x8iq.onrender.com")
client = MovieClient(config=config)
```

---

## Tester le SDK

### 1. Health check

```python
client.health_check()
# Retourne : {"status": "ok"}
```

### 2. Récupérer un film

```python
movie = client.get_movie(1)
print(movie.title)
```

### 3. Liste de films au format DataFrame

```python
df = client.list_movies(limit=5, output_format="pandas")
print(df.head())
```

---

## Modes de sortie disponibles

Toutes les méthodes de liste (`list_movies`, `list_ratings`, etc.) peuvent retourner :

- des objets **Pydantic** (défaut)
- des **dictionnaires**
- des **DataFrames Pandas**

Exemple :

```python
client.list_movies(limit=10, output_format="dict")
client.list_ratings(limit=10, output_format="pandas")
```

---

## Tester en local

Vous pouvez aussi utiliser une API locale :

```python
config = MovieConfig(movie_base_url="http://localhost:8000")
client = MovieClient(config=config)
```

---

## Public cible

- Data Analysts
- Data Scientists
- Étudiants et curieux en Data
- Développeurs Python

---

## Licence

MIT License

---

## Liens utiles

- API Render : [https://movie-backend-x8iq.onrender.com](https://movie-backend-x8iq.onrender.com)
- PyPI : [https://pypi.org/project/films_sdk_sbre](https://pypi.org/project/films_sdk_sbre)