BSD Ports

databases/py-aesqlapius 0.0.9_1 FreeBSD

Manage SQL queries as a Python API

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
License
MIT
Categories
databases, python
Package size
33.1 KiB, 177.2 KiB installed

Description

So you don't want to use ORM, and want to organize your SQL queries in a convenient way. Don't mix them with your python code, don't write `execute` and `fetchrow`s by hand for each query. With aesqlapius:

  • Store your SQL queries separate from the code, in a dedicated file or directory hierarchy
  • Annotate each query with python-like function definition specifying input arguments and output types and patterns

aesqlapius builds a class out of this, where you can call your queries as plain methods. It handles arguments (pass positional or keyword arguments as you like, default values are also handled) and output types and patterns (you may specify whether a method returns iterator, list, dict of rows, or a single row, where row may be represented as a tuple, list, dict, single value or a custom type such as a dataclass).

In the other systems

SystemPortVersion
FreeBSDdatabases/py-aesqlapius0.0.9_1
DragonFlydatabases/py-aesqlapius0.0.9_1

Install

Binary package:

pkg install py312-aesqlapius

From the ports tree:

cd /usr/ports/databases/py-aesqlapius/ && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	py312-aesqlapius>0:databases/py-aesqlapius

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest0.0.9_10.0.9_10.0.90.0.9_10.0.9_1
FreeBSD:14:quarterly0.0.9_10.0.9_1n/a0.0.9_10.0.9_1
FreeBSD:15:latest0.0.9_10.0.9_1n/a0.0.9_10.0.9_1
FreeBSD:15:quarterly0.0.9_10.0.9_1n/an/an/a
FreeBSD:16:latest0.0.9_10.0.9_1n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

As this port's Makefile names them.

Test 4

The full lists below include those, and their dependencies in turn.

Build dependencies 11
Run dependencies 7

No port depends on this one.

Configuration

No options to configure.

USES
python
Service scripts
none

Files

distinfo 1
FileSizeSHA256
aesqlapius-0.0.9.tar.gz248357c373c47c418352228be4545de936f20a67c79fe089512f9bcec125f66df3e6f
Master sites 1
  • PYPI

Commit history 0

No commits in the history this site was built from.