Skip to content

v0.0.1

Choose a tag to compare

@github-actions github-actions released this 18 Oct 17:31
· 6 commits to main since this release
9abac55

🚀 Added

  • dsn.AerospikeDsn: a settings field for a cluster, aerospike://host[:port][,host[:port]]/<namespace>, validated as a URL like pydantic's PostgresDsn; seeds is what new_client takes, namespace is required.
  • data.AerospikeData[Entity]: a record of a set, every field a bin. Scalars and plain containers are simple bins, a BaseModel / RootModel field is a composite bin stored as a map or list. Datetimes are declared as AerospikeTimestamp (integer microseconds, UTC); a bare datetime field or a bin name over 15 characters is rejected at class definition. Subclasses map to and from the domain through to_entity / from_entity.
  • filters.AerospikeFilterCollection(Model): the conditions of one query, bound to the record model: at most one secondary-index filter (equality on int / str, a range on int) and any number of filter expressions, ANDed. add_filter checks 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 take is_null / is_not_null only.
  • 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 from client_factory, a ConnectionManagerFactory from ddutils called with alias, 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 an AerospikeManager[FeatureFlagData].

Supports Python 3.11–3.14 on aerospike-native 1.x.

Full Changelog: https://github.com/davyddd/ddaerospike/commits/v0.0.1