Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/icy-ideas-burn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@e2b/python-sdk': patch
---

Consolidate logic on the git functionality and tests to ensure parity on sync/async functionality
2 changes: 1 addition & 1 deletion packages/python-sdk/e2b/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
FilesystemEvent,
FilesystemEventType,
)
from .sandbox.git_utils import GitBranches, GitFileStatus, GitStatus
from .sandbox._git import GitBranches, GitFileStatus, GitStatus
from .sandbox.network import ALL_TRAFFIC
from .sandbox.sandbox_api import (
GitHubMcpServer,
Expand Down
78 changes: 78 additions & 0 deletions packages/python-sdk/e2b/sandbox/_git/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
from e2b.sandbox._git.args import (
build_add_args,
build_branches_args,
build_checkout_branch_args,
build_clone_plan,
build_commit_args,
build_credential_approve_command,
build_create_branch_args,
build_delete_branch_args,
build_git_command,
build_has_upstream_args,
build_pull_args,
build_push_args,
build_remote_add_args,
build_remote_add_shell_command,
build_remote_get_command,
build_remote_get_url_args,
build_remote_set_url_args,
build_reset_args,
build_restore_args,
build_status_args,
shell_escape,
)
from e2b.sandbox._git.auth import (
build_auth_error_message,
build_upstream_error_message,
is_auth_failure,
is_missing_upstream,
strip_credentials,
with_credentials,
)
from e2b.sandbox._git.config import resolve_config_scope
from e2b.sandbox._git.parse import (
derive_repo_dir_from_url,
parse_git_branches,
parse_git_status,
parse_remote_url,
)
from e2b.sandbox._git.types import ClonePlan, GitBranches, GitFileStatus, GitStatus

__all__ = [
"build_add_args",
"build_auth_error_message",
"build_branches_args",
"build_checkout_branch_args",
"build_clone_plan",
"build_commit_args",
"build_credential_approve_command",
"build_create_branch_args",
"build_delete_branch_args",
"build_git_command",
"build_has_upstream_args",
"build_pull_args",
"build_push_args",
"build_remote_add_args",
"build_remote_add_shell_command",
"build_remote_get_command",
"build_remote_get_url_args",
"build_remote_set_url_args",
"build_reset_args",
"build_restore_args",
"build_status_args",
"build_upstream_error_message",
"derive_repo_dir_from_url",
"is_auth_failure",
"is_missing_upstream",
"parse_git_branches",
"parse_git_status",
"parse_remote_url",
"resolve_config_scope",
"shell_escape",
"strip_credentials",
"with_credentials",
"ClonePlan",
"GitBranches",
"GitFileStatus",
"GitStatus",
]
Loading