semvec/pypi-packages huggingface dataset:
aioboot 0.3.0
Python asynchronous application framework.
License: MIT
Requires Python: >=3.7
Keywords: starlette,asgi,click,web,api,async

AIOBoot - Python asynchronous application framework, built on top of famous libraries.
======================================================================================

[![Build Status](https://travis-ci.com/antonrh/aioboot.svg?branch=master)](https://travis-ci.com/antonrh/aioboot.svg?branch=master)
[![Code coverage](https://codecov.io/gh/antonrh/aioboot/branch/master/graph/badge.svg)](https://codecov.io/gh/antonrh/aioboot)
[![Documentation Status](https://readthedocs.org/projects/aioboot/badge/?version=latest)](https://aioboot.readthedocs.io/en/latest/?badge=latest)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)

---

**Documentation:** https://aioboot.readthedocs.io/en/latest/
alpha-orm 1.2.31
A nice database orm written in python
License: MIT
Requires Python: >=3
Keywords: database,orm,db,database-orm

# alpha-orm
An extraordinary python database orm

## Features
* Automatically creates tables and columns.
* No configuration required, simply create database.
* Currently supported databases include mysql.


## Examples
#
### Setup (MySQL)
```python
import alphaorm.AlphaORM as DB

DB.setup('mysql',{
  'host' : 'localhost',
  'user' : 'root',
  'password' : '',
  'database' : 'alphaorm'
})
```
#
#
### CREATE
```python
#--------------------------------------
#	CREATE 1
#--------------------------------------
product = DB.create('product')
product.name = 'Running shoes'
product.price = 5000
DB.store(product)




#--------------------------------------
#	CREATE 2
#--------------------------------------
author = DB.create('author')
author.name = 'Chimamanda Adichie'

book = DB.create('book')
book.title = 'Purple Hibiscus'
book.author = author
DB.store(book)
```
#
### READ
```python
#--------------------------------------
#	READ 1 [get all records]
#--------------------------------------
books = DB.getAll('book')
for book in books:
	print(f'{book.title} by {book.author.name}')




#--------------------------------------
#	READ 2 [filter one]
#--------------------------------------
book = DB.find('book','id = :bid', { 'bid' : 1 })
print(f'{book.title} by {book.author.name}')




#--------------------------------------
#	READ 3 [filter all]
#--------------------------------------
author = DB.find('author','name = :authorName',{ 'authorName': 'William Shakespare' })
booksByShakespare = DB.findAll('book', 'author_id = :authorId', { 'authorId': author.getID() })
print('Books by William Shakespare are :')
for book in booksByShakespare:
	print(book.title)
```
#
### UPDATE

```python

#--------------------------------------
#	UPDATE
#--------------------------------------
product = DB.find('product', 'id = :pid', { 'pid': 1 })
product.price = 500

book = DB.find('book','id = :bid', { 'bid' : 1 })
book.author.name = 'New author'
book.isbn = '3847302-SD'
book.title = 'New Title'
DB.store(book)
print(book)
```
#
### DELETE
```python
#--------------------------------------
#	DELETE 1 [delete single record]
#--------------------------------------
book = DB.find('book','id = :bid', { 'bid' : 1 })
DB.drop(book)




#--------------------------------------
#	DELETE 2 [delete all records]
#--------------------------------------
DB.dropAll('book')
```