An unofficial library for marzban panel
Project description
marzbanpy
An unofficial library for marzban panel
Install
pip install marzbanpy
Example
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())
Contributing
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
Donation
- BTC:
bc1qmrwu6uv00xcvsjvjkwnaw2ky6aenhjgqewg0w4
- USDT (TRC-20):
TT8HPQHdWTqk2QgAx6S6hYgCmgCip19D1Z
License
The project is under the MIT licence
Contacts
Telegram Channel: @thegatesofdisorder
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
marzbanpy-1.0.3.tar.gz
(11.0 kB
view details)
Built Distribution
marzbanpy-1.0.3-py3-none-any.whl
(15.1 kB
view details)
File details
Details for the file marzbanpy-1.0.3.tar.gz
.
File metadata
- Download URL: marzbanpy-1.0.3.tar.gz
- Upload date:
- Size: 11.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 069efa1964805b9dbd6021bea7720f33606a23d54062359061fda49b68b83129 |
|
MD5 | cc18c4a6e9dfb16f01bb44f1e9d7e3b9 |
|
BLAKE2b-256 | 80193be14cba11196b8c4c49317334fa7238f08ab23134e567d1f713d6303f76 |
File details
Details for the file marzbanpy-1.0.3-py3-none-any.whl
.
File metadata
- Download URL: marzbanpy-1.0.3-py3-none-any.whl
- Upload date:
- Size: 15.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8b60405e85018cd082e16a71bb1abf0a7a0ad2997fd910990f9f5b8f01cc9a0a |
|
MD5 | 21e56677a2c52aff2438c2c87a5743f4 |
|
BLAKE2b-256 | 0829a3c1a5b61ee2d81d827e94b844e8b2ebdfe6da7b33260521d3fd7c18a9df |