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 infc.workspace.ls() - Create items like lakehouses, event streams:
fc.<item>.create()as infs.lakehouse.create('NameOfLakehouse') - Delete items:
fc.<item>.delete()as infc.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
- Contributing to the project
- Official Fabric REST API docs
Metadata
Release files for needlr 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| needlr-0.2.1.tar.gz | 56.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| needlr-0.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 147.0 kB
Release files / needlr-0.2.1.tar.gz
| Download URL | needlr-0.2.1.tar.gz |
|---|---|
| Size | 56.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
896284ce8a2fea83c7f4800fe8e35085f2165c6f1a041a70c95672506d9bdfb5
|
|
BLAKE2b-256 checksum How to use checksums |
bb5bcf400c794357add6a44cd8adbadfe7f173713ea0118403101498fb62fdd4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 24, 2025.
Transparency logRelease files / needlr-0.2.1-py3-none-any.whl
| Download URL | needlr-0.2.1-py3-none-any.whl |
|---|---|
| Size | 90.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
83d580f64b76d0fdedafed00d36739d3d1e8ec529db716b4cc673076702419dd
|
|
BLAKE2b-256 checksum How to use checksums |
bb2c606fa1ab2bbc9b78623176bb6f59e286727a35b54a98fbca1a529278a198
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 24, 2025.
Transparency log