Skip to main content

Needlr provides a unified cross-experience Microsoft Fabric SDK.

Project description

Needlr: A Unified SDK for Microsoft Fabric

The Needlr packages provides a unified, cross-experience Microsoft Fabric SDK. The goal of Needlr 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

Needlr is available on PyPi and can be installed via pip install needlr.

With needlr 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 needlr import auth, FabricClient
from needlr.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 needlr import auth, FabricClient
from needlr.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}")

Needlr 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

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

Get started with more of our samples and please be sure to share your ideas with us on what you need to support your Fabric deployments by creating an issue.

Additional Resources

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

needlr-0.1.7.tar.gz (42.6 kB view details)

Uploaded Source

Built Distribution

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

needlr-0.1.7-py3-none-any.whl (68.5 kB view details)

Uploaded Python 3

File details

Details for the file needlr-0.1.7.tar.gz.

File metadata

  • Download URL: needlr-0.1.7.tar.gz
  • Upload date:
  • Size: 42.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for needlr-0.1.7.tar.gz
Algorithm Hash digest
SHA256 e7a35e8397c5251cef1191e26502a3430226fc633571bd09a1b3e84050b0bb6e
MD5 94d89f2ee6d39929e88eade690d2ab77
BLAKE2b-256 a23f216f740090c756df69769fd2931da4bca7f39f00291cc7246b508822d6dd

See more details on using hashes here.

Provenance

The following attestation bundles were made for needlr-0.1.7.tar.gz:

Publisher: package-build.yml on microsoft/needlr

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file needlr-0.1.7-py3-none-any.whl.

File metadata

  • Download URL: needlr-0.1.7-py3-none-any.whl
  • Upload date:
  • Size: 68.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for needlr-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 d66b36667f7edec99776fee9bdfe21aea00037a26e858c66aa224a7492750da2
MD5 4e03de532b3fc35ea241fba143d50f81
BLAKE2b-256 fc7c58a552aaf5fea1e48f856ec4561db1d41d1e36ad2dc2418e431763cb2bea

See more details on using hashes here.

Provenance

The following attestation bundles were made for needlr-0.1.7-py3-none-any.whl:

Publisher: package-build.yml on microsoft/needlr

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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