Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gunsh1p/marzbanpy
Unofficial library for working with Marzban panel
https://github.com/gunsh1p/marzbanpy
Last synced: about 2 months ago
JSON representation
Unofficial library for working with Marzban panel
- Host: GitHub
- URL: https://github.com/gunsh1p/marzbanpy
- Owner: gunsh1p
- License: mit
- Created: 2024-07-15T18:03:41.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-08-07T23:32:51.000Z (4 months ago)
- Last Synced: 2024-10-01T14:47:02.350Z (2 months ago)
- Language: Python
- Homepage:
- Size: 47.9 KB
- Stars: 20
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-freedom - Marzbanpy
- awesome-freedom - Marzbanpy
README
# marzbanpy
An unofficial library for marzban panel
## Install
```sh
pip install marzbanpy
```## Example
```python
import asynciofrom marzbanpy import Marzban
from marzbanpy.types import User
from marzbanpy.enums.user import UserStatusasync 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](https://github.com/gunsh1p/marzbanpy/blob/main/LICENSE) licence
### Contacts
Telegram Channel: [@thegatesofdisorder](https://t.me/thegatesofdisorder)