Quickstart¶
This guide takes you from install to working filesystem in under 5 minutes. Every code block below is copy-pasteable and runs with only the base package — no cloud credentials required.
1. Install¶
2. Mount a local directory¶
This mounts ./my-data at /local/my-data/ in the virtual filesystem.
3. Write a file¶
4. Read it back¶
5. List files¶
Mount concepts¶
nexus-fs uses URIs to identify backends. Each URI mounts at an auto-derived path:
| URI | Mount point |
|---|---|
local://./data | /local/data/ |
s3://my-bucket | /s3/my-bucket/ |
gcs://project/bucket | /gcs/bucket/ |
gdrive://shared | /gdrive/shared/ |
Override the mount point with at=:
# skip-test
import nexus.fs
fs = nexus.fs.mount_sync("s3://my-bucket", at="/data")
# Now accessible at /data/ instead of /s3/my-bucket/
Mount multiple backends at once:
# skip-test
import nexus.fs
fs = nexus.fs.mount_sync("s3://my-bucket", "local://./cache")
# /s3/my-bucket/ and /local/cache/ both available
What next?¶
- Set up a cloud backend: S3 | GCS | Google Drive
- Use with pandas or dask: Data Science
- Explore files interactively: nexus-fs playground
- Understand how it works: How Mounting Works