megvii-researchmegvii-researchOfficialยท1 Agent Skills Included

megfile

Unified file operations across S3, SFTP, HDFS, and local storage

Performs file reads, writes, copies, syncs, and deletions across local filesystems, S3, SFTP, HTTP, HDFS, and WebDAV using one consistent Python API. Eliminates backend-specific code branches, manual credential juggling, and slow network transfers with built-in retries and fast I/O. Mirrors standard library interfaces like open and pathlib so developers and agents can handle any storage path with minimal learning.
npx skills add megvii-research/megfile --all -g -y

All Skills in This Repository (1)

Pure Emerald Level Indicators

Frequently Asked Questions

FAQPage Schema
How to install megfile?โ–ผ

Run `npx skills add megvii-research/megfile --all -g -y` in your terminal to install this skill globally for your agent.

How to read and write S3 files in Python?โ–ผ

Use smart_open with an s3:// path, for example `smart_open('s3://bucket/key', 'w')`, after setting your AWS credentials as environment variables.

Can one API handle local and cloud storage?โ–ผ

Yes. megfile's smart_* functions and SmartPath class work identically across local disk, S3, SFTP, HTTP, HDFS, and WebDAV paths.

Does megfile have a command line interface?โ–ผ

Yes. Install the CLI extra and run commands like `megfile ls`, `megfile cp`, and `megfile sync` against any supported storage backend.

How to configure multiple S3 endpoints?โ–ผ

Use `megfile config s3` with a profile name and endpoint URL, then create an alias like `tos://` to reference each endpoint in paths.

Related Repositories in Software Engineering

View All in Software Engineeringโ†’