#dataset #path #node #api #education #querying #found

kuliya

A library for querying Algerian education dataset

2 releases

0.1.2 Nov 21, 2024
0.1.0 Nov 21, 2024

#393 in Filesystem

Download history 68/week @ 2024-11-15 186/week @ 2024-11-22 6/week @ 2024-11-29 14/week @ 2024-12-06

274 downloads per month

MIT license

85KB
2.5K SLoC

kuliya

Algeria's college hierarchy dataset as a crate with useful APIs.

Example

use kuliya::r#static::api::get_node_by_path;

let faculty_of_science_and_technology = get_node_by_path("umkb/fst");

assert_eq!(faculty_of_science_and_technology.is_some(), true);

let faculty_of_science_and_technology = faculty_of_science_and_technology.unwrap();

assert_eq!(faculty_of_science_and_technology.name.ar, "كلية العلوم والتكنلوجيا");

// when the path is not found, the function returns None
let non_existing_node = get_node_by_path("umkb/fst/unknown");

assert_eq!(non_existing_node.is_none(), true);

License: MIT


lib.rs:

Algeria's college hierarchy dataset as a crate with useful APIs.

Example

use kuliya::r#static::api::get_node_by_path;

let faculty_of_science_and_technology = get_node_by_path("umkb/fst");

assert_eq!(faculty_of_science_and_technology.is_some(), true);

let faculty_of_science_and_technology = faculty_of_science_and_technology.unwrap();

assert_eq!(faculty_of_science_and_technology.name.ar, "كلية العلوم والتكنلوجيا");

// when the path is not found, the function returns None
let non_existing_node = get_node_by_path("umkb/fst/unknown");

assert_eq!(non_existing_node.is_none(), true);

Dependencies

~1–2.1MB
~41K SLoC