How To Use Luzmo's Python SDK

September 8, 2022

Tuana Çelik

Learn how to use the Python SDK to access the Luzmo Core API.

We are happy to share that in the spirit of accessibility, we have published a Python package on PyPI. It is an SDK to access the Luzmo Core API. Python is one of the most popular programming languages for data science. We hope that this will make it easier for teams whose code base is in Python to adopt Luzmo as a part of their tech stack for data analysis.

The package allows you to do everything you’re used to with the Core API; such as creating Luzmo clients, authorization tokens, datasets, columns etc. So now, if you have a data analysis pipeline written in Python, you’ll be able to feed this data to Luzmo by accessing Luzmo straight within your original code stack without having to worry about a middle layer.

To install you will need Python >= 3.7 and then simply run: pip install luzmo-sdk.

Here’s an example of what you might do then in your codebase:

You can create a dataset:

Update the dataset description:

And so on..

All of the Luzmo SDKs for the Core API are open source projects on GitHub. Given that this one is new, anyone using it is welcome to create issues or submit recommendations to the repo. We will take care of it as Luzmo and the Luzmo community together.

Tools and Resources Used

Poetry for dependency management, packaging and publishing

poetry shell for virtual environment while developing

This video by Black Hills Information Security about Python package management and various options. It’s quite long but very informative and ultimately helped me decide that I would be using Poetry 😉

Build your first embedded dashboard in less than 15 min

Experience the power of Luzmo. Talk to our product experts for a guided demo  or get your hands dirty with a free 10-day trial.