A Python application that allows you to interact with the Blitz control panel
Project description
Blitz Async
A Python application that allows you to interact with the Blitz control panel
## How To Install
```
pip install blitz_async
```
```python
from blitz_async import Blitz
blitz = Blitz(
full_address='full_address',
token_api='token',
https=True,
verify_ssl=False,
timeout=30,
)
```
- Add client
```python
result = await blitz.add_user(AddUserInputBody(
username='username',
traffic_limit=0,
expiration_days=0,
unlimited=True
))
```
- Get client's information:
```python
client = await blitz.get_user(username='username')
key_client = await blitz.get_user_uri(username='username')
```
- Delete client from the existing inbound:
```python
result = await blitz.delete_user(username='username')
```
- Update the existing client
```python
result = await blitz.edit_user(
username=username,
body=EditUserInputBody(
blocked=True
)
)
```
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
blitz_async-1.0.0.tar.gz
(7.5 kB
view details)
File details
Details for the file blitz_async-1.0.0.tar.gz.
File metadata
- Download URL: blitz_async-1.0.0.tar.gz
- Upload date:
- Size: 7.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
893961be249e9360dd4121ed9b544130ce9a60293eda1c38e0e91d5b4868c1d0
|
|
| MD5 |
4840862678cb920381c86407f77fdd81
|
|
| BLAKE2b-256 |
9bec5dbf4a04c0cfa620bc8edab05829739c8c9d960f1ef625ec09f44a2edc68
|