| Crates.io | cortex-sources |
| lib.rs | cortex-sources |
| version | 0.1.0 |
| created_at | 2024-11-14 21:20:51.937286+00 |
| updated_at | 2024-11-14 21:20:51.937286+00 |
| description | Ready-made source implementations for various data inputs in the Cortex ecosystem |
| homepage | |
| repository | https://github.com/intelliseek/cortex |
| max_upload_size | |
| id | 1448353 |
| size | 9,825 |
Ready-made source implementations for various data inputs that can be used with the cortex-ai processing framework.
Add this to your Cargo.toml:
[dependencies]
cortex-sources = "0.1.0"
use cortex_sources::fs::FileSource;
use cortex_ai::composer::flow::Source;
#[tokio::main]
async fn main() {
let source = FileSource::new("path/to/file.txt");
let content = source.read().await.unwrap();
println!("File content: {}", content);
}
This project is licensed under the Apache 2.0 License - see the LICENSE file for details.