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.3.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.3-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: totus-0.1.3.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.3.tar.gz
Algorithm Hash digest
SHA256 d4415b7419123c2a7d1f54a388a8c6dcb236498447c2f175b21b2b76315b1e5a
MD5 c500f7d8140295e6af167825a949e98f
BLAKE2b-256 36a9dc3e531ae0dc24706794678d3e87f112224c70af9f3967b190f3257e9571

See more details on using hashes here.

File details

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

File metadata

  • Download URL: totus-0.1.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 72a4643f0db704027d1bef1bb9393b9daf3021893a8ef914b86281251749c5a7
MD5 dad33efbe8f4f433dba79f832aa4a662
BLAKE2b-256 e8046b425431e25bde80ceaba7588a992fe8700a3417c784ea2c0494718d201e

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