pilk-clicker
Library for working api pilk-clicker.ru
Installation
pip install pilk-clicker
Usage
Get token (login)
from pilk_clicker.api import Auth
from pilk_clicker.interfaces.auth import ILoginRequest
credentials = ILoginRequest(
username="", password=""
)
response = Auth.login(credentials)
response.auth_token
Logout
from pilk_clicker.api import Auth
from pilk_clicker.interfaces.auth import ITokenRequest
credentials = ITokenRequest(authorization="token")
Auth.logout(credentials)
Logup
from pilk_clicker.api import Auth
from pilk_clicker.interfaces.auth import ILogupRequest
credentials = ILogupRequest(
username="", password="", email=""
)
response = Auth.logup(credentials)
clicker detail
from pilk_clicker.api import Clicker
from pilk_clicker.interfaces.auth import ITokenRequest
credentials = ITokenRequest(authorization="token")
response = Clicker.clicker_detail(credentials)
top list
from pilk_clicker.api import Clicker
from pilk_clicker.interfaces.auth import ITokenRequest
credentials = ITokenRequest(authorization="token")
response = Clicker.top_list(credentials)
save clicker
from pilk_clicker.api import Clicker
from pilk_clicker.interfaces.auth import ITokenRequest
from pilk_clicker.interfaces.clicker import IClickerSaveRequest
credentials = ITokenRequest(authorization="token")
data = IClickerSaveRequest(
arcoin_amount=1,
arcoins_per_click=1,
arcoins_per_seconds=1
)
response = Clicker.save_clicker(data, credentials)
shop user
from pilk_clicker.api import Shop
from pilk_clicker.interfaces.auth import ITokenRequest
credentials = ITokenRequest(authorization="token")
response = Shop.shop_user(credentials)
save item
from pilk_clicker.api import Shop
from pilk_clicker.interfaces.auth import ITokenRequest
from pilk_clicker.interfaces.shop import ISaveItemRequest
credentials = ITokenRequest(authorization="token")
items = Shop.shop_user(credentials)
for item in items:
Shop.save_item(
ISaveItemRequest(id=item.id, amount=item.amount + 1),
credentials
)
Metadata
Release files for pilk-clicker 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pilk_clicker-0.1.0.tar.gz | 4.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pilk_clicker-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 13.1 kB
Release files / pilk_clicker-0.1.0.tar.gz
| Download URL | pilk_clicker-0.1.0.tar.gz |
|---|---|
| Size | 4.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
064e6661b06d292aeee39af8221ed2f141a8dddb84fe42c832a5be31207eac49
|
|
BLAKE2b-256 checksum How to use checksums |
3ef455af52281548b034810a0057a2852a36786386d0cd3ad7f91283f70d10e0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.5.1 CPython/3.10.12 Linux/5.15.0-1042-azure
|
Release files / pilk_clicker-0.1.0-py3-none-any.whl
| Download URL | pilk_clicker-0.1.0-py3-none-any.whl |
|---|---|
| Size | 8.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9b30a12a43bd6574e529f6528a6610c382f4ab53a8b8d4ce7a27b4660e1a0ade
|
|
BLAKE2b-256 checksum How to use checksums |
74dcfe54202879904d9cb4d7073af64272f1ba0660e712111cb5f8cb0b42bc10
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.5.1 CPython/3.10.12 Linux/5.15.0-1042-azure
|