True Checker for Python
Python client library for True Checker API
How to install
pip install truechecker
How to use
# import TrueChecker
from truechecker import TrueChecker
# create an instance (poss your Telegram bot token here)
checker = TrueChecker("your_bot_token")
# prepare a file with users ids
# you should use string path, pathlib.Path object or io.BaseFile
file_path = "downloads/users.csv"
# send request to create a new job
job = await checker.check_profile(file_path)
print("Job created. ID:", job.id)
# get the status of job
job = await checker.get_job_status(job.id)
print("Job state:", job.state)
print("Job progress:", job.progress)
# if the job is done, let's get the profile
profile = await checker.get_profile("my_bot_username")
print("Bot profile:", profile)
# if you need to cancel the job
job = await checker.cancel_job(job.id)
print("Job state:", job.state) # Cancelled
# Don't forget to close checker on your app's on_shutdown
await checker.close()
CAUTION: it's not a full code example. Await statements should be used within coroutines only.
Contributing
Before making Pull/Merge Requests, please read the Contributing guidelines
Release files for truechecker 2021.10.11
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| truechecker-2021.10.11.tar.gz | 7.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| truechecker-2021.10.11-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 16.2 kB
Release files / truechecker-2021.10.11.tar.gz
| Download URL | truechecker-2021.10.11.tar.gz |
|---|---|
| Size | 7.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
69a1642d478b738f7f00d7ec46219692bace65d6b47ff223e05beb4b83999f5d
|
|
BLAKE2b-256 checksum How to use checksums |
73684993b387c88fb3ec6c78a10a5a6264b596b568632341dce9a94d40cfce90
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.11 CPython/3.8.12 Linux/5.4.109+
|
Release files / truechecker-2021.10.11-py3-none-any.whl
| Download URL | truechecker-2021.10.11-py3-none-any.whl |
|---|---|
| Size | 8.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e2915a1b14bfafe85d4d49065863f3b0f3aec08bdbb40735ff32f7a2448b475d
|
|
BLAKE2b-256 checksum How to use checksums |
d742677fd6b54b22829b9b23689caee21718abed055591cac84b33821166e719
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.11 CPython/3.8.12 Linux/5.4.109+
|