Tins · objectstore

API reference

The objectstore package, from objectstore 0.4.1, as published on mojoshelf (commit 41fac2800882), by mojo doc from Mojo 1.2.0. Source.

objectstore — storage and HTTP for magmalake.

from objectstore import FileIOResolver, HttpClient, S3Client

Modules: http (a libcurl-backed client, because no Mojo HTTP package resolves from conda), crypto (SHA-256/HMAC, because nothing provides them and SigV4 is made of them), sigv4, path (URI handling), fileio (the InputFile/OutputFile/FileIO traits and the scheme resolver), local, ranges (coalescing many byte ranges into few requests), httpio, s3, and — over SAS/bearer URLs only — gcs and azure.

Modules

  • objectstore.azure objectstore.azure — Azure Blob Storage through SAS-token URLs. 4 structs · 1 function
  • objectstore.crypto objectstore.crypto — SHA-256, HMAC-SHA256 and hex, in pure Mojo. 1 struct · 9 functions
  • objectstore.fileio objectstore.fileio — the InputFile / OutputFile / FileIO traits and the scheme resolver. 4 structs · 3 traits
  • objectstore.gcs objectstore.gcs — Google Cloud Storage over the S3-compatible XML endpoint. 2 structs · 1 function
  • objectstore.http objectstore.http — an HTTP/HTTPS client over libcurl. 5 structs · 15 functions
  • objectstore.httpio objectstore.httpio — a read-only InputFile over http(s)://. 2 structs · 1 function
  • objectstore.local objectstore.local — the filesystem backend. 2 structs · 4 functions
  • objectstore.path objectstore.path — URI parsing and location handling. 1 struct · 6 functions
  • objectstore.ranges objectstore.ranges — byte ranges, and the plan that turns many into few. 2 structs · 1 trait · 3 functions
  • objectstore.s3 objectstore.s3 — an S3 client over HttpClient, signed with SigV4. 5 structs · 9 functions
  • objectstore.sigv4 objectstore.sigv4 — AWS Signature Version 4, header and query flavours. 3 structs · 11 functions