Skip to main content

mft-lite

mft-lite is a lightweight secure file-transfer SDK and CLI for enterprise data movement. It supports local files, SFTP, Google Cloud Storage, and Amazon S3 with retries, streaming chunks, and SHA-256 checksums.

Install

pip install mft-lite
pip install "mft-lite[gcp]"   # Google Cloud Storage support
pip install "mft-lite[aws]"   # Amazon S3 support
pip install "mft-lite[all]"   # Both GCP and AWS

CLI examples

mft-lite transfer ./file.txt ./copy.txt
mft-lite transfer ./file.txt sftp://user@sftp.example.com:22/drop/file.txt
mft-lite transfer gs://source-bucket/file.txt sftp://user@sftp.example.com/drop/file.txt
mft-lite transfer s3://source-bucket/file.txt gs://target-bucket/file.txt

For SFTP authentication:

export MFT_LITE_SFTP_USERNAME=user
export MFT_LITE_SFTP_PASSWORD='secret'
# or
export MFT_LITE_SFTP_KEY_FILE=/path/to/private_key

Python API

from mft_lite import transfer

result = transfer(
    source="./file.txt",
    destination="./copy.txt",
    retries=3,
)
print(result.bytes_transferred, result.checksum_sha256)

Development

python -m venv .venv
source .venv/bin/activate
pip install -e ".[dev]"
pytest
ruff check src tests
python -m build
python -m twine check dist/*

Publish

python -m twine upload dist/*

Use __token__ as username and your PyPI API token as password.

Security note

SFTP uses system known-hosts validation and rejects unknown host keys by default. Add trusted host keys to ~/.ssh/known_hosts before production use.

License

MIT

Author: Raghava Chellu

MIT License is freely usable for academic, personal, and commercial projects.

Metadata

Release files for mft-lite 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mft-lite 0.1.0
File Size Uploaded Provenance
mft_lite-0.1.0.tar.gz 5.1 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for mft-lite 0.1.0
File Interpreter ABI Platform
mft_lite-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 13.6 kB

Release files / mft_lite-0.1.0.tar.gz

Download URL mft_lite-0.1.0.tar.gz
Size 5.1 kB
Tags Source
SHA-256 checksum
How to use checksums
1d14a6d4dab28384c17c43749ae887cab3488b733038df4ffb928f5831a1fa00
BLAKE2b-256 checksum
How to use checksums
f02ceb2dc2648df7e07704a41c91eb0e6f31d559281d655ce415bd27aa73368b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.6

Release files / mft_lite-0.1.0-py3-none-any.whl

Download URL mft_lite-0.1.0-py3-none-any.whl
Size 8.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cc394b6b028ba72c4f8558f1828e32e756ae672d448607b15120021dcb12aa9b
BLAKE2b-256 checksum
How to use checksums
560574ae98ae2d85836f0c7395e51b78693c7cfcad8e9e17e66cf6caca523dc8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.6

Security for mft-lite 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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page