RRRS: Rust(ic) Rapid Random Sampler
Welcome to RRRS, a rapid, hyper-optimized CSV random sampling tool designed with performance and efficiency at its core. Crafted meticulously in Rust, RRRS offers an unparalleled solution for extracting random data samples from CSV files swiftly and effortlessly.
🚀 Features
- Rapid Random Sampling: Quickly extract random samples from large CSV files.
- Hyper-Optimized Performance: Leveraging Rust's powerful system-level capabilities for maximum speed.
- User-Friendly: Simple command-line interface to specify input and output with ease.
- Flexibility: Customizable random sampling according to your data analysis needs.
- Cross-Platform Compatibility: Runs seamlessly on any platform supporting Rust.
🛠 Usage
To get started with RRRS, follow these simple steps:
rrrs -i <input_file_path> -o <output_file_path>
Upon execution, RRRS will prompt you to enter the desired number of rows to be randomly sampled from your CSV file. The output will be a new CSV file, named with the original file title plus a suffix indicating the number of sampled rows (e.g., slogan_data-100). This file will be saved either in the execution path or a specified output directory.
📂 Directory Structure
Understand the organization of RRRS with the following directory structure:
📚 Getting Started
MacOS and Linux
To use RRRS, you need to have Rust installed on your machine. If you don't have Rust installed, you can install it using the following command: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh. For more information, refer to the official Rust installation guide here.
Once Rust is installed, you can install RRRS using the following command: cargo install rrrs.
Windows
Note: RRRS is not yet supported on Windows. However, you can still use it by installing the Windows Subsystem for Linux.
Building from Source
To build RRRS from source, you can clone the repository and build it using the following commands (Note that this is primarily for development purposes):
🤝 Contributing
Contributions to RRRS are warmly welcomed. Whether it's bug reports, feature requests, or code contributions, feel free to open an issue or submit a pull request. Please refer to the contributing guidelines for more details.
📝 License
RRRS is open-sourced under the Apache-2.0 license. See the LICENSE file for more details.