Skip to content

Latest commit

 

History

History
62 lines (44 loc) · 942 Bytes

README.md

File metadata and controls

62 lines (44 loc) · 942 Bytes

infrakit-python

Incomplete unofficial Infrakit python client.

Work in progress.

Planned installation

poetry add infrakit

Usage

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
    ),
)

Development

.env.secrets:

USERNAME=your-email
PASSWORD=your-password
MODE=production
poetry install

Run tests:

poetry run pytest -s