2 releases
0.1.1 | Jan 24, 2025 |
---|---|
0.1.0 | Jan 24, 2025 |
#738 in Web programming
246 downloads per month
14KB
156 lines
Esix
Esix is a simple wrapper for the e621 API in Rust.
Installation
[dependencies]
esix = "0.1.1"
Example
use esix::{error::Error, Esix};
fn main() -> Result<(), Error> {
let mut client = Esix::new(
"API_KEY",
"USERNAME",
"project_name".to_string(),
"project_version".to_string(),
);
let posts = client.list("rating:safe", 1)?;
for post in posts {
println!("{:?}", post);
}
Ok(())
}
This crate is still in development and is not yet ready for production use.
It may include many bugs and missing features.
License
This project is licensed under the MIT license.
Contributing
Please feel free to contribute to this project by opening a pull request.
You are responsible for any possible form of abuse with the e621 API.
lib.rs
:
You are responsible for any possible form of abuse with the e621 API.
Esix is an e621 API client for Rust.
"Esix" is a mascot name of e621.
Example
This example shows an example action of getting the post with the highest score that has the tag "tic_tac".
use esix::{Esix, error::Error};
fn main() -> Result<(), Error> {
let mut client = Esix::new(
"API_KEY",
"USERNAME",
"project_name".to_string(),
"project_version".to_string()
);
let posts = client.list("rating:safe", 1)?;
for post in posts {
println!("{:?}", post);
}
Ok(())
}
Dependencies
~4–15MB
~196K SLoC