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.5.tar.gz (11.1 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: marzbanpy-1.0.5.tar.gz
  • Upload date:
  • Size: 11.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for marzbanpy-1.0.5.tar.gz
Algorithm Hash digest
SHA256 da7cf2b39fb036f02458fb29e4a56e3fe6d1c1022880f26bed0b3eea76c53a9d
MD5 9f1c4b2434652865d3924929cb2c4f3b
BLAKE2b-256 7a056bfa2934ceff6ebb7779f49dcf41c63dc0b8d4d5e1f4725a7286f8e627ee

See more details on using hashes here.

File details

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

File metadata

  • Download URL: marzbanpy-1.0.5-py3-none-any.whl
  • Upload date:
  • Size: 15.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for marzbanpy-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 9b8fade7fa4c6c32d2ebfb44875b5fe74d5b745d19011168c54d54108c0142a2
MD5 e98c2c86882171510e0d2bf8475919dd
BLAKE2b-256 872d1165e2e064761dddd6e53b0543f18f057d6dcf70bf9bd3c1726cad786711

See more details on using hashes here.

Supported by

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