Deta Base Typed ODM
Project description
#+title:🏰 Elysium
#+author: Ian Kollipara
#+date: <2022-05-15 Sun>
Elysium is a Python ODM built for [[https:deta.sh][Deta]]. The name comes from one of the mountains of Mars. The main perks being:
- Tight integration with Deta Base
- Lambda queries to search with
- Your choice off dataclasses or Pydantic for data modeling
To install simply type:
#+begin_src shell
pip install elysium
#+end_src
Elysium is in development software, but the API is stable.
** Roadmap
- [X] Use Lambdas to query the database
- [X] Allow use of Pydantic or dataclasses
- [ ] Create Testing Suite
- [ ] Implement Deta's updates on the backend
- [ ] Implement some sort of way to handle related data (maybe ad-hoc joins?)
** Usage
#+begin_src python
from elysium import Elysium
from dataclasses import dataclass
elysium = Elysium()
@dataclass
class Article(Elysium.Model):
title: str
author: str
body: str
elysium.generate_mappings()
a = Article("test", "ikollipara", "lorem ipsum")
elysium.insert(a)
Article.fetch(lambda a: a.title == "test") # Article("test", "ikollipara", "lorem ipsum")
#+end_src
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
Elysium-0.1.0.tar.gz
(10.3 kB
view hashes)
Built Distribution
Elysium-0.1.0-py3-none-any.whl
(10.7 kB
view hashes)