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.

Source Distribution

layab-1.5.0.tar.gz (8.2 kB view hashes)

Uploaded Source

Built Distribution

layab-1.5.0-py3-none-any.whl (10.5 kB view hashes)

Uploaded Python 3

Supported by

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