Metadata-Version: 2.5
Name: onlinesimru
Version: 3.0.0
Summary: Typed, zero-dependency Python client for the OnlineSim API: SMS numbers, rent, account and free numbers.
Project-URL: Homepage, https://github.com/s00d/onlinesim-python-api
Project-URL: Documentation, https://s00d.github.io/onlinesim-python-api/
Project-URL: Repository, https://github.com/s00d/onlinesim-python-api
Project-URL: Issues, https://github.com/s00d/onlinesim-python-api/issues
Project-URL: Changelog, https://github.com/s00d/onlinesim-python-api/blob/master/CHANGELOG.md
Author-email: s00d <suppport@onlinesim.ru>
License-Expression: Apache-2.0
License-File: LICENSE
Keywords: autoreg,onlinesim,onlinesim-ru,receive,sms,virtual number
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Communications
Classifier: Topic :: Internet
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Typing :: Typed
Requires-Python: >=3.9
Provides-Extra: dev
Requires-Dist: mypy>=1.13; extra == 'dev'
Requires-Dist: pytest>=8; extra == 'dev'
Requires-Dist: ruff>=0.8; extra == 'dev'
Description-Content-Type: text/markdown

# onlinesim-python-api

[![PyPI](https://img.shields.io/pypi/v/onlinesimru.svg)](https://pypi.org/project/onlinesimru/)
[![CI](https://github.com/s00d/onlinesim-python-api/actions/workflows/ci.yml/badge.svg)](https://github.com/s00d/onlinesim-python-api/actions/workflows/ci.yml)

Typed Python client for the [OnlineSim](https://onlinesim.io) API: SMS numbers, rent, account and free numbers.
Zero runtime dependencies (standard library `urllib`), Python 3.9+, type hints (`py.typed`).

```bash
pip install onlinesimru
```

```python
import os

from onlinesimru import OnlineSim

client = OnlineSim(os.environ["ONLINESIM_KEY"])

b = client.user.balance()
print(f"available: {b['balance'] - b['zbalance']} USD")

order = client.numbers.get_with_number("google", 44)
print(f"enter {order['number']} in the app")
print("code:", client.numbers.wait_code(order["tzid"]))
```

Documentation: **https://s00d.github.io/onlinesim-python-api/** · Changes: [CHANGELOG.md](CHANGELOG.md) · License: Apache-2.0
