Repository navigation
v0.0.1
π Added
First public release: SQL as Jinja templates with safe value serialization, executed through adapters you plug in.
Query: a SQL template (inlinetextor a file) bound to a result model; renders with parameters and wraps rows intoResult(get(),get_list(), rawrows).SQLBase: declares the adapters of a project;with_params()collects template parameters,SQL(query).postgres.execute()runs the query through the chosen adapter.Adapter/AdapterDescriptor: the glue to a real connection; a subclass provides_execute()and a serializer.- Serializers:
BaseSerializerwithserialize_valueforNone, bool, numbers,Decimal, str,UUID,date,datetimeand collections, plusPostgresSerializer(::uuid,::timestamp,::datecasts) andClickhouseSerializer(toUUID,parseDateTimeBestEffort,toDate).serialize_valueis available inside templates.
Supports Python 3.9β3.14, ships py.typed.