Skip to main content

LeanAutomation provides a unified cross-experience Microsoft Fabric SDK.

Project description

Lean Automation: A Unified SDK for Microsoft Fabric

The Lean Automation packages provides a unified, cross-experience Microsoft Fabric SDK. The goal of Lean Automation is to simplify the way you work with Fabric APIs and support deployments and automation allowing you to focus on solving your business problems.

Quickstart

Lean Automation is available on [PyPi](https://pypi.org/project/Lean Automation/) and can be installed via pip install leanautomation.

With Lean Automation installed, you first authenticate by creating a Fabric client. You can use either FabricInteractiveAuth to use your personal credentials or FabricServicePrincipal to use a service principal (which is supported for most but not all APIs).

from Lean Automation import auth, FabricClient
from Lean Automation.auth import FabricInteractiveAuth

fc = FabricClient(auth=auth.FabricInteractiveAuth())
for ws in fc.workspace.ls():
    print(f"{ws.name}: Id:{ws.id} Capacity:{ws.capacityId}")

You use Service Principals in a similar way by bringing in the app id, secret, and tenant id. Replace the strings below with your service principals information.

from Lean Automation import auth, FabricClient
from Lean Automation.auth import FabricServicePrincipal

auth = FabricServicePrincipal("APP_ID", "APP_SECRET", "TENANT_ID")
fc = FabricClient(auth=auth)
for ws in fc.workspace.ls():
    print(f"{ws.name}: Id:{ws.id} Capacity:{ws.capacityId}")

Lean Automation supports many of the Fabric REST APIs and we appreciate contributions to help us close that gap.

Some of our best supported APIs include:

  • Data Warehouse
  • Data Engineering
  • Real-time Intelligence

Lean Automation has been designed to support Fabric deployment and automation and follows a convention to make it easier to discover and connect APIs.

  • List items like workspaces, tables: fc.<item>.ls() as in fc.workspace.ls()
  • Create items like lakehouses, event streams: fc.<item>.create() as in fs.lakehouse.create('NameOfLakehouse')
  • Delete items: fc.<item>.delete() as in fc.warehouse.delete(worskspace_id, warehouse_id)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

leanautomation-0.1.9.tar.gz (49.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

leanautomation-0.1.9-py3-none-any.whl (78.8 kB view details)

Uploaded Python 3

File details

Details for the file leanautomation-0.1.9.tar.gz.

File metadata

  • Download URL: leanautomation-0.1.9.tar.gz
  • Upload date:
  • Size: 49.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for leanautomation-0.1.9.tar.gz
Algorithm Hash digest
SHA256 e8ae951dc10cbffa7c206c6a76a0753c3212ed678ebd57c0c3869e928b821d51
MD5 661c7c03eea600ff6d8898c1d460bc6f
BLAKE2b-256 ab8443ecc13cbc3781e62b8716e52b609bd9c304ba886c6bdc5fc7da661ccbbc

See more details on using hashes here.

File details

Details for the file leanautomation-0.1.9-py3-none-any.whl.

File metadata

  • Download URL: leanautomation-0.1.9-py3-none-any.whl
  • Upload date:
  • Size: 78.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for leanautomation-0.1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 d2c03472c8be4e81538206ee07c6105eaed59c1abe86260d0733d02557f2ca73
MD5 ebe463d5851a5e3bd8ac38588e09cdda
BLAKE2b-256 2a7b6ae8b0b12804d9542ba0d0e6a3a0b499f0d83374ef0f45cc74ab0d5ff086

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page