qwhale-client
This is the official python client library
The library is simple, all you need is a TOKEN that you can get from our website hare and that it! you are ready to work with our service.
The library works with pymongo so you can use it like you use to.
code example
from qwhale_client import APIClient
TOKEN = "<YOUR API TOKEN>"
client = APIClient(TOKEN)
with client as database:
print(client.activated) # -> True
database["test"].insert_one({"key": "value", "extra": "123456"})
document = database["test"].find_one({"key": "value"})
print(document) # -> {"_id": ObjectId(...), "key": "value", "extra": "123456"}
print(client.activated) # -> False
Another code example
from qwhale_client import APIClient
TOKEN = "<YOUR API TOKEN>"
client = APIClient(TOKEN)
database = client.get_database()
print(client.activated) # -> True
database["test"].insert_one({"key": "value", "extra": "123456"})
document = database["test"].find_one({"key": "value"})
print(document) # -> {"_id": ObjectId(...), "key": "value", "extra": "123456"}
print(client.close()) # -> {'data_saved': True}
print(client.activated) # -> False
Release files for qwhale-client 0.1.20
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| qwhale_client-0.1.20.tar.gz | 2.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| qwhale_client-0.1.20-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.6 kB
Release files / qwhale_client-0.1.20.tar.gz
| Download URL | qwhale_client-0.1.20.tar.gz |
|---|---|
| Size | 2.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
324604354a8df8e04325861734edaa3571885501244727427e9cd2bedf170158
|
|
BLAKE2b-256 checksum How to use checksums |
611a928968e677ab6fcc0419beaa9e038d2223e535a180a390b1624c7dc1361e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2
|
Release files / qwhale_client-0.1.20-py3-none-any.whl
| Download URL | qwhale_client-0.1.20-py3-none-any.whl |
|---|---|
| Size | 3.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f98186f69b9ab77d33d352758bb373c7112a5803f9b7d87ec996fdf9a5ea06b2
|
|
BLAKE2b-256 checksum How to use checksums |
3434965b6d101cc54d691ac93b80a0ebac6a78233c6962bcf2b480ee4f871f68
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2
|