semvec/pypi-packages huggingface dataset:
vaknl-image 1.3.1
Vakanties.nl pypi package
Requires Python: >=3.7
Keywords: vaknl,pip

# Vaknl
Package for working with Images. Contains the default Image dataclass and methods to get and upload images to gcp.

## Prerequisites
These modules dependant on two things. Firstly the vaknl-gcp package for working with GCP. 
Secondly the environment variable GOOGLE_CLOUD_PROJECT a.k.a. gcp project id. 

## Images

#### Class Acco with Images:
```python
@dataclass
class Acco:
    @dataclass
    class Image:
        url: str  # original url
        bucket_url: str = None  # bucket url
        width: int = None  # pixel with
        height: int = None  # pixel height
        bytes_size: int = None  # bytes size of image
        labels: list = []  # labels of the image
        descriptions: list = []  # descriptions of the image

    giataid: str
    source: str  # provider of the data
    images: list
    timestamp: str = None  # timestamp updated
```

#### get_image(image_url, auth=None):
Gets an images from the internet with a retry fall back of 3 times. 
```
returns width, heigth, size, data
```

#### upload_image_to_storage(id, bucket_name, image_url):
Gets images from the internet and uploads it to storage.
```
returns width, heigth, byte_size, blob_url
```
pyzayo 0.5.0
Zayo API python client

# Python client for Zayo API

This package provides a python 3.8 asyncio based client to access the Zayo
API system.

The following API functional areas are supported:
   * Service Inventory
   * Maintenance

This package also includes a CLI tool `zayocli` to retrieve and display information
obtained via the API.

# Installation

```bash
pip install pyzayo
```

# Before You Begin

You must export two environment variables for use with this library:

  * `ZAYO_CLIENT_ID` - Your unique client ID value
  * `ZAYO_CLIENT_SECRET` - Your unique client secret value

You must obtain these values from Zayo.

# Quick Start

```python
from pyzayo import ZayoClient

# create a client to the Maintenace API authenticate using the ZAYO_ variables
zapi = ZayoClient()

# use the instance methods to retrieve data
cases = zapi.get_cases()
```

# Usage Documentation
**WORK IN PROGRESS**

For now, please use the docstrings by doing:
```python
from pyzayo import ZayoClient

help(ZayoClient)
```

# CLI Tool

The `zayocli` tool supports the maintenance cases and service inventory features:

```shell
Usage: zayocli [OPTIONS] COMMAND [ARGS]...

  Zayo CLI tool to access information via the API.

Options:
  --version  Show the version and exit.
  --help     Show this message and exit.

Commands:
  cases     Maintenance commands.
  services  Inventory Service commands.
```

**cases subcommand**

```bash
Usage: zayocli cases [OPTIONS] COMMAND [ARGS]...

  Maintenance commands.

Options:
  --help  Show this message and exit.

Commands:
  list          Show listing of maintenance caess.
  show-details  Show specific case details.
```

**services subcommand**
```shell
Usage: zayocli services [OPTIONS] COMMAND [ARGS]...

  Inventory Service commands.

Options:
  --help  Show this message and exit.

Commands:
  circuit  Show service record for given circuit ID.
  list     List service inventory.
```

# Zayo API Documentation
   * [Serivce Inventory](http://54.149.224.75/wp-content/uploads/2020/02/Service-Inventory-Wiki.pdf)
   * [Maintenance](http://54.149.224.75/wp-content/uploads/2020/03/Maintenance-Cases-Wiki.pdf)