Metadata-Version: 2.4
Name: zafiaonline
Version: 6.1.3
Summary: A Python API library for interacting with Mafia Online game.
Author: unelected
License-Expression: LGPL-3.0-or-later
Project-URL: Homepage, https://github.com/unelected/zafiaonline.py
Project-URL: Repository, https://github.com/unelected/zafiaonline.py.git
Keywords: Mafia Online API,API Mafia Online
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Requires-Python: >=3.9
Description-Content-Type: text/markdown
Requires-Dist: websockets>=15.0.1
Requires-Dist: msgspec~=0.19
Requires-Dist: aiohttp~=3.12
Requires-Dist: pyyaml~=6.0


<h1 align="center">
  Mafia Online API on Python
</h1>

<p align="center">This library for <a href="https://play.google.com/store/apps/details?id=com.tokarev.mafia">Mafia Online</a></p>

![Python version](https://img.shields.io/badge/python-3.9+-blue.svg)

## ⚠️ Important Update: API Changes!

The original app developer suddenly **changed their API**, which means **most of the requests through the old wrapper are now broken**. Yeah… we weren’t ready for that either.

But here’s the good news:  
The library now supports the new **WebSocket server (wss://)**! 

If you don’t have root access on your device, you can still try to **sniff the server traffic through this library** and interact with the app that way. For now, it’s the best (and only) option without root.

We’ll do our best to keep things up to date. Stay tuned for updates!

P.S. If you run into bugs — feel free to fork ths repository.


# Install

To install the package from [PyPI](https://pypi.org/project/zafiaonline/), use:

```bash
pip install zafiaonline
```


# Import and Auth
```python
import zafiaonline
import asyncio

async def main():
    Mafia = zafiaonline.Client()
    await Mafia.sign_in("email", "password")
asyncio.run(main())
```
