semvec/pypi-packages huggingface dataset:
ok-esputnik 0.3
Simple E-Sputnik REST client library for Python.
License: MIT
Requires Python: >=3.5
Keywords: python,esputnik

==========================
ok-esputnik |PyPI version|
==========================

|Build Status| |Code Health| |Python Versions| |Requirements Status| |license| |PyPI downloads|

Simple E-Sputnik REST client library for Python.

Installation
------------

Install with pip:

.. code:: shell

    $ pip install ok-esputnik


Usage
-----

See a list of examples `here`_.


.. _here: https://github.com/LowerDeez/ok-esputnik/blob/master/esputnik/examples/cases.py

.. |PyPI version| image:: https://badge.fury.io/py/ok-esputnik.svg
   :target: https://badge.fury.io/py/ok-esputnik
.. |Build Status| image:: https://travis-ci.org/LowerDeez/ok-esputnik.svg?branch=master
   :target: https://travis-ci.org/LowerDeez/ok-esputnik
   :alt: Build status
.. |Code Health| image:: https://api.codacy.com/project/badge/Grade/147156648567470b9c948d2ef0ecf76f    
   :target: https://www.codacy.com/app/LowerDeez/ok-esputnik
   :alt: Code health
.. |Python Versions| image:: https://img.shields.io/pypi/pyversions/ok-esputnik.svg
   :target: https://pypi.org/project/django-ok-esputnik/
   :alt: Python versions
.. |license| image:: https://img.shields.io/pypi/l/ok-esputnik.svg
   :alt: Software license
   :target: https://github.com/LowerDeez/ok-esputnik/blob/master/LICENSE
.. |PyPI downloads| image:: https://img.shields.io/pypi/dm/ok-esputnik.svg
   :alt: PyPI downloads
.. |Requirements Status| image:: https://requires.io/github/LowerDeez/ok-esputnik/requirements.svg?branch=master
timone 0.4.0
A lightweight object router to store Git LFS objects on different storage backend.
License: MIT

# timone
![](https://github.com/gstracquadanio/timone/workflows/Test%20package/badge.svg)
![](https://github.com/gstracquadanio/timone/workflows/Release%20package/badge.svg)
[![PyPI version](https://badge.fury.io/py/timone.svg)](https://badge.fury.io/py/timone)

Current version: 0.4.0

`timone` is a lightweight object router to store Git LFS objects on different storage backend, including AWS S3 compatible storage services.

## Install

```
$ pip install timone
```

## Configuration

`timone` can be configured by passing settings through environment variables, following the 12 factor principles.

### Basic settings
* **TIMONE_LOG_LEVEL**: Python logging level (default: INFO).
* **TIMONE_ENDPOINT_URL**: URL to reach service.
* **TIMONE_TOKEN_SECRET**: secret for token based authentication.
* **TIMONE_STORAGE**: storage driver to use (default: DumbStorageDriver).<br/>
 Currently supporting `S3StorageDriver`, for AWS S3 services, or `DumbStorageDriver`, for testing purposes.
* **TIMONE_OBJECT_EXPIRESIN**: object availability in seconds (default: 3600).

### S3StorageDriver settings

* **TIMONE_STORAGE_S3_URL**: S3 endpoint URL.
* **TIMONE_STORAGE_S3_REGION**: S3 region.
* **TIMONE_STORAGE_S3_BUCKET**: S3 bucket name.
* **TIMONE_STORAGE_S3_KEY**: S3 access key.
* **TIMONE_STORAGE_S3_SECRET**: S3 access secret.

## Authentication and authorization
`timone` implements a simple token-based authentication system based on JWT, which streamlines authentication and authorization.

You can create tokens to access `timone` using `pyjwt`. For example, you can run the following command to create a token for user _bob_:

```
$ pyjwt --key=mykey encode user=bob
```
where `key` is the `TIMONE_TOKEN_SECRET`.

## Deployment

`timone` is a WSGI application, thus it requires a WSGI HTTP Server, like `gunicorn`, to run.

You can run a `timone` instance using `gunicorn` as follows:

``` 
$ gunicorn 'timone.wsgi:run()'
```

## Configuring GIT LFS
You can use `timone` to track files for the repository `foo/bar` as follows:

```
git config -f .lfsconfig remote.origin.lfsurl https://<timone_url>/foo/bar/info/lfs
```

where _<timone_url>_ is the `timone` endpoint URL.

When pushing for the first time, Git will ask LFS credentials; here, you should use your username and token provided by the service administrator.

## Issues
Please post an issue to report a bug or request new features.

## Authors

* Giovanni Stracquadanio,  dr.stracquadanio@gmail.com