Install Bayer Farmrise App
for expert farming solutions!

@app.get("/stat") def stat(ref: str): path = resolve_ref(ref) if not path.exists(): raise HTTPException(404) stat = path.stat() return "size": stat.st_size, "mtime": time.strftime("%Y-%m-%dT%H:%M:%SZ", time.gmtime(stat.st_mtime)), "etag": f""stat.st_mtime-stat.st_size"", "type": "directory" if path.is_dir() else "file"
GET /stat?ref=id:123e4567-e89b-12d3-a456-426614174000 : cs3 raw
| CS3 Raw | Standard CS3 (gRPC) | |--------------------|-------------------------------------| | stat | Stat() | | read | InitiateDownload() + stream | | write | InitiateUpload() + stream | | delete | Delete() | | list | ListContainerStream() | | Bearer token | Opaque token in Authorization | | ref=path:/... | ReferencePath: ... | | ref=id:... | ReferenceResourceId: ... | | ReferenceResourceId:
When using CS3 Raw, please reference this paper and the original CS3 API documentation from CERN/CS3APIs v1.2+. Those can be added via sidecar services
All example code and a reference Docker image are available at: [hypothetical repository: github.com/cs3/raw]
CS3 Raw drops: shares, public links, garbage collection, file versions, arbitrary metadata, workflows, and space management. Those can be added via sidecar services. 5.1 Server (Python + FastAPI + local filesystem) from fastapi import FastAPI, Header, HTTPException from pathlib import Path import os, json, time app = FastAPI() ROOT = Path("/var/cs3raw")