Skip to main content

SDK for interacting with Posmo DataMarket API

Project description

Posmo DataMarket SDK

This is a Python SDK for interacting with the Posmo DataMarket API.

Usage

Install with pip:

pip install datamap.posmo_datamarket_sdk

Import Posmo DataMarket client:

from datamap.posmo_datamarket_sdk import PosmoDataMarket

Initialize client:

datamarket = PosmoDataMarket(project_code='project', username='username', password='password')

Optionally you can provide username and password in environment variables:

  • Username: POSMO_USERNAME
  • Password: POSMO_PASSWORD

Client methods

query(query)

Executes provided SQL query and returns result.

result = datamarket.query('SELECT * FROM moving;')

schema()

Opens database schema documentation in default browser.

datamarket.schema()

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

datamap_posmo_datamarket_sdk-1.0.0.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

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

datamap_posmo_datamarket_sdk-1.0.0-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file datamap_posmo_datamarket_sdk-1.0.0.tar.gz.

File metadata

File hashes

Hashes for datamap_posmo_datamarket_sdk-1.0.0.tar.gz
Algorithm Hash digest
SHA256 ca93765af798aabf647d946c9951552fed816fd57d10c090dbd118e611678ff3
MD5 390745d405825c3ecc17d1f039e422bb
BLAKE2b-256 84ce076556882c68ef114e4f68fabf7128d23f4b999a44a4b2a3c6ce6ac917a3

See more details on using hashes here.

File details

Details for the file datamap_posmo_datamarket_sdk-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for datamap_posmo_datamarket_sdk-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0aaf6e3cb15afa21484901f1d2f0988e06195e7e5abb36eb285dcb3dbe1fe5e6
MD5 e4f4b72bad8db953ed5200ae04fe37e2
BLAKE2b-256 3c070b4d4f98ca72643b857e04455f7c23a6b529dbe512f010584bb16209a172

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