CAP-client is a Python client library for the CERN Analysis Preservation (CAP) API. It is a command-line tool that facilitates preservation of physics data analyses, by allowing analysts to capture and store their analysis resources. The CAP-client is a free and open source project developed at CERN.
Find CAP-client documentation here and a video tutorial here.