Popularity
2.8
Growing
Activity
0.0
Stable
93
13
15
Code Quality Rank:
L1
Programming language: C#
License: Apache License 2.0
Latest version: v0.9.3
FlatMapper alternatives and similar packages
Based on the "Misc" category.
Alternatively, view FlatMapper alternatives based on common mentions on social networks and blogs.
-
Polly
Polly is a .NET resilience and transient-fault-handling library that allows developers to express policies such as Retry, Circuit Breaker, Timeout, Bulkhead Isolation, and Fallback in a fluent and thread-safe manner. From version 6.0.1, Polly targets .NET Standard 1.1 and 2.0+. -
Humanizer
Humanizer meets all your .NET needs for manipulating and displaying strings, enums, dates, times, timespans, numbers and quantities -
Coravel
Near-zero config .NET library that makes advanced application features like Task Scheduling, Caching, Queuing, Event Broadcasting, and more a breeze! -
Hashids.net
A small .NET package to generate YouTube-like hashes from one or many numbers. Use hashids when you do not want to expose your database ids to the user. -
Scientist.NET
A .NET library for carefully refactoring critical paths. It's a port of GitHub's Ruby Scientist library -
WorkflowEngine
WorkflowEngine.NET - component that adds workflow in your application. It can be fully integrated into your application, or be in the form of a specific service (such as a web service). -
HidLibrary
This library enables you to enumerate and communicate with Hid compatible USB devices in .NET. -
DeviceId
A simple library providing functionality to generate a 'device ID' that can be used to uniquely identify a computer. -
Warden
Define "health checks" for your applications, resources and infrastructure. Keep your Warden on the watch. -
Aeron.NET
Efficient reliable UDP unicast, UDP multicast, and IPC message transport - .NET port of Aeron -
ByteSize
ByteSize is a utility class that makes byte size representation in code easier by removing ambiguity of the value being represented. ByteSize is to bytes what System.TimeSpan is to time. -
DeviceDetector.NET
The Universal Device Detection library will parse any User Agent and detect the browser, operating system, device used (desktop, tablet, mobile, tv, cars, console, etc.), brand and model. -
Mediator.Net
A simple mediator for .Net for sending command, publishing event and request response with pipelines supported -
https://github.com/minhhungit/ConsoleTableExt
A fluent library to print out a nicely formatted table in a console application C# -
Valit
Valit is dead simple validation for .NET Core. No more if-statements all around your code. Write nice and clean fluent validators instead! -
FormHelper
ASP.NET Core - Transform server-side validations to client-side without writing any javascript code. (Compatible with Fluent Validation) -
SolidSoils4Arduino
C# .NET - Arduino library supporting simultaneous serial ASCII, Firmata and I2C communication -
Validot
Validot is a performance-first, compact library for advanced model validation. Using a simple declarative fluent interface, it efficiently handles classes, structs, nested members, collections, nullables, plus any relation or combination of them. It also supports translations, custom logic extensions with tests, and DI containers. -
Outcome.NET
Never write a result wrapper again! Outcome.NET is a simple, powerful helper for methods that return a value, but sometimes also need to return validation messages, warnings, or a success bit. -
NaturalSort.Extension
๐ Extension method for StringComparison that adds support for natural sorting (e.g. "abc1", "abc2", "abc10" instead of "abc1", "abc10", "abc2"). -
SystemTextJson.JsonDiffPatch
High-performance, low-allocating JSON object diff and patch extension for System.Text.Json. Support generating patch document in RFC 6902 JSON Patch format. -
trybot
A transient fault handling framework including such resiliency solutions as Retry, Timeout, Fallback, Rate Limit and Circuit Breaker.
InfluxDB - Purpose built for real-time analytics at any scale.
InfluxDB Platform is powered by columnar analytics, optimized for cost-efficient storage, and built with open data standards.
Promo
www.influxdata.com
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of FlatMapper or a related project?
README
FlatMapper
FlatMapper is a library to import and export data from and to plain text files in a Linq compatible way.
Features
- Fast - Only uses Static Reflection and Dynamic methods
- LINQ Compatible
- It supports character delimited and fixed length files
- Non intrusive - You don't have to change your code. Any POCO will work
- No external Dependencies
- Iterative reads - Doesn't need to load the entire file into memory
- Multi-line support (Only on character delimited and quoted)
- Nullables support
- Vitually any type support with FieldValueConverters
- Fluent Interface
- Per line/record Error handling
- Simple to use
How to use
Fixed Length Layout
var layout = new Layout<TestObject>.FixedLengthLayout()
.HeaderLines(1)
.WithMember(o => o.Id, set => set.WithLength(5).WithLeftPadding('0'))
.WithMember(o => o.Description, set => set.WithLength(25).WithRightPadding(' '))
.WithMember(o => o.NullableInt, set => set.WithLength(5).AllowNull("=Null").WithLeftPadding('0'))
.WithMember(o => o.NullableEnum, set => set.WithLength(10).AllowNull("======NULL").WithLeftPadding(' '))
.WithMember(o => o.Date, set => set.WithLength(19).WithFormat(new CultureInfo("pt-PT"))); //PT-pt default dates are always fixed 19 chars "13-12-2015 23:41:41"
Delimited Layout
var layout = new Layout<TestObject>.DelimitedLayout()
.WithDelimiter(";")
.WithQuote("\"")
.HeaderLines(1)
.WithMember(o => o.Id, set => set.WithLength(5).WithLeftPadding('0'))
.WithMember(o => o.Description, set => set.WithLength(25).WithRightPadding(' '))
.WithMember(o => o.NullableInt, set => set.WithLength(5).AllowNull("=Null").WithLeftPadding('0'))
.WithMember(o => o.NullableEnum, set => set.WithLength(10).AllowNull("").WithLeftPadding(' '))
.WithMember(o => o.Date, set => set.WithFormat(new CultureInfo("pt-PT")));
Reading and Writing
//Reading data
using (var fileStream = File.OpenRead("c:\temp\data.txt"))
{
var flatfile = new FlatFile<TestObject>(layout, fileStream);
foreach(var objectInstance in flatfile.Read())
{
//Do Somethig....
}
}
//Writing data
using (var fileStream = File.OpenWrite("c:\temp\data.txt"))
{
var flatfile = new FlatFile<TestObject>(layout, fileStream)
flatfile.Write(listOfObjects);
}
For more detailed information please check the wiki