Incomplete unofficial Infrakit python client.
Work in progress.
poetry add infrakit
import infrakit
client = infrakit.Client.from_credentials(
username="your-email",
password="your-password",
)
projects = client.projects.list()
project = projects[0]
folders = project.folders()
client.document.create(
name="Test Document",
url="https://www.google.com",
projectId=project.id,
folderUuid=folders[0]["uuid"],
description="",
geographicPoint=GeographicPoint(
lat=50.0, lon=14.0, elevation=0.0
),
)
.env.secrets:
USERNAME=your-email
PASSWORD=your-password
MODE=production
poetry install
Run tests:
poetry run pytest -s