Skip to main content

UNKNOWN

Project description

https://travis-ci.org/catalanojuan/tiendanube-python.png?branch=master

TiendaNube API Python Client.

Install

Just pip install tiendanube.

Usage

Query list of products:

> api_key = 'API_KEY'
> from tiendanube import NubeClient
> client = NubeClient(api_key)
> store = client.get_store(1)
> [p.name.es for p in store.products.list()]
[u'Mi primer producto',
 u'Probando publicaci\xf3n',
 u'hola',
 u'Producto de Prueba']

Query one product in particular:

> api_key = 'API_KEY'
> from tiendanube import NubeClient
> client = NubeClient(api_key)
> store = client.get_store(1)
> p = store.products.get(911)
> p.name.es
u'Mi primer producto'

Query images for a given product:

> api_key = 'API_KEY'
> from tiendanube import NubeClient
> client = NubeClient(api_key)
> store = client.get_store(1)
> p = store.products.get(911)
> [i.src for i in p.images.list()]
[u'http://example.com/image.jpg']

Development

Running tests:

$ python -m tests.run

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

tiendanube-1.0.tar.gz (3.6 kB view details)

Uploaded Source

File details

Details for the file tiendanube-1.0.tar.gz.

File metadata

  • Download URL: tiendanube-1.0.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for tiendanube-1.0.tar.gz
Algorithm Hash digest
SHA256 f597c23c35c5f08680db6e105f8b288397b6eeee43f1a814e72e8d9e4f016dfe
MD5 da33cffe1f51abdf6df59e105b215fa0
BLAKE2b-256 7f6bc66fb698c018bcc01ed847466d3f1716b6ffa5e425b7f1fbe7d781b6d64d

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