semvec/pypi-packages huggingface dataset:
tator-tuspy 0.2.5
Fork of a Python client for the tus resumable upload protocol ->  http://tus.io
License: MIT

# tus-py-client [![Build Status](https://travis-ci.org/tus/tus-py-client.svg?branch=master)](https://travis-ci.org/tus/tus-py-client)

> **tus** is a protocol based on HTTP for *resumable file uploads*. Resumable
> means that an upload can be interrupted at any moment and can be resumed without
> re-uploading the previous data again. An interruption may happen willingly, if
> the user wants to pause, or by accident in case of a network issue or server
> outage.

**tus-py-client** is a Python client for uploading files using the *tus* protocol to any remote server supporting it.

## Documentation

See documentation here: http://tus-py-client.readthedocs.io/en/latest/

## Get started

```bash
pip install tuspy
```

Now you are ready to use the api.

``` python
from tusclient import client

# Set Authorization headers if it is required
# by the tus server.
my_client = client.TusClient('http://master.tus.io/files/',
                              headers={'Authorization': 'Basic xxyyZZAAbbCC='})

# Set more headers.
my_client.set_headers({'HEADER_NAME': 'HEADER_VALUE'})

uploader = my_client.uploader('path/to/file.ext', chunk_size=200)

# A file stream may also be passed in place of a file path.
fs = open('path/to/file.ext')
uploader = my_client.uploader(file_stream=fs, chunk_size=200)

# Upload a chunk i.e 200 bytes.
uploader.upload_chunk()

# Uploads the entire file.
# This uploads chunk by chunk.
uploader.upload()

# you could increase the chunk size to reduce the
# number of upload_chunk cycles.
uploader.chunk_size = 800
uploader.upload()

# Continue uploading chunks till total chunks uploaded reaches 1000 bytes.
uploader.upload(stop_at=1000)
```

If the upload url is known and the client headers are not required, uploaders can also be used standalone.

``` python
from tusclient.uploader import Uploader

my_uploader = Uploader('path/to/file.ext',
                       url='http://master.tus.io/files/abcdef123456',
                       chunk_size=200)
```

## License

MIT
vayu 0.0.214
Tools for Air Quality Data Analysis.
License: MIT
Requires Python: >=3.6

### Tools for Air Quality Data Analysis

Python Library to better understand the air quality data through visualizations.

Inspired from the R package [OpenAir][3].


Documentations
==============
View documentations hosted at [GitHub][1].

# Installation

```shell
pip install vayu
```

# Sample Usage
For sample usage please look for jupyer notebooks in `examples/nbs` in the [official repository][2].

[1]: https://sustainability-lab.github.io/vayu/
[2]: https://github.com/sustainability-lab/vayu/
[3]: https://davidcarslaw.github.io/openair/
CradlepointAPIClient 0.0.1
An API Client to use Cradlepoint RESTful API.
License: MIT
Requires Python: >=3.4.0
Keywords: Cradlepoint

# CradlepointAPIClient
[NetCloud API](https://developer.cradlepoint.com/ "NetCloud API")

---

![PyPI - Status](https://img.shields.io/pypi/status/CradlepointAPIClient)
![PyPI - Format](https://img.shields.io/pypi/format/CradlepointAPIClient)
![GitHub](https://img.shields.io/github/license/vsantiago113/CradlepointAPIClient)
![GitHub release (latest by date)](https://img.shields.io/github/v/release/vsantiago113/CradlepointAPIClient)
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/CradlepointAPIClient)

An API Client for Cradlepoint to be able to easily use the API in a more standard way.

## How to install
```ignorelang
$ pip install CradlepointAPIClient
```

## Usage
the argument "method" must be specify every time.

#### Default arguments and attributes
```python
import CradlepointAPIClient

client = CradlepointAPIClient.Client(api_version='v2', verify=True)

client.get(method='', data=None)

# client.headers
# client.url_base

```

#### The first query
```python
import CradlepointAPIClient
import json

client = CradlepointAPIClient.Client(api_version='v2', verify=True)
client.connect(x_cp_api_id='', x_cp_api_key='', x_ecm_api_id='', x_ecm_api_key='')

response = client.get(method='/groups')
print(json.dumps(response.json(), indent=4))

client.disconnect()
```

#### Paging
```python
import CradlepointAPIClient
import json

client = CradlepointAPIClient.Client(api_version='v2', verify=True)
client.connect(x_cp_api_id='', x_cp_api_key='', x_ecm_api_id='', x_ecm_api_key='')

response = client.get(method='/groups', offset=0, limit=1)
print(json.dumps(response.json(), indent=4))

client.disconnect()
```

#### Fields
```python
import CradlepointAPIClient
import json

client = CradlepointAPIClient.Client(api_version='v2', verify=True)
client.connect(x_cp_api_id='', x_cp_api_key='', x_ecm_api_id='', x_ecm_api_key='')

response = client.get(method='/groups', offset=0, limit=1, fields='id,name')
print(json.dumps(response.json(), indent=4))

client.disconnect()
```

#### Filtering
```python
import CradlepointAPIClient
import json

client = CradlepointAPIClient.Client(api_version='v2', verify=True)
client.connect(x_cp_api_id='', x_cp_api_key='', x_ecm_api_id='', x_ecm_api_key='')

response = client.get(method='/groups', offset=0, limit=1, fields='id,name', name='test_group')
print(json.dumps(response.json(), indent=4))

client.disconnect()
```