A simple Google DataStore client
Project description
Simple DataStore Client
A simple Google DataStore client that exposes 3 functions.
def set_key(entity_name: str, key_name: str, **properties: Any) -> None: ...
def get_key(entity_name: str, key_name: str) -> Optional[Entity]: ...
def query_entity( entity_name: str, *query_filters: Tuple[str, str, Any], projection: List[str]=None, limit: Optional[int]=None, ) -> Iterator: ...
Examples
set_key
set_key( entity_name=RECHARGE_NOTES_ENTITY, key_name=note_key, username=username, reference=reference, note=notes, )
get_key
get_key(LOGIN_ENTITY, username)
query_entity
product_list = list(query_entity( PRODUCT_ENTITY, ('network', '=', network_name), ('product_type', '=', product_code), ('bundle_size', '=', denomination), projection=['id'], limit=1, )) print(product_list[0]['id'])
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Filename, size | File type | Python version | Upload date | Hashes |
---|---|---|---|---|
Filename, size datastore_client-0.0.2-py3-none-any.whl (2.7 kB) | File type Wheel | Python version py3 | Upload date | Hashes View |
Filename, size datastore_client-0.0.2.tar.gz (1.8 kB) | File type Source | Python version None | Upload date | Hashes View |
Close
Hashes for datastore_client-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f89cbdb16f83661ed9d60e1ff14310b2bfc6df10a76079ff7a82b621e821fb9d |
|
MD5 | c558a63c7b488259c42358980c8db02d |
|
BLAKE2-256 | 603f4b06403a49b1e02b8c984ed9fed065b0dc9770f82562a2ef46fa34d58644 |