Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gabrielalmir/billion-csv-rs
billion-csv-rs is a Rust project designed to generate a CSV file with one billion records. Each record contains randomly generated data including name, age, birth date, height, weight, and gender.
https://github.com/gabrielalmir/billion-csv-rs
batch-processing billion-csv csv etl rust
Last synced: 11 days ago
JSON representation
billion-csv-rs is a Rust project designed to generate a CSV file with one billion records. Each record contains randomly generated data including name, age, birth date, height, weight, and gender.
- Host: GitHub
- URL: https://github.com/gabrielalmir/billion-csv-rs
- Owner: gabrielalmir
- Created: 2024-11-30T23:05:35.000Z (22 days ago)
- Default Branch: main
- Last Pushed: 2024-11-30T23:09:45.000Z (22 days ago)
- Last Synced: 2024-12-01T00:21:29.056Z (22 days ago)
- Topics: batch-processing, billion-csv, csv, etl, rust
- Language: Rust
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Billion CSV
`billion-csv-rs` is a Rust project designed to generate a CSV file with one billion records. Each record contains randomly generated data including name, age, birth date, height, weight, and gender.
## Table of Contents
- [Installation](#installation)
- [Usage](#usage)
- [Dependencies](#dependencies)
- [License](#license)## Installation
To build and run this project, you need to have [Rust](https://www.rust-lang.org/) installed on your machine. Clone the repository and navigate to the project directory:
```sh
git clone https://github.com/gabrielalmir/billion-csv-rs.git
cd billion-csv
```## Usage
To generate the CSV file, run the following command:
```sh
cargo run
```This will create a file named `data.csv` in the project directory with one billion records.
## Dependencies
The project relies on several crates, as specified in `Cargo.toml`:
- `chrono` for date and time handling
- `csv` for CSV file writing
- `fake` for generating random data
- `rand` for random number generation