-
Notifications
You must be signed in to change notification settings - Fork 66
Add git to filesystem source 301 #312
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
6681b22
fix csv example
deanja 3e21941
Add gitpythonfs fsspec implementation #301
deanja 4a84bee
revert python version
deanja d3073b7
Make clear the implementation is read-only
deanja 13a891e
Tighten expected types in listings
deanja 1d425dc
Tighten expected types in listings
deanja 4fec235
Merge remote-tracking branch 'refs/remotes/origin/add-git-to-filesyst…
deanja a6a34ac
Default repo location not supported yet
deanja 6f13dc9
refer to commit sha as `hex`
deanja 6714daa
Implement file `mode` like `git://` fsspec has
deanja 90d3cd0
Implement git refs.
deanja bb3b76c
tidy code
deanja e2f2995
Tighten param name path --> repo_path.
deanja 14eaa82
cache git root trees
deanja b2e2d5f
Expand use of tree cache
deanja bc35230
date not needed on directories
deanja 9daaf9a
retrieve commited_date from git log cmd.
deanja b09f919
order fields with git-specific last
deanja 3d3222c
add eager cache on git log.
deanja f3de00f
speed up cache loading for git log
deanja 2c3c45f
reorganise tests
deanja 9a2b573
name consistent with fsspec package
deanja e763f92
Merge remote-tracking branch 'origin/master'
deanja d4312ec
Test gitpythonfs filesystem source.
deanja 6a8834b
Set local dlt dependency for development,
deanja fc839db
Reduce factory demands on FilteItemDict.
deanja File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# gitpythonfs | ||
|
||
Builds on [GitPython](https://gitpython.readthedocs.io/) to provide a Python filesystem interface for git. | ||
|
||
The initial use case is to load file contents from git repos into destinations using tools such as [dlt](https://dlthub.com) | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# file exists to make pytest work. | ||
# | ||
# pytest (or maybe just pytest discovery) expects all nested folders to be packages. | ||
# | ||
# This __init__.py file not required once gitpythonfs is a completely separate | ||
# package to dlt-verified-sources or it's tests are moved to /tests. | ||
# | ||
# An alternative is to run pytest specifically on a subfolder, e.g.: | ||
# pytest sources/filesystem/gitpythonfs |
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.