Skip to main content

PyFilesystems for GitLab, GitHub, and Git

Project description

fs-code

Documentation PyPI Pipeline status 3.8 coverage 3.12 coverage Code style: black

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.3.2.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

fs_code-0.3.2-py3-none-any.whl (12.0 kB view details)

Uploaded Python 3

File details

Details for the file fs_code-0.3.2.tar.gz.

File metadata

  • Download URL: fs_code-0.3.2.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.12.2 Linux/5.4.109+

File hashes

Hashes for fs_code-0.3.2.tar.gz
Algorithm Hash digest
SHA256 1661560d2834c08c0b4bcf1b9c255a5f14a08da030dc8b6aaa67d76e497a5e72
MD5 3d02a2e2845fb4e4f80b249162742dbd
BLAKE2b-256 fafc4417a327200964af4897df3b855900fb8e5308b42791420d352083b1d47b

See more details on using hashes here.

File details

Details for the file fs_code-0.3.2-py3-none-any.whl.

File metadata

  • Download URL: fs_code-0.3.2-py3-none-any.whl
  • Upload date:
  • Size: 12.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.12.2 Linux/5.4.109+

File hashes

Hashes for fs_code-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a39a5c6d1eb564946adb74c745a460b21579e7df77ff07e8fbd20b953aecbd02
MD5 6f37691247d03026e0787b0dd0bc0486
BLAKE2b-256 31c83d24c25bd2abcb4a5919968e7f6b97d977b591eb345ab2d9388aafc97c78

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page