Skip to main content

MoWAKi - Python utilities

Project description

This package provides several common utilities for MoWAKi apps.

Storage

Provides a common abstraction for file storage.

Currently supports storing data in:

  • memory (mostly for testing)

  • local filesystem (mostly for local development)

  • s3 buckets

Config

Convenience functions for loading configuration from environment variables:

import os
from mowaki.config import Config


class AppConfig(Config):
    SECRET_KEY: str
    DATABASE_URL: str
    ENABLE_FEATURE_1: bool = False


cfg = AppConfig(os.environ)

# Access loaded configuration
cfg.SECRET_KEY

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

mowaki-0.3.tar.gz (6.3 kB view hashes)

Uploaded Source

Built Distribution

mowaki-0.3-py3-none-any.whl (9.0 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