semvec/pypi-packages huggingface dataset:
keras-bucket-tensorboard-callback 1.0.4
A Keras Callback that uploads your Tensorboard logs to a Cloud Bucket

# Keras Bucket Tensorboard Callback

[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![PyPI version](https://badge.fury.io/py/keras-bucket-tensorboard-callback.svg)](https://badge.fury.io/py/keras-bucket-tensorboard-callback)
[![Maintainability](https://api.codeclimate.com/v1/badges/74540030ca0b44ff2dfb/maintainability)](https://codeclimate.com/github/neuronio-ai/keras_bucket_tensorboard_callback/maintainability)
[![Test Coverage](https://api.codeclimate.com/v1/badges/74540030ca0b44ff2dfb/test_coverage)](https://codeclimate.com/github/neuronio-ai/keras_bucket_tensorboard_callback/test_coverage)

A Keras Callback that uploads your Tensorboard logs to a Cloud Bucket

*Currently, only Google Cloud Platform Storage is supported. Very little effort
is needed to support AWS S3, so feel free to contribute to this project.*

## Installation
```bash
pip install keras-bucket-tensorboard-callback
```

## Basic usage

The following example trains uploads the Tensorboard logs to you GCP Storage
bucket `my-bucket`, inside the directory `any_dir`:

```python
# Import the class
from keras_bucket_tensorboard_callback import BucketTensorBoard

# Create the callback instance, passing the bucket URI
bucket_callback = BucketTensorBoard('gs://my-bucket/any_dir')

# Train the model with the callback
model.fit(
    x=X,
    y=Y,
    epochs=20,
    callbacks=[bucket_callback]
)
```

Make sure you have access to the provided bucket. For GCP, you should have
the `GOOGLE_APPLICATION_CREDENTIALS` env set, pointing to your `json` key
file.

## Viewing the results on TensorBoard
With tensorboard installed your environment, run:
```bash
tensorboard --logdir=gs://my-bucket/any_dir
```

The TensorBoard will show your metrics and graphs saved on the bucket.
nextbike-api 1.0.0
Nextbike API wrapper

# Nextbike API wrapper (unofficial)

This is an unofficial [nextbike](https://www.nextbike.net/) API client.

It's worthy to note, that the API itself isn't open, so there is no permission of use or SLA.

Currently, the client implements only read operations.

# How to use the client

The client itself is very simple.
It allows acquiring all of the data, which, in turn, takes a lot of time, or fetch some country data only.
Note, that "country" in terms of Nextbike API is not equal to its common meaning.

```
from nextbike_api.client import Client


c = Client()
print(c.country('ua'))
```

### How to run the tests

There are two kinds of tests here: unit tests and integration tests. First ones do their job without interaction with some external stuff, e. g. Nextbike API.
The latter need to make use of some external API. That makes them more time-consuming.

To be able to run tests, you need to install development packages:
```
$ pipenv install --dev
```

So, to run unit tests you need to execute `pytest`

But if you want to perform deep tests, you need to set a relevant environment variable:
```
export NEXTBIKE_API_SKIP_INTEGRATION_TESTS=False
```
and then run the tests:
```
pytest
```