Repository navigation
v0.0.1
🚀 Added
dsn.AerospikeDsn: a settings field for a cluster,aerospike://host[:port][,host[:port]]/<namespace>, validated as a URL like pydantic'sPostgresDsn;seedsis whatnew_clienttakes,namespaceis required.data.AerospikeData[Entity]: a record of a set, every field a bin. Scalars and plain containers are simple bins, aBaseModel/RootModelfield is a composite bin stored as a map or list. Datetimes are declared asAerospikeTimestamp(integer microseconds, UTC); a baredatetimefield or a bin name over 15 characters is rejected at class definition. Subclasses map to and from the domain throughto_entity/from_entity.filters.AerospikeFilterCollection(Model): the conditions of one query, bound to the record model: at most one secondary-index filter (equality onint/str, a range onint) and any number of filter expressions, ANDed.add_filterchecks the bin and matches the value against the bin's scalar; values are normalized the way the server compares them (enums, UUIDs, datetimes,Decimal). Composite bins takeis_null/is_not_nullonly.manager.AerospikeManager[Data]: ORM-like access to one set:get,get_map,get_list,find_one,put(optionally create-only),delete, with a TTL set by every write and typed policy overrides. The client is obtained for every call fromclient_factory, aConnectionManagerFactoryfrom ddutils called withalias, which owns the client's scope and its close on shutdown.feature_flags.AerospikeFeatureFlagStorage: the Aerospike backend of ddutils feature flags, one set, a flag per record, through anAerospikeManager[FeatureFlagData].
Supports Python 3.11–3.14 on aerospike-native 1.x.
Full Changelog: https://github.com/davyddd/ddaerospike/commits/v0.0.1