Using testservices

Here are the concepts used by testservices:

Service

This is the basic thing that testservices manages. It often ends up representing a TCP port and some credential to connect to it, but, conceptually, can be anything from a piece of hardware to a simple file on disk.

Its API is defined by testservices.service.Service.

Provider

This provides a single service from a selection of alternatives. The intention is to provide the first service that is possible in the current context, create it if doesn’t already exist and then return the object representing it.

Its API is defined by testservices.provider.Provider.

Installation

testservices is available on the Python Package Index and can be installed with any tools for managing Python environments.