Skip to main content

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


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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

Elysium-0.1.0-py3-none-any.whl (10.7 kB view details)

Uploaded Python 3

File details

Details for the file Elysium-0.1.0.tar.gz.

File metadata

  • Download URL: Elysium-0.1.0.tar.gz
  • Upload date:
  • Size: 10.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.10.4 Linux/5.17.6-300.fc36.x86_64

File hashes

Hashes for Elysium-0.1.0.tar.gz
Algorithm Hash digest
SHA256 8f760ecac8deb9a562843adb901d50e6dd43cb2771efa544a5383596ff2e3af7
MD5 be13dfc63415a81ea34ac5bfd24af18b
BLAKE2b-256 2348d7609d65fb0fb4c05f844fe95b6b62be0814e80ee04b2a3072a2d33321b9

See more details on using hashes here.

File details

Details for the file Elysium-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: Elysium-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 10.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.10.4 Linux/5.17.6-300.fc36.x86_64

File hashes

Hashes for Elysium-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 36c329e4be59fda3d8f7e5c9fc239484c18099da5e53da95be782707b8c3e3e5
MD5 1bd92980a7f51279723ac06fcd0961ce
BLAKE2b-256 61826b641e4ed27331ae2c6466df57a58de74fac644635c2924178e9de62d8a4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page