API Reference
LucidLink Python Library
Python bindings for LucidLink Core C++ daemon library. Provides programmatic access to LucidLink filespaces from Python.
See the Quick Start for usage examples.
- lucidlink.create_daemon(config: Dict[str, str] | None = None, sandboxed: bool = True, persist_files: bool = False, root_path: str | Path | None = None) Daemon[source]
Create a
Daemonwith simplified storage configuration.This is a convenience factory that makes it easier to configure daemon storage without needing to manually create
StorageConfigobjects.- Parameters:
config – Additional daemon configuration options (cache size, etc.)
sandboxed – If
True(default), use temp directory that’s always cleaned up. IfFalse, use.lucidsubfolder in current directory.persist_files – If
False(default), clean up files when daemon stops. Only applies whensandboxed=False. Sandboxed mode always cleans up.root_path – Override root path for files (only when
sandboxed=False). IfNone, uses current working directory.
- Returns:
Daemoninstance with specified storage configuration
Example
# Sandboxed (default) - files in temp, always cleaned up daemon = lucidlink.create_daemon() # Physical with cleanup - files in .lucid/, cleaned up on exit daemon = lucidlink.create_daemon(sandboxed=False) # Physical with persistence - files in .lucid/, kept after exit daemon = lucidlink.create_daemon(sandboxed=False, persist_files=True) # Custom root path daemon = lucidlink.create_daemon( sandboxed=False, root_path="D:/lucid_data", ) # With custom config daemon = lucidlink.create_daemon( config={"fs.cache.size": "2048"}, sandboxed=False, persist_files=True, )
- connect
ConnectManagerConnectManager.add_data_store()ConnectManager.are_data_stores_available()ConnectManager.count_external_files()ConnectManager.get_data_store()ConnectManager.link_file()ConnectManager.list_data_stores()ConnectManager.list_external_files()ConnectManager.rekey_data_store()ConnectManager.remove_data_store()ConnectManager.unlink_file()
- connect_models
DataStoreCredentialsDataStoreInfoDataStoreInfo.access_keyDataStoreInfo.bucket_nameDataStoreInfo.endpointDataStoreInfo.from_dict()DataStoreInfo.key_idDataStoreInfo.kindDataStoreInfo.nameDataStoreInfo.regionDataStoreInfo.rekey_stateDataStoreInfo.secret_keyDataStoreInfo.url_expiration_minutesDataStoreInfo.use_virtual_addressing
DataStoreKindDataStoreRekeyStateLinkedFilesResultS3CredentialsS3DataStoreConfig
- credentials
- daemon
- exceptions
- filespace
- filesystem
FileHandleFilesystemFilesystem.create()Filesystem.create_dir()Filesystem.delete()Filesystem.delete_dir()Filesystem.dir_exists()Filesystem.file_exists()Filesystem.get_entry()Filesystem.get_size()Filesystem.get_statistics()Filesystem.list_dir()Filesystem.lock_byte_range()Filesystem.move()Filesystem.open()Filesystem.open_legacy()Filesystem.read_dir()Filesystem.read_file()Filesystem.truncate()Filesystem.unlock_all_byte_ranges()Filesystem.unlock_byte_range()Filesystem.write_file()
- fsspec
AbstractFileSystemLucidLinkFileSystemLucidLinkFileSystem.cat()LucidLinkFileSystem.cat_file()LucidLinkFileSystem.close()LucidLinkFileSystem.exists()LucidLinkFileSystem.get()LucidLinkFileSystem.info()LucidLinkFileSystem.isdir()LucidLinkFileSystem.isfile()LucidLinkFileSystem.ls()LucidLinkFileSystem.makedirs()LucidLinkFileSystem.mkdir()LucidLinkFileSystem.mv()LucidLinkFileSystem.optionsLucidLinkFileSystem.protocolLucidLinkFileSystem.put()LucidLinkFileSystem.rename()LucidLinkFileSystem.rm()LucidLinkFileSystem.rmdir()LucidLinkFileSystem.sync_all()
- filespace_models
- filesystem_models
- storage
- stream
LucidFileStreamLucidFileStream.close()LucidFileStream.closedLucidFileStream.fileno()LucidFileStream.isatty()LucidFileStream.modeLucidFileStream.nameLucidFileStream.read()LucidFileStream.readable()LucidFileStream.readinto()LucidFileStream.seek()LucidFileStream.seekable()LucidFileStream.tell()LucidFileStream.truncate()LucidFileStream.writable()LucidFileStream.write()
open_buffered()open_text()
- workspace