Get the latest tech news
Fs-code – PyFilesystems for Gitlab, GitHub, and Git
Lab, GitHub, and Git. Installation pip install fs-code[gitlabfs] # or pip install fs-code[githubfs] # or pip install fs-code[gitfs] # or pip install fs-code[all] Usage with FS URL import fs user_fs = fs.open_fs("gitlab://?user=dAnjou") readme = user_fs.open("fs-code/main/README.md") print(readme.read()) with class from gitlab import Gitlab from codefs.gitlabfs import UserFS user_fs = UserFS(Gitlab(), user="dAnjou") readme = user_fs.open("fs-code/main/README.md") print(readme.read()).
Or read this on Hacker News