Common webapp scaffolding.
Project description
lassen
40.4881° N, 121.5049° W
Core utilities for MonkeySee web applications.
Not guaranteed to be backwards compatible, use at your own risk.
Structure
Stores: Each model is expected to have its own store. Base classes that provide standard logic are provided by lassen.store
- StoreBase: Base class for all stores
- StoreFilterMixin: Mixin for filtering stores that specify an additional schema to use to filter
Migrations: Lassen includes a templated alembic.init and env.py file. Client applications just need to have a migrations
folder within their project root. After this you can swap poetry run alembic
with poetry run migrate
.
poetry run migrate upgrade head
Settings: Application settings should subclass our core settings. This provides a standard way to load settings from environment variables and includes common database keys.
from lassen.core.config import CoreSettings, register_settings
@register_settings
class ClientSettings(CoreSettings):
pass
Schemas: For helper schemas when returning results via API, see lassen.schema.
Development
poetry install
createuser lassen
createdb -O lassen lassen_db
createdb -O lassen lassen_test_db
Unit Tests:
poetry run pytest
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file lassen-0.1.0.tar.gz
.
File metadata
- Download URL: lassen-0.1.0.tar.gz
- Upload date:
- Size: 23.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.1 CPython/3.10.4 Darwin/22.4.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1ec6b95365371ac614a55ebeec071c969f569429698f6341375cfe5b0ce71136 |
|
MD5 | 5daa97c67905154c3a08f3fb2e22b7ed |
|
BLAKE2b-256 | 8e78ed90cec85c49afebdca3ce76a0b5c2e2b27ff98c03914de65e4d24e105bb |
File details
Details for the file lassen-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: lassen-0.1.0-py3-none-any.whl
- Upload date:
- Size: 20.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.1 CPython/3.10.4 Darwin/22.4.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 650987cfa39331a768ef7492c1955fde5e5ea2e93fce05a1a25162a0519023e8 |
|
MD5 | 71fb29e0f74a90537123f951ee823058 |
|
BLAKE2b-256 | 960f044dc721d71e70349bf2c0c8319afbe9317a654f48925cfe7fb5f86f0efd |