Skip to main content

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

PyPi.org project page

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

totus-0.1.4.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

totus-0.1.4-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

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

Hashes for totus-0.1.4.tar.gz
Algorithm Hash digest
SHA256 88b91ea42f95cfb0ee95d0d480baba5e9f7010584f8a2de46799810b86a1e57d
MD5 eeed552fea915b923f6d3ea0378901c8
BLAKE2b-256 28d7252ff598f8c1016f1c61c7829f3ed09514a15c4068323879308c90241475

See more details on using hashes here.

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

Hashes for totus-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 05921af0d2957fbb891b7160cd5ec4e529499a3f56f0ce3368d73787bbd8027c
MD5 5badef6bd2b6e95d0e368a317588e42d
BLAKE2b-256 a032947d033d200ac8be81af383eae7da2a9c2b27f15d48b1c4bfa17aecdb423

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page