An unofficial library for marzban panel
pip install marzbanpy
import asyncio
from marzbanpy import Marzban
from marzbanpy.types import User
from marzbanpy.enums.user import UserStatus
async def main():
panel = Marzban(
host="example.com",
port=443,
ssl=True,
username="admin",
password="admin123"
)
await panel.auth()
users = await User.all(
panel,
offset=10,
limit=10,
status=UserStatus.ACTIVE
)
print(users)
asyncio.run(main())
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
- BTC:
bc1qmrwu6uv00xcvsjvjkwnaw2ky6aenhjgqewg0w4
- USDT (TRC-20):
TT8HPQHdWTqk2QgAx6S6hYgCmgCip19D1Z
The project is under the MIT licence
Telegram Channel: @thegatesofdisorder