e2b-dev / e2b-dev/E2B

Consider implementing Python `pathlib.Path` interface for e2b filesystem

Open
#465 2 comments 0 reactions 1 assignee View on GitHub

@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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.