fileprepper-cli
0.2.2
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet tool install --global fileprepper-cli --version 0.2.2
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
dotnet tool install --local fileprepper-cli --version 0.2.2
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=fileprepper-cli&version=0.2.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
nuke :add-package fileprepper-cli --version 0.2.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
FilePrepper
FilePrepper is a powerful C# library for processing and transforming CSV files. It provides a wide range of data manipulation tasks through a flexible and extensible architecture.
Features
Data Manipulation
- Add Columns: Add new columns with specified values
- Remove Columns: Remove specified columns from the dataset
- Rename Columns: Rename columns with a mapping dictionary
- Reorder Columns: Change the order of columns in the output
- Column Interaction: Perform operations between columns (add, subtract, multiply, divide, concatenate)
Data Transformation
- Data Type Convert: Convert column data types (string, integer, decimal, datetime, boolean)
- Date Extraction: Extract components from date columns (year, month, day, etc.)
- Fill Missing Values: Handle missing values with various methods (mean, median, mode, forward fill, etc.)
- Normalize Data: Normalize numeric columns using Min-Max or Z-score methods
- One Hot Encoding: Convert categorical variables into binary columns
- Scale Data: Scale numeric columns using Min-Max or Standardization methods
- Value Replace: Replace specific values in columns with new values
Data Analysis
- Aggregate: Perform grouping and aggregation operations (sum, average, count, min, max)
- Basic Statistics: Calculate various statistics (mean, standard deviation, percentiles, etc.)
Data Organization
- Drop Duplicates: Remove duplicate rows based on specified columns
- Filter Rows: Filter data based on various conditions
- Merge: Combine multiple CSV files (vertical/horizontal merge with different join types)
- Data Sampling: Sample data using different methods (random, systematic, stratified)
File Format Support
- File Format Convert: Convert between different file formats (CSV, TSV, PSV, JSON, XML)
Usage
Each task in FilePrepper follows a consistent pattern:
- Configure the task options
- Create a task instance
- Execute the task with a context
Here's a basic example:
// Configure options
var options = new AddColumnsOption
{
NewColumns = new Dictionary<string, string>
{
{ "NewColumn", "DefaultValue" }
}
};
// Create task
var logger = LoggerFactory.Create(builder => builder.AddConsole())
.CreateLogger<AddColumnsTask>();
var task = new AddColumnsTask(logger);
// Execute
var context = new TaskContext(options)
{
InputPath = "input.csv",
OutputPath = "output.csv"
};
await task.ExecuteAsync(context);
Error Handling
FilePrepper provides flexible error handling through common options:
var options = new AddColumnsOption
{
Common = new CommonTaskOptions
{
ErrorHandling = new ErrorHandlingOptions
{
IgnoreErrors = true,
DefaultValue = "0"
}
}
};
Installation
Add the FilePrepper package to your project:
dotnet add package FilePrepper
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.7.0 | 115 | 4/27/2026 |
| 0.6.2 | 96 | 4/27/2026 |
| 0.6.1 | 103 | 4/27/2026 |
| 0.6.0 | 128 | 3/20/2026 |
| 0.5.0 | 114 | 2/21/2026 |
| 0.4.9 | 128 | 1/10/2026 |
| 0.4.8 | 172 | 11/16/2025 |
| 0.4.7 | 277 | 11/14/2025 |
| 0.4.5 | 311 | 11/13/2025 |
| 0.4.3 | 300 | 11/10/2025 |
| 0.4.0 | 222 | 11/3/2025 |
| 0.2.2 | 197 | 1/17/2025 |
| 0.2.1 | 176 | 1/16/2025 |
| 0.2.0 | 187 | 1/11/2025 |
| 0.1.1 | 200 | 12/16/2024 |
| 0.1.0 | 214 | 12/6/2024 |