Skip to main content

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!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. 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.7.tar.gz (11.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

marzbanpy-1.0.7-py3-none-any.whl (15.2 kB view details)

Uploaded Python 3

File details

Details for the file marzbanpy-1.0.7.tar.gz.

File metadata

  • Download URL: marzbanpy-1.0.7.tar.gz
  • Upload date:
  • Size: 11.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.14

File hashes

Hashes for marzbanpy-1.0.7.tar.gz
Algorithm Hash digest
SHA256 27974a55ac71e8d1c7195bd46bf5f45c4fdf80b56db0c0327911466cae80b1c7
MD5 91aa933d6a9368b8b5bf72e57e82a359
BLAKE2b-256 8f655130a2295162f82de55c81ee7a30fb480a1decb8e752c31de88af255dc7c

See more details on using hashes here.

File details

Details for the file marzbanpy-1.0.7-py3-none-any.whl.

File metadata

  • Download URL: marzbanpy-1.0.7-py3-none-any.whl
  • Upload date:
  • Size: 15.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.14

File hashes

Hashes for marzbanpy-1.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 ba9fd29f3da961f4714624708bbc31d8d1db6d81c76f0d2947705d61cf1afc65
MD5 e06e0c194cf84cac7b05e22aea3955f4
BLAKE2b-256 fced62bd84721eee868bb1d4233668e8812d0db3ff52c8db764e18ce0db3e9cc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page