Skip to main content

simpl is a collection of useful, common python libraries, primarily for building web services and APIs

Project description

# simpl [![Build Status](https://travis-ci.org/checkmate/simpl.svg?branch=master)](https://travis-ci.org/checkmate/simpl) [![Coverage Status](https://coveralls.io/repos/checkmate/simpl/badge.svg?branch=master)](https://coveralls.io/r/checkmate/simpl?branch=master)

Common Python libraries for:

  • [Configuration](#config)

  • [Logging](#logging)

  • [Secrets](#secrets)

  • [Python Utilites](#python)

  • [WSGI Middleware](#middleware)

  • [REST API Tooling](#rest)

## <a name=”config”></a>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

## <a name=”logging”></a>Logging (simpl.log)

Encapsulates logging boilerplate code to initialize logging using the [config](#config) module.

## <a name=”secrets”></a>Sensitive Value Helpers

Helpers for managing sensitive values.

## <a name=”python”></a>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

## <a name=”middleware”></a>WSGI middleware

Includes sample middleware for use with WSGI apps including bottle.

Middleware included: - CORS: handles CORS requests

## <a name=”rest”></a>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](https://img.shields.io/pypi/v/simpl.svg)](https://pypi-hypernode.com/pypi/simpl)

## builds

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

simpl-0.4.1.tar.gz (331.0 kB view details)

Uploaded Source

Built Distribution

simpl-0.4.1-py2.py3-none-any.whl (55.6 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file simpl-0.4.1.tar.gz.

File metadata

  • Download URL: simpl-0.4.1.tar.gz
  • Upload date:
  • Size: 331.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for simpl-0.4.1.tar.gz
Algorithm Hash digest
SHA256 f4002fb087f6ad9c19b429401309d2babce6723fb94af38f22f1a3b9fec5bd73
MD5 332bbc8311f2e21220baddff0ccbc819
BLAKE2b-256 1b86debe21b13e1081a8485bf7bd8515daa277d8780b25c10591621e8899a250

See more details on using hashes here.

File details

Details for the file simpl-0.4.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for simpl-0.4.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 377c11178e6142fc83b2ef362a1f64ce33d6c18559347b9c27489694407a52fc
MD5 379cd2f659055b95f8df125e984855b3
BLAKE2b-256 f2d66a81b8a89fee9c2258426ee13e816281a1a3de7dcecf31a8919799d40344

See more details on using hashes here.

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