Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/louisdevie/ppydb
https://github.com/louisdevie/ppydb
Last synced: 21 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/louisdevie/ppydb
- Owner: louisdevie
- License: mit
- Created: 2021-11-30T15:36:34.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-03-22T17:29:43.000Z (almost 3 years ago)
- Last Synced: 2024-11-06T04:48:03.372Z (about 2 months ago)
- Language: Python
- Size: 17.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![PyPI](https://img.shields.io/pypi/v/ppydb)](https://pypi.org/project/ppydb/)
[![Documentation Status](https://readthedocs.org/projects/ppydb/badge/?version=latest)](https://ppydb.readthedocs.io/en/latest/?badge=latest)
[![MIT license](https://img.shields.io/badge/license-MIT-yellowgreen)](https://github.com/louisdevie/ezcli/blob/main/LICENSE)
[![Tests](https://github.com/louisdevie/ppydb/actions/workflows/coverage.yml/badge.svg)](https://github.com/louisdevie/ppydb/actions/workflows/coverage.yml)
[![codecov](https://codecov.io/gh/louisdevie/ppydb/branch/main/graph/badge.svg)](https://codecov.io/gh/louisdevie/ppydb)
[![code quality](https://img.shields.io/badge/code_quality-terrible-critical)](https://github.com/louisdevie/ezcli)
# ![logo](ppydb_logo_flat.svg)## Demo
```pythonfrom ppydb import *
db = new_ppydb('example')
table = db.create_table(
'table',
Int('id', AutoNum(), PrimaryKey()),
Str('lastname', NeverEmpty()),
Str('firstname') )table.insert_values(
(None, 'Stickmin', 'Henry'),
(None, 'Calvin', 'Charles'),
(None, 'Rose', 'Ellie') )query = table.select(Col('l') in 'firstname').sort_by('id', DESC).project('firstname', 'lastname')
print(query.toSQL())
print(db.query(query))
```