PyFilesystems for GitLab, GitHub, and Git
Project description
fs-code
PyFilesystems for GitLab, 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())
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
fs_code-0.2.tar.gz
(8.4 kB
view hashes)
Built Distribution
fs_code-0.2-py3-none-any.whl
(11.3 kB
view hashes)