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.get_token()
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.1.tar.gz
(10.9 kB
view details)
Built Distribution
marzbanpy-1.0.1-py3-none-any.whl
(15.0 kB
view details)
File details
Details for the file marzbanpy-1.0.1.tar.gz
.
File metadata
- Download URL: marzbanpy-1.0.1.tar.gz
- Upload date:
- Size: 10.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | aedfccacdf30c3672610c90f0efaf79aae420fa6d9b12698bcfc09995c65ac09 |
|
MD5 | 5db77c4e77bb19d2a7fb8e7040e5daf5 |
|
BLAKE2b-256 | 2eff0a71a50cfb060ad926f541e197d8c3ff4b256a603379b8be5febce0b74ab |
File details
Details for the file marzbanpy-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: marzbanpy-1.0.1-py3-none-any.whl
- Upload date:
- Size: 15.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 288e5039e0b5825555f8c6263b537df9afc9dcd2626651dd909ed1a9bab21d43 |
|
MD5 | 1772a622813c46695a328fab6c2b2bea |
|
BLAKE2b-256 | eea7cfa8403ae77efd210635986f4bb857b6b37d717d025c392c158611dd799f |