Skip to main content

Python wrapper for the Ometria API

Project description

=======
Ometria
=======

.. image:: https://badge.fury.io/py/ometria.png
:target: http://badge.fury.io/py/ometria

.. image:: https://travis-ci.org/nwjlyons/ometria.png?branch=master
:target: https://travis-ci.org/nwjlyons/ometria

.. image:: https://pypip.in/d/ometria/badge.png
:target: https://crate.io/packages/ometria?version=latest


Python wrapper for the `Ometria API`_.

Install
=======

::

pip install ometria

Usage
====

::

import ometria

client = ometria.Client(key="...", secret="...")

# GET /products?offset=10&limit=10
r = client.products.get(params={"offset":10, "limit":10})

r.response # Original response object from Python requests library.
r.data # Dictionary from HTTP response body.

# PUT /products/1234
client.products(1234).put(data={"url": "http://example.com",
"title": "T-shirt", "price": 5.99})

# POST /transactions/1234/lineitems
client.transactions(1234).lineitems.post(data={
"product_id": "blue_tshirt", "quantity": 3, "unit_price": 2.31, "subtotal": 14.32, "total": 6.04})

# POST /products/_bulk
client.products._bulk.post(data=[{"id": ""}, {"id": ""}])

.. _Ometria API: http://docs.ometria.com/Developers/




History
-------

0.1.0 (2014-04-23)
++++++++++++++++++

* First release on PyPI.

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

ometria-0.1.5.tar.gz (5.9 kB view details)

Uploaded Source

File details

Details for the file ometria-0.1.5.tar.gz.

File metadata

  • Download URL: ometria-0.1.5.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for ometria-0.1.5.tar.gz
Algorithm Hash digest
SHA256 5a3d37173138fbfce4de651ac4810045ab482b708b5ae2da9e43aca130b28541
MD5 a3e7e64cf72ace743b437f13c1820589
BLAKE2b-256 c84d15bd85610a50998880c6f662dcc723c35955608425760ec7e535cf5ed4d7

See more details on using hashes here.

Provenance

Supported by

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