Consider implementing Python `pathlib.Path` interface for e2b filesystem
Open
@mishushakov is already working on this.
Since May 10, 2025.
feature
Improvement
sdk
- Dominant language
- Python
- Stars
- 13.9k
- Forks
- 1k
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 70
Description
Is your feature request related to a problem? Please describe.
It'd be great if I could use python standard library to handle files in the sandbox
Describe the solution you'd like
with Sandbox() as sbx:
# access the root directory
root_path = sbx.Files.root_path()
for path in root_path.iterdir():
print(path)
# access the user directory
user_path = sbx.Files.user_path()
example_path = user_path / "example.txt"
example_path.write_text("hello sandbox")
Additional context
Additional awesomeness would be achieved if I could use things like shutil.copytree for bulk file transfers to and from the sandbox
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.