aisquare-pipe-onedrive
OneDrive source and sink connectors for aisquare.pipe. Uses the Microsoft Graph API via requests with azure-identity for authentication.
Install
cd connectors/onedrive
pip install -e ".[dev]"
Authentication
Access Token (quick testing)
config = {"access_token": "eyJ0eXAi..."}
Client Credentials (service accounts)
config = {
"client_id": "YOUR_CLIENT_ID",
"client_secret": "YOUR_CLIENT_SECRET",
"tenant_id": "YOUR_TENANT_ID",
}
Register an app in Azure AD with Files.ReadWrite.All application permission.
Usage
Source — pull files from OneDrive
from aisquare.pipe import Pipeline
from aisquare.pipe.core.envelope import PullParams
source = "onedrive-source"
sink = "mock-sink"
# Basic pull
pipeline = Pipeline(source, sink)
result = pipeline.run(
source_config=config,
sink_config={},
)
# With filters
params = PullParams(params={
"path": "/Documents/Reports",
"extensions": [".pdf", ".docx"],
"recursive": True,
"limit": 50,
"stream_threshold": 50 * 1024 * 1024, # stream files > 50MB
})
Sink — push files to OneDrive
from aisquare.pipe.core.envelope import PushParams
params = PushParams(params={
"target_path": "/Backups/2025",
"conflict": "replace", # or "rename" (default), "fail"
})
Connector Details
| Property | Source | Sink |
|---|---|---|
| Name | onedrive-source |
onedrive-sink |
| Types | */* (any file) |
*/* (any file) |
| Streaming | Yes (configurable threshold) | Yes (auto-chunked) |
| Max file size | — | 250 GB |
| Rate limit | 600 req/min | — |
| Upload threshold | — | 4 MB (simple) / chunked above |
| Chunk size | — | 10 MB (32 × 320 KiB) |
Running Tests
pytest -v
Metadata
Release files for aisquare-pipe-onedrive 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| aisquare_pipe_onedrive-0.1.0.tar.gz | 12.2 kB | With provenance | Details for aisquare_pipe_onedrive-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| aisquare_pipe_onedrive-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for aisquare_pipe_onedrive-0.1.0-py3-none-any.whl |
Total release size: 21.4 kB
Release files / aisquare_pipe_onedrive-0.1.0.tar.gz
| Download URL | aisquare_pipe_onedrive-0.1.0.tar.gz |
|---|---|
| Size | 12.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
09684b3450b2dc5247de44d8088ddcc945affdea2044996cb7cd23795db7dbcb
|
|
BLAKE2b-256 checksum How to use checksums |
d896d06bc6523e9802190aa3e7595fde6f1a347b2eef374d135f5806811a93ef
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 20, 2026.
Transparency logRelease files / aisquare_pipe_onedrive-0.1.0-py3-none-any.whl
| Download URL | aisquare_pipe_onedrive-0.1.0-py3-none-any.whl |
|---|---|
| Size | 9.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
31de9c59b4170b77877a22623641e96c49a4abd8d6c5accaa9689d1ef2cf32bf
|
|
BLAKE2b-256 checksum How to use checksums |
278a7a765740ceb025183256a9ff1cde58eabb20b2643e5dbc036a21e14bc67d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 20, 2026.
Transparency logSecurity for aisquare-pipe-onedrive 0.1.0
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.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for aisquare_pipe_onedrive-0.1.0.tar.gz
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 20, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.