cortex-sources

Crates.iocortex-sources
lib.rscortex-sources
version
sourcesrc
created_at2024-11-14 21:20:51.937286
updated_at2024-11-14 21:20:51.937286
descriptionReady-made source implementations for various data inputs in the Cortex ecosystem
homepage
repositoryhttps://github.com/intelliseek/cortex
max_upload_size
id1448353
Cargo.toml error:TOML parse error at line 18, column 1 | 18 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include`
size0
canavar (yaman)

documentation

https://docs.rs/cortex

README

Cortex Sources

Crates.io Documentation License: Apache

Ready-made source implementations for various data inputs that can be used with the cortex-ai processing framework.

Features

  • File system sources
  • More coming soon...

Usage

Add this to your Cargo.toml:

[dependencies]
cortex-sources = "0.1.0"

Example

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);
}

License

This project is licensed under the Apache 2.0 License - see the LICENSE file for details.

Commit count: 15

cargo fmt