feat(bindings/python): enable github service - #8011
Draft
trim21 wants to merge 4 commits into
Draft
Conversation
trim21
requested review from
Xuanwo,
Zheaoli,
messense and
tisonkun
as code owners
August 1, 2026 15:25
trim21
marked this pull request as draft
August 1, 2026 15:27
GithubConfig::from_uri requires owner and repo to be parsed from the URI
authority, which breaks Operator::via_iter("github", env) construction
used by the behavior tests and env-driven setups. Fall back to options
when the URI has no authority or path.
Run the existing read-only behavior tests against the fixtures in core/tests/data of the apache/opendal repository. Forward the workflow GITHUB_TOKEN to raise the GitHub API rate limit.
trim21
force-pushed
the
feat-python-enable-github
branch
from
August 1, 2026 15:27
00ed2cc to
e545126
Compare
GitHub ignores the Range header on authenticated Contents API requests and returns the full content with 200 instead of 206. Slice the response client-side when the server did not honor the requested range, matching the pattern used by other services.
trim21
force-pushed
the
feat-python-enable-github
branch
from
August 1, 2026 15:40
e545126 to
38129a7
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Which issue does this PR close?
None.
Rationale for this change
Enable the github service in the python binding by default. The service is a pure-HTTP implementation with no special backend requirements, so it fits the default feature set.
What changes are included in this PR?
services-githubto the default features inbindings/python/Cargo.tomland drop theFIXME EXCLUDEDmarker.dev/src/generate/python.rs).src/services.rs,python/opendal/config.pyandpython/opendal/services.pyisoScheme.GithubandGithubConfigare available.DEPENDENCIES.rust.tsvwithopendal-service-github.Are there any user-facing changes?
opendal.Scheme.Githubandopendal.config.GithubConfigbecome available, andgithub://URIs work withOperator.from_uri.Depends on
.github/services/github/.AI Usage Statement
This PR was developed with the assistance of an AI coding agent (pi) for implementation, testing, and PR preparation; the changes were reviewed by the author.