Camlistore client.
Return the hash object for the file `filepath’, processing the file by chunk of `blocksize’.
Parameters: |
|
---|
Check if the hash is valid.
Camlistore Python client
Shortcut to create a new static-set.
Return blob meta data.
Retrieve blob content, return a fileobj. If the blob is a schema, it returns a dict.
Shortcut for restoring/retrieving a directory.
Call camlipy.directory.get_directory under the hood.
Shortcut for downloading/restoring a file.
Call camlipy.filereader.get_file under the hood.
Shortcut to initialize a permanode.
Shortcut to fetch the first permanode with the given title.
Shortcut to initialize a planned permanode.
Shortcut/helper for uploading a single blob.
Blob can be either a string or a fileobj.
Upload blobs using with standard multi-part upload. Returns a dict with received (blobref and size) and skipped (blobref only)
Shortcut for upload an entire directory.
Call camlipy.directory.put_directory under the hood.
Shortcut for uploading a file along with its meta-data.
Call camlipy.filewriter.put_file under the hood.
Perform query with the same syntax as Camistore ui.
Examples of queries: - tag:mytag - title:my_text_file.txt - my query
Shortcut to initialize a static-set.
Helper for uploading recursively directory.
Download a directory.
Helper to put a directory.
Read the file schema, and output chunk in a temp file.
Helper for download a file from his blobRef to a fileobj.
Helper for uploading file, takes care of chunking file, create the file schema.
Chunk metadata, used to create the tree, and compute chunk/bytesRef size.
Helper for uploading a file to a Camlistore server.
Specify either a path, or a fileobj.
Can also create a permanode.
Helper for creating/loading schemas.
Bytes schema.
Claim schema with support for set/add/del attribute.
Directory Schema
File schema.
file_name is guessed from path if provided.
FileCommon schema.
Permanode Schema with helpers for claims.
Create a claim to add avlue to attr.
Append a new camliMember.
Return claims for the current permanode.
Create a claim to delete attr/attr:value.
Retrieve attr from indexer.
Fetch the current camliContent blobRef.
Fetch the current camliMember blobRef.
Create the permanode, takes optional title and tags.
Create a claim to set attr to value.
Create a new camliContent claim.
A planned permanode is like a normal permanode, except it have a meaningful “key” key, and a meaningful “claimDate”, so the signature for the given key, claimDate is always the same.
Basic Schema base class.
Also used to load (and decoding?) existing schema.
Call the API to describe the blob.
Return json data.
Return signed json.
StaticSet schema.
Update a static-set by creating a new one.
Convert a datetime to iso datetime compatible with camlistore.
Return OS stat info for the given path.
Convert timestamp to UTC iso datetime compatible with camlistore.