timone is a lightweight object router to store Git LFS objects on different storage backend, including S3 compatible systems.
Project description
timone
Current version: 0.0.5
timone
is a lightweight object router to store Git LFS objects on different storage backend, including S3 compatible systems.
timone
implements a simple token-based authentication system based on JWT, which streamlines authentication and authorization.
Install
timone
requires python>=3.7
and can be installed as follows:
$ pip install timone
Configuration
timone
adheres to the 12 factor principles to manage settings.
# timone service parameters
TIMONE_ENDPOINT_URL=http://127.0.0.5:8000
TIMONE_TOKEN_SECRET=mykey
TIMONE_STORAGE=S3Storage
TIMONE_OBJECT_EXPIRESIN=3600
# timone storage parameters for s3-like storage
TIMONE_STORAGE_S3_URL=https://s3.wasabisys.com
TIMONE_STORAGE_S3_REGION=eu-central-1
TIMONE_STORAGE_S3_BUCKET=bucket-xyz
TIMONE_STORAGE_S3_KEY=xxxx
TIMONE_STORAGE_S3_SECRET=yyy
Deployment
timone
is a WSGI application, thus it requires a WSGI HTTP Server, like gunicorn
, to run.
You can run your timone
instance using gunicorn
as follows:
$ gunicorn 'timone.wsgi:run()'
You can then create token to access the service 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
.
Authors
- Giovanni Stracquadanio, dr.stracquadanio@gmail.com
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file timone-0.0.5.tar.gz
.
File metadata
- Download URL: timone-0.0.5.tar.gz
- Upload date:
- Size: 6.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.8.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
7ef53a5cb32e1e11c81f4cd7f80845b7347c05b6c6cdab6f66cdd2c741914381
|
|
MD5 |
c7fc4842feaf15017daf9c7757f2a026
|
|
BLAKE2b-256 |
6810cfb0c4077f5f75add4ee9fe06eca0e8b141fc5c0ca007b0dca0589b733fd
|
File details
Details for the file timone-0.0.5-py3-none-any.whl
.
File metadata
- Download URL: timone-0.0.5-py3-none-any.whl
- Upload date:
- Size: 8.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.8.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
b65763bbd5bd89c6af9040d6ea1185461a6486fd36f1e7cbaf03ea491fd9c359
|
|
MD5 |
5182ab946f6d63919d89bc4fa2705fca
|
|
BLAKE2b-256 |
55782e45ce512700d8965472fac8dacff277c6fdf4b8d8c3a231e8b569a6ed9c
|