gifflen / simpl

common python libraries :point_right: https://simpl.readthedocs.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

simpl

Build Status Coverage Status

Common Python libraries for:

Config

Supports argparse-like configuration options with support for the following configuration methods:

  • command-line arguments
  • environment variables
  • keychain (OSX) and keyring (Linux)
  • ini/config files

Logging (simpl.log)

Encapsulates logging boilerplate code to initialize logging using the config module.

Sensitive Value Helpers

Helpers for managing sensitive values.

Python Utilities

Code we wished was built in to python (or was simpler to use):

  • dictionary and list merging
  • dictionary get/set/in by path

WSGI middleware

Includes sample middleware for use with WSGI apps including bottle.

Middleware included:

  • CORS: handles CORS requests

REST API Tooling

Helper code for handling RESTful APIs using bottle.

Code included:

  • body: a decorator that parses a call body and passes it to a route as an argument. The decorator can apply a schema (any callable including a voluptuous.Schema), return a default, and enforce that a body is required.
  • paginated: a decorator that returns paginated data with correct limit/offset validation and HTTP responses.
  • process_params: parses query parameters from bottle request

release

latest

builds

Branch Status
master Build Status

About

common python libraries :point_right: https://simpl.readthedocs.org

License:Apache License 2.0


Languages

Language:Python 100.0%