Skip to main content

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

Project description

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

  • Context: handles setting a threadlocal context and adds a transaction ID.

  • Errors: handles catching and formatting errors

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

Date/Time Utilites

Provides functions that consistently format date/time and timestamp data for use in APIs.

MongoDB Backend Wrapper

Implements an opinionated wrapper for MongoDB databases and collections
that works with the rest module and supports query param filtering
(including text search) and pagination of backend collections.

release

latest

builds

Branch

Status

master

Build Status

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.8.0.tar.gz (46.7 kB view details)

Uploaded Source

Built Distribution

simpl-0.8.0-py2.py3-none-any.whl (60.6 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

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

File hashes

Hashes for simpl-0.8.0.tar.gz
Algorithm Hash digest
SHA256 c28e06913141372150cb3af9cad6ee24d171b1a13e7b17e566aecfa7d460af8f
MD5 6b3b09b4bdde8bf3a342ba54e1799eca
BLAKE2b-256 d24650bd48fe98f1f816596c5ae1aa785c41ba1a882f3f1c74a9982d9a8d40c0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simpl-0.8.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 1b606a01ac5a79751d1a52a1fb55dbf606a4521c44a9251abc4f0eae93615806
MD5 0759f4eeb0710062aab50012166ee450
BLAKE2b-256 183d87b0ffced51cf7f834db576e6a590d676537897ef4f84165037126bb3636

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