aisquare-pipe-local
Local filesystem source and sink connectors for aisquare.pipe. No external dependencies — uses only Python stdlib.
Install
cd connectors/local
pip install -e ".[dev]"
Configuration
config = {"base_path": "/path/to/directory"}
No authentication required — just a directory path.
Usage
Source — pull files from disk
from aisquare.pipe import Pipeline
from aisquare.pipe.core.envelope import PullParams
pipeline = Pipeline("local-source", "mock-sink")
result = pipeline.run(
source_config={"base_path": "/data/input"},
sink_config={},
)
# With filters
params = PullParams(params={
"path": "reports", # subdirectory
"recursive": True, # include nested dirs
"extensions": [".pdf", ".csv"], # file type filter
"glob": "**/*.json", # glob pattern (alternative)
"limit": 100, # max files
"stream_threshold": 50 * 1024 * 1024, # stream files > 50MB
})
Sink — push files to disk
from aisquare.pipe.core.envelope import PushParams
params = PushParams(params={
"target_path": "output/2025", # subdirectory (created automatically)
"conflict": "rename", # "fail" (default), "overwrite", or "rename"
})
Connector Details
| Property | Source | Sink |
|---|---|---|
| Name | local-source |
local-sink |
| Types | */* (any file) |
*/* (any file) |
| Auth | None | None |
| Streaming | Yes (configurable threshold) | Yes (stream → disk) |
| Max file size | — | No limit |
| Path traversal protection | Yes | Yes |
Running Tests
pytest -v # 69 tests
Metadata
Release files for aisquare-pipe-local 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_local-0.1.0.tar.gz | 10.9 kB | Without provenance | Details for aisquare_pipe_local-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| aisquare_pipe_local-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for aisquare_pipe_local-0.1.0-py3-none-any.whl |
Total release size: 19.1 kB
Release files / aisquare_pipe_local-0.1.0.tar.gz
| Download URL | aisquare_pipe_local-0.1.0.tar.gz |
|---|---|
| Size | 10.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f6e226e30e1b4a9624b560a8385f399140d04040062918e56d7796abbcf8edab
|
|
BLAKE2b-256 checksum How to use checksums |
30fe37b3889dda10be3a5fdb893a9aebf3cba1ed23532ea65fd2c55fb49c5c96
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.9
|
Release files / aisquare_pipe_local-0.1.0-py3-none-any.whl
| Download URL | aisquare_pipe_local-0.1.0-py3-none-any.whl |
|---|---|
| Size | 8.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2b56afb1710141848370b9ead6c060a9dbf60ae93c5e52f5154af57e6b038017
|
|
BLAKE2b-256 checksum How to use checksums |
9d91d7bfbbca7d344f6ef6e00c2cae68ba0733b9a1cf0fe49aabe3453f3f652b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.9
|
Security for aisquare-pipe-local 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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A 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.