Skip to main content

Small library for easy work with databases.

Project description

Welcome to ORMStorm

ORMStorm is a small library for easy work with databases.

The key features are:

  • Simplicity: The library is very simple, and it won't take long to learn it.
  • Coding speed: Integrating the library into your projects won't take long.
  • Dynamic: Unlike others, this library will allow you to very quickly create new tables and add databases to them.

Installing

pip install ormstorm

Usage

Using standard tables

from ormstorm import Table, Types, Column, create_session  



class ExampleTable(Table):  
    __tablename__ = "example"  
  
    id = Column(Types.INTEGER, primary_key=True, autoincrement=True)  
    text = Column(Types.STRING)  
  
  
LocalSession = create_session("example.sqlite3", [ExampleTable])  
  
with LocalSession() as session:  
    session.insert(ExampleTable(text="Hello, world!"))

Using a dynamic table

from ormstorm import DynamicTable, Types, Column, create_session  
  
  
LocalSession = create_session("example.sqlite3", [])  
  
with LocalSession() as session:  
    NewTable = DynamicTable(  
        "new_table", {"id": Column(Types.INTEGER, primary_key=True, autoincrement=True), "text": Column(Types.STRING)}  
    )  
  
    session.create(NewTable)  
    session.insert(NewTable(text="Easy use of dynamic tables!"))

Note

This library is strictly not recommended for use in large projects because of the small functionality!

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

ormstorm-0.0.1.1.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

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

ormstorm-0.0.1.1-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

Details for the file ormstorm-0.0.1.1.tar.gz.

File metadata

  • Download URL: ormstorm-0.0.1.1.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.0

File hashes

Hashes for ormstorm-0.0.1.1.tar.gz
Algorithm Hash digest
SHA256 3904cf7f1db10c9e1647a9762427bfe8736557a42998c1b9b343c7283d177766
MD5 aadb02a5b778a80ac7859f1081f3eec1
BLAKE2b-256 d8d363ffeae5e72f1e83547705de86be5da94de2373e76598e6c00465f9327d6

See more details on using hashes here.

File details

Details for the file ormstorm-0.0.1.1-py3-none-any.whl.

File metadata

  • Download URL: ormstorm-0.0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 6.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.0

File hashes

Hashes for ormstorm-0.0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ef7f0085f790249ddcfa3c3925e931ccc4129dc5aef8b6eaec5a018d6d0637cf
MD5 efd760cf0dba9412a606ea7ea86d7b3a
BLAKE2b-256 fc378cac32110c5f8b8d32393bd2f6067ad20d41637223612e9f092ff07aaf98

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