{"library":"ossfs","title":"ossfs - fsspec filesystem for Alibaba Cloud OSS","description":"ossfs provides an fsspec-compatible filesystem interface for Alibaba Cloud Object Storage Service (OSS). Current version is 2025.5.0, with monthly/quarterly releases. It supports both synchronous and asynchronous operations and requires Python >=3.8.","language":"python","status":"active","last_verified":"Fri May 01","install":{"commands":["pip install ossfs","pip install ossfs[async]"],"cli":null},"imports":["from ossfs import OSSFileSystem","from ossfs import AioOSSFileSystem"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"from ossfs import OSSFileSystem\nimport os\n\nfs = OSSFileSystem(\n    key=os.environ.get('OSS_ACCESS_KEY_ID', ''),\n    secret=os.environ.get('OSS_ACCESS_KEY_SECRET', ''),\n    endpoint=os.environ.get('OSS_ENDPOINT', ''),\n)\n\n# List buckets\nprint(fs.ls('/'))\n\n# List objects in a bucket\nbucket = 'my-bucket'\nprint(fs.ls(bucket))\n\n# Read a file\nwith fs.open(f'{bucket}/path/to/file.txt', 'rb') as f:\n    print(f.read())","lang":"python","description":"Initialize OSSFileSystem with credentials from environment variables, then use standard fsspec operations.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}