findwatt-1.0.2
توضیحات
Python client for FindWAtt's API
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | findwatt-1.0.2 |
| نام | findwatt |
| نسخه کتابخانه | 1.0.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | FindWAtt |
| ایمیل نویسنده | luis@findwatt.com |
| آدرس صفحه اصلی | https://bitbucket.org/FwPyClassification/findwatt-python |
| آدرس اینترنتی | https://pypi.org/project/findwatt/ |
| مجوز | - |
# findwatt-python
Python client for FindWAtt's API
# Installation
```
pip install findwatt
```
# Usage
```python
import findwatt
api_key = 'my-api-key'
client = findwatt.Client(api_key)
```
Uploading a file to a new Catalog
```python
p = '/path/to/file.xlsx'
upload = client.upload_file(p, catalog_name='My New Catalog')
```
Uploading a file to an existing Catalog
```python
p = '/path/to/file.xlsx'
upload = client.upload_file(p, catalog_id='my-existing-catalog-id')
```
Listing and searching your Catalogs
```python
my_catalogs = client.catalogs.search()
my_filtered_catalogs = client.catalogs.search(name="Dummy Catalog")
```
Fetching a particular Catalog
```python
my_catalog = client.catalogs.get('dummy-catalog')
```
Fetching a particular Dataset
```python
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
```python
import findwatt
api_key = 'my-api-key'
client = findwatt.Client(api_key, api_url='http://localhost:3000/')
```
نیازمندی
| مقدار | نام |
|---|---|
| <3.0.0,>=2.18.4 | requests |
| <3.0.0,>=2.15.2 | marshmallow |
نحوه نصب
نصب پکیج whl findwatt-1.0.2:
pip install findwatt-1.0.2.whl
نصب پکیج tar.gz findwatt-1.0.2:
pip install findwatt-1.0.2.tar.gz