Thanks to visit codestin.com
Credit goes to GitHub.com

Skip to content

bdoms/naboo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Naboo

A light-weight, asynchronous ORM-like wrapper around asyncpg targeting Python 3.12+.

All records are returned as dictionaries, because you're just going to encode to JSON anyway.

Testing

Get into postgres:

sudo -u postgres psql

Then setup the test database and permissions (or modify the environment variables in pytest.ini instead):

CREATE DATABASE naboo_test;
CREATE USER naboo_test_user WITH PASSWORD 'naboo_test_password';
GRANT ALL PRIVILEGES ON DATABASE naboo_test TO naboo_test_user;
\c naboo_test;
ALTER SCHEMA public OWNER TO naboo_test_user;

Then to run tests:

pytest

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages