Skip to main content

API Server to serve random gifs with support for public suggestions

Project description

Ugoki API Server

Ugoki is a simple server for storing categorized gifs where anyone can suggest gifs but the owner can approve them only.

Usage

Production

To install the last stable version, simply run

$ pip install ugoki

To start a ugoki API server, run ugoki-prod with correct arguments.

$ ugoki-prod -h
usage: ugoki-prod [-h] [-p PORT] [-H HOST] STORAGE SERVE_ROOT AUTH_USER AUTH_PASSWORD DB_STRING

positional arguments:
  STORAGE               Path to store gifs
  SERVE_ROOT            Root where the gifs are served by the web server
  AUTH_USER             Username for API
  AUTH_PASSWORD         Password for API
  DB_STRING             String to connect to database. (e.g. sqlite:///ugoki.sqlite)

optional arguments:
  -h, --help            show this help message and exit
  -p PORT, --port PORT  Port to listen on. Default: 8000
  -H HOST, --host HOST  Host to listen for. Default: 127.0.0.1

Development

  • git clone https://gitlab.com/ceda_ei/ugoki.git/
  • cd ugoki
  • poetry install
  • poetry shell
  • ugoki-dev

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

ugoki-1.0.3.tar.gz (17.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ugoki-1.0.3-py3-none-any.whl (18.4 kB view details)

Uploaded Python 3

File details

Details for the file ugoki-1.0.3.tar.gz.

File metadata

  • Download URL: ugoki-1.0.3.tar.gz
  • Upload date:
  • Size: 17.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.9 CPython/3.9.7 Linux/5.14.6-arch1-1

File hashes

Hashes for ugoki-1.0.3.tar.gz
Algorithm Hash digest
SHA256 f8f017c53901b8709effe1f9a3352664c78ca07d05b42f07121134d5269d544b
MD5 ec9c938e188d59b8f1edb45679cad28b
BLAKE2b-256 c910f969430a2c78ab78594ab5bb0b5e3388a4da7b5a0c1a5cf80fd63092166a

See more details on using hashes here.

File details

Details for the file ugoki-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: ugoki-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 18.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.9 CPython/3.9.7 Linux/5.14.6-arch1-1

File hashes

Hashes for ugoki-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d1d7796e702f13d3c8dfe21602605e29213f266fde76eb4d7c6b637d2c3e1aea
MD5 15083254e5e058f769c3d210ce817f70
BLAKE2b-256 71e5c72fa127901dd2e72e20e3830e8493c92b5e95947dffb1fd078e23cab8db

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page