| Crates.io | smart_open |
| lib.rs | smart_open |
| version | 0.1.3 |
| created_at | 2018-12-29 04:00:04.001916+00 |
| updated_at | 2019-02-04 05:55:47.215662+00 |
| description | opens files for reading. |
| homepage | |
| repository | https://github.com/infinite-Joy/smart-open |
| max_upload_size | |
| id | 104337 |
| size | 14,457 |
Opens files for reading.
smart_open is a rust crate under active development with the goal of opening any text file (compressed or uncompressed) present either in local or on the cloud or the web.
extern crate smart_open as sm;
pub fn main() {
let text = sm::smart_open("tests/bar.txt.gz").unwrap();
println!("{}", text);
}
You can find sample code for other types of files in the examples directory.
Open text file on local filesystem.
Open gz text file on local filesystem.
Support for other text file formats (csv, json) etc.
Text files on s3.
Gz files on s3.
Files on http.
smart_open lives on Github. You can file issues or pull requests there. Suggestions, pull requests and improvements welcome!
smart_open is open source software released under the MIT license. Copyright (c) 2018-now Joydeep Bhattacharjee.