Skip to main content

Provide helper for REST API related stuff.

Project description

Layab: Wonderful REST API

pypi version Build status Coverage Code style: black Number of tests Number of downloads

Layab stands for Wonderful in Somali and is also a shortcut for Layabout (we all are).

This package provides the following features:

YAML Configuration

API configuration and logging configuration can be standardized.

Loading configuration

import layab

# Load logging and service configuration
service_configuration = layab.load('path/to/a/file/in/module/folder')

Note that in case your logging configuration file contains execution of Python code, you will need to provide the yaml.UnsafeLoader loader.

import layab
import yaml

# Load logging and service configuration
service_configuration = layab.load('path/to/a/file/in/module/folder', logging_loader=yaml.UnsafeLoader)

Flask RestPlus

The way your REST API behaves can be standardized

Default behavior

Importing layab will make sure that every flask request is logged on reception.

import layab

How to install

  1. python 3.6+ must be installed
  2. Use pip to install module:
python -m pip install layab

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for layab, version 1.5.0
Filename, size File type Python version Upload date Hashes
Filename, size layab-1.5.0-py3-none-any.whl (10.5 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size layab-1.5.0.tar.gz (8.2 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page