All Topics
All Topics
Technology
Technology
Design
Design
Programming
Programming
Science
Science
News
News
Gaming
Gaming
Entertainment
Entertainment
Business
Business
Finance
Finance
Sports
Sports
Health
Health
Food
Food
Travel
Travel
Art
Art
Music
Music
Books
Books
Education
Education
Politics
Politics
Personal
Personal
No algorithm. No AI slop. No ads. Just RSS. Pro-human. Indie writers. Real journalism. Open web. Chronological. Hand toasted.

fs-code API Documentation: PyFilesystems for GitLab, GitHub, and Git

By

indigodaddy

8mo ago· 1 min readen

Summary

This is API documentation for fs-code, a Python library that provides PyFilesystems interfaces for GitLab, GitHub, and Git repositories. It includes installation instructions using pip with different provider options and demonstrates usage examples showing how to access files from GitLab repositories using both FS URLs and direct class instantiation.

Key quotes

· 5 pulled
pip install fs-code[gitlabfs]
user_fs = fs.open_fs("gitlab://?user=dAnjou")
readme = user_fs.open("fs-code/main/README.md")
from codefs.gitlabfs import UserFS
user_fs = UserFS(Gitlab(), user="dAnjou")
Snippet from the RSS feed

You might also wanna read