Python temple priest api.
Project description
# pyTemplePriestAPI
* Установка с репозитория:
```
$ git clone https://github.com/painca/pyTemplePriestAPI.git
$ cd pyTemplePriestAPi
$ python setup.py install
```
* Запуск:
```
import templepriest
app_id = "app_id"
app_token = "app_token"
user_id = 123456789
api = templepriest.api(app_id, app_token)
api.get_user_code(user_id)
user_token = api.get_user_token(user_id, input("Enter code: ")) #Код придет в лс с ботом
user = api.get_user(user_token)
print("Уровень:", user.lvl, "("+str(user.xp)+"/"+str(user.next_lvl_xp)+")")
```
Для получения app_id и app_token обратится к @serogaq
* Установка с репозитория:
```
$ git clone https://github.com/painca/pyTemplePriestAPI.git
$ cd pyTemplePriestAPi
$ python setup.py install
```
* Запуск:
```
import templepriest
app_id = "app_id"
app_token = "app_token"
user_id = 123456789
api = templepriest.api(app_id, app_token)
api.get_user_code(user_id)
user_token = api.get_user_token(user_id, input("Enter code: ")) #Код придет в лс с ботом
user = api.get_user(user_token)
print("Уровень:", user.lvl, "("+str(user.xp)+"/"+str(user.next_lvl_xp)+")")
```
Для получения app_id и app_token обратится к @serogaq
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
pyTemplePriest-0.1.tar.gz
(3.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyTemplePriest-0.1.tar.gz.
File metadata
- Download URL: pyTemplePriest-0.1.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5cecc725aecb3d68f5cc8e32e170f73a1acab3c2f65f408c3f43874520b4ec30
|
|
| MD5 |
b9b289495c46de846d97e2eeaccda50a
|
|
| BLAKE2b-256 |
f536f5891d4904ed5e8b7e8e63d6856c59e157ef817be5ae4b93b65fb99e36d8
|
File details
Details for the file pyTemplePriest-0.1-py3-none-any.whl.
File metadata
- Download URL: pyTemplePriest-0.1-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1270a7db76d3977be8529e522114dce59bbdc207e5ff4ea9561f176dab84f7c9
|
|
| MD5 |
fa9c483c3370151d478c7d5d8443ad3c
|
|
| BLAKE2b-256 |
42b306f1bd45fdac070dcdb8c07c566ca0df6c5283e0dcdf6694959003c0e77a
|