LabKey's Python APIs allow you to query, insert and update data on a LabKey Server from Python.
Detailed documentation is available on GitHub:
Premium Resource AvailableSubscribers to premium editions of LabKey Server can can use the example code in this topic to learn more:
Learn more about premium editions