I'm trying to integrate an existing python API, (it's not a web API, it's a python library called Datalad) into a Django application.
Going deeper, I'd like do create a django model that represents a dataset class, that is the representation of a git/git-annex repository.
The django model class should mirror dataset class attributes and methods and eventually extend them.
My purpose is to create a django application to create and manage git/git-annex repositories that will become a storage backend for generic objects serialized as json (added to git tree) or binary files (managed by git-annex).
For example I'll have django models representing contents like video, audio, hypertext etc and the model representing repositories.
When I add a video I'll have the video itself added to a choosen git-annex repository with its metadata serialized and commited into git as a json file.
What's the best way to do this?