Skip to main content

Client API for GoTotus; your universal development toolkit

Project description

GoTotus.com APIs' Python bindings

Status: beta, to be released.

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 direct link to the GitHub Website.

Manuals

For detailed manuals please check: docs.gototus.com

Installing

At the moment you will need to checkout this repository and do: pip install -e <path-to-checkout>.

Soon: pip install totus

Building

make setup build 
[...]
make clean

for building, you will need to have a functioning Totus API 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.0.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.0-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

Details for the file totus-0.1.0.tar.gz.

File metadata

  • Download URL: totus-0.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 7520c337cc466e2c328dc2985188db124251c2ac04e345100fece4ad447dbdaa
MD5 ca4bfd6ec8733eb2f017249bc7848f22
BLAKE2b-256 d522c418d1600a9f806162b14507c2853661582c5b614d1c0c192240800c822b

See more details on using hashes here.

File details

Details for the file totus-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: totus-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.7 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e6ebd405ad6fcc9958e8a24f27e77e00941d8f51fdfebfeeab8bd254d4efe823
MD5 6f3fa446f41fe6ea5ddac3f5e42ffa03
BLAKE2b-256 45808cfe4a70801362bf0953272dfaa83b8083bea47c6bd889e423c4d41c4260

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