Skip to content
This repository has been archived by the owner on Aug 27, 2023. It is now read-only.

Latest commit

 

History

History
11 lines (9 loc) · 672 Bytes

extensions.rst

File metadata and controls

11 lines (9 loc) · 672 Bytes

Extending PyPICloud

Certain parts of PyPICloud were created to be pluggable. The storage backend, cache database, and access control backend can all be replaced very easily.

The steps for extending are:

  1. Create a new implementation that subclasses the base class (~pypicloud.cache.base.ICache, ~pypicloud.storage.base.IStorage, ~pypicloud.access.base.IAccessBackend/~pypicloud.access.base.IMutableAccessBackend)
  2. Put that implementation in a package and install that package in the same virtualenv as PyPICloud
  3. Pass in a dotted path to that implementation for the approprate config field (e.g. pypi.db)