File¶
Lightweight file abstractions used by extractors.
This module defines simple wrappers around uploaded or on-disk files and provides helpers to normalize their contents to strings/JSON that the extractors can consume.
- class algomancy_data.file.File(name, extension, path=None, content=None)[source]¶
Bases:
ABCBase file representation with name, extension, and content source.
- class algomancy_data.file.CSVFile(name, path=None, content=None)[source]¶
Bases:
FileCSV file backed by uploader content or a filesystem path.
- class algomancy_data.file.JSONFile(name, path=None, content=None)[source]¶
Bases:
FileJSON file backed by uploader content or a filesystem path.