Client API for GoTotus; your universal development toolkit
Project description
GoTotus.com APIs' Python bindings
Basic Usage
TOTUS_KEY environment variable will be used to pick the api
key (create one here)
from totus import Totus
t = Totus() # picks the key from TOTUS_KEY envar
t = Totus(api_key="<your-api-key>")
reference = t.Reference() # the Reference set of APIs
print(reference.GeoPOI(gh='69y7pkxfc', distance=1000, what='shop', limit=2))
it will print:
[
{
"id": 4675113766,
"lat": -34.60362,
"lon": -58.3824,
"gh": "69y7pkx5r3",
"dist": 71.6,
"info": {
"addr:city": "Ciudad Aut\u00f3noma de Buenos Aires",
"addr:country": "AR",
"addr:street": "Avenida Corrientes",
"name": "Maxikiosko",
"shop": "kiosk"
}
},
{
"id": 12179098601,
"lat": -34.60395,
"lon": -58.38076,
"gh": "69y7ps83ms",
"dist": 84,
"info": {
"addr:housenumber": "999",
"addr:street": "Avenida Presidente Roque S\u00e1enz Pe\u00f1a",
"name": "I Love Gifts",
"shop": "gift"
}
}
]
Examples
For further examples, check the examples/ folder in this project.
Or a public copy at the GitHub Website.
Manuals
For detailed manuals about Totus please check: docs.gototus.com
Installing
pip install totus
Building
make setup build
[...]
make clean
Local Test: pip install -e <src_folder>.
for building, you will need to have a functioning Totus API key in the envvar TOTUS_KEY.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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 totus-0.1.4.tar.gz.
File metadata
- Download URL: totus-0.1.4.tar.gz
- Upload date:
- Size: 5.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
88b91ea42f95cfb0ee95d0d480baba5e9f7010584f8a2de46799810b86a1e57d
|
|
| MD5 |
eeed552fea915b923f6d3ea0378901c8
|
|
| BLAKE2b-256 |
28d7252ff598f8c1016f1c61c7829f3ed09514a15c4068323879308c90241475
|
File details
Details for the file totus-0.1.4-py3-none-any.whl.
File metadata
- Download URL: totus-0.1.4-py3-none-any.whl
- Upload date:
- Size: 6.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
05921af0d2957fbb891b7160cd5ec4e529499a3f56f0ce3368d73787bbd8027c
|
|
| MD5 |
5badef6bd2b6e95d0e368a317588e42d
|
|
| BLAKE2b-256 |
a032947d033d200ac8be81af383eae7da2a9c2b27f15d48b1c4bfa17aecdb423
|