bagit is described as follows:

bagit is a Python library and command line utility for working with BagIt style packages.

I created a Google Colab notebook for trying out this library.

I hope this serves as a useful reference for using bagit.