Skip to main content

Python client for FindWAtt's API

Project description

findwatt-python

Python client for FindWAtt's API

Installation

pip install findwatt

Usage

import findwatt

api_key = 'my-api-key'
client = findwatt.Client(api_key)

Uploading a file to a new Catalog

p = '/path/to/file.xlsx'
upload = client.upload_file(p, catalog_name='My New Catalog')

Uploading a file to an existing Catalog

p = '/path/to/file.xlsx'
upload = client.upload_file(p, catalog_id='my-existing-catalog-id')

Listing and searching your Catalogs

my_catalogs = client.catalogs.search()
my_filtered_catalogs = client.catalogs.search(name="Dummy Catalog")

Fetching a particular Catalog

my_catalog = client.catalogs.get('dummy-catalog')

Fetching a particular Dataset

my_dataset = client.datasets.get('my-dataset')

Advanced Usage

findwatt.Client takes an optional api_url parameter that can be set to use a mock or staging API

import findwatt

api_key = 'my-api-key'
client = findwatt.Client(api_key, api_url='http://localhost:3000/')

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

findwatt-1.0.2.tar.gz (6.4 kB view details)

Uploaded Source

Built Distributions

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

findwatt-1.0.2-py3.6.egg (24.5 kB view details)

Uploaded Egg

findwatt-1.0.2-py3-none-any.whl (9.9 kB view details)

Uploaded Python 3

File details

Details for the file findwatt-1.0.2.tar.gz.

File metadata

  • Download URL: findwatt-1.0.2.tar.gz
  • Upload date:
  • Size: 6.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.6

File hashes

Hashes for findwatt-1.0.2.tar.gz
Algorithm Hash digest
SHA256 eed5b3b2730e341331dd47f774c0342713fbabdd946a018afe9c7103abdc11a3
MD5 89beffb91002a286b4eeb26b8a4acf2e
BLAKE2b-256 9278dd5848e06f6347a8813b34a6f5f70687bf3514c03b0fb875516d2f068bc5

See more details on using hashes here.

File details

Details for the file findwatt-1.0.2-py3.6.egg.

File metadata

  • Download URL: findwatt-1.0.2-py3.6.egg
  • Upload date:
  • Size: 24.5 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.6

File hashes

Hashes for findwatt-1.0.2-py3.6.egg
Algorithm Hash digest
SHA256 1d00a2fbd4ba8ebe00300d5ecddd0fef39f25386c8b11db6a03a4452b493d8be
MD5 31cfa09b28e03cc7762f6c28d07733ce
BLAKE2b-256 f9b60d8eb5d9d92a508efaa066b32d26c516ea88e5277fa2eea2872e9c959e11

See more details on using hashes here.

File details

Details for the file findwatt-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: findwatt-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 9.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.6

File hashes

Hashes for findwatt-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4dba1d6b824e98cf794b0c9877526a1fbfcdbd8e026cda9d7d587f63621ef23c
MD5 a02570098d881a0a3155ce00c0a82e5c
BLAKE2b-256 70f770b942453219317a476ccc84de7bac295f20d9ed3b2592e1996da95e7351

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