Skip to main content

Custom Adapters

You can build a custom adapter for any storage backend by implementing the AdapterABC abstract base class.

The AdapterABC Interface


Contract Tests

SenseLab provides a shared contract test suite. Your adapter must pass all tests:
This ensures your adapter behaves identically to the filesystem and Postgres adapters.

Registering Your Adapter

Register your adapter with the factory so it can be used in YAML config:
Then in amfs.yaml: