A Python API client for Peridot
- Install Direnv
- Clone the repo
- Open the repo
- Let Direnv install the Python env
import peridot.client
from peridot.package import Package
client = peridot.client.PeridotClient()
projects = client.projects()
for project in projects:
for pkg in project.packages().data:
p = Package()
p.from_json(project.id, pkg)
print(f'"{p.name}" -- I: {p.last_import_at}, B: {p.last_build_at}')
This library is distributed under an Apache 2.0 License.