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 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
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file needlr-0.1.8.tar.gz.
File metadata
- Download URL: needlr-0.1.8.tar.gz
- Upload date:
- Size: 49.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5c4c94cb5194aeb612d517735fc3470419ea4d300bbfb5198ff8cc1f522e56a2
|
|
| MD5 |
8a75beccec9a270e74752ec03c97cd48
|
|
| BLAKE2b-256 |
4e3bab5ea916e4d9cfb31748b51d5f0290db94a0c7c1d8e61ae810c11cc2afb7
|
Provenance
The following attestation bundles were made for needlr-0.1.8.tar.gz:
Publisher:
package-build.yml on microsoft/needlr
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
needlr-0.1.8.tar.gz -
Subject digest:
5c4c94cb5194aeb612d517735fc3470419ea4d300bbfb5198ff8cc1f522e56a2 - Sigstore transparency entry: 178829706
- Sigstore integration time:
-
Permalink:
microsoft/needlr@4f5395de06948132bf7c4eb2a89c0e75d5eed668 -
Branch / Tag:
refs/tags/0.1.8 - Owner: https://github.com/microsoft
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
package-build.yml@4f5395de06948132bf7c4eb2a89c0e75d5eed668 -
Trigger Event:
release
-
Statement type:
File details
Details for the file needlr-0.1.8-py3-none-any.whl.
File metadata
- Download URL: needlr-0.1.8-py3-none-any.whl
- Upload date:
- Size: 77.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c7286a14f3ab6fd5ae9ce2764536cd702e3471972c09f1359bdc45200e3379db
|
|
| MD5 |
65d948b4e133e8085bffb94639439b85
|
|
| BLAKE2b-256 |
1977ebe22247afe18202b42c77a688a41c9f3239e898c98e561f1caa6c05e67c
|
Provenance
The following attestation bundles were made for needlr-0.1.8-py3-none-any.whl:
Publisher:
package-build.yml on microsoft/needlr
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
needlr-0.1.8-py3-none-any.whl -
Subject digest:
c7286a14f3ab6fd5ae9ce2764536cd702e3471972c09f1359bdc45200e3379db - Sigstore transparency entry: 178829710
- Sigstore integration time:
-
Permalink:
microsoft/needlr@4f5395de06948132bf7c4eb2a89c0e75d5eed668 -
Branch / Tag:
refs/tags/0.1.8 - Owner: https://github.com/microsoft
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
package-build.yml@4f5395de06948132bf7c4eb2a89c0e75d5eed668 -
Trigger Event:
release
-
Statement type: