csv icon indicating copy to clipboard operation
csv copied to clipboard

CSV Decoding and Encoding for Elixir

Results 15 csv issues
Sort by recently updated
recently updated
newest added

**This PR addresses** No issue **Open questions** - Could also be changed to `~> 1.0` or `>= 1.0.4 and ~> 1.0` **Checklist** - Tests added - Coverage increases or stays...

Attempting to `CSV.decode` a stream that contains non-UTF8 bytes raises a `FunctionClauseError`: ``` ** (FunctionClauseError) no function clause matching in CSV.Decoding.Preprocessing.Lines.starts_sequence?/5 The following arguments were given to CSV.Decoding.Preprocessing.Lines.starts_sequence?/5: # 1...

**This PR addresses** - runs `mix format` (separate commit) - #103 **Open questions** None **Checklist** - [x] Tests added - [x] Coverage increases or stays the same: `same` - [x]...

**This PR addresses** Adds a force_quote option. This ensures that all fields in the CSV are quoted regardless of if they need it or not. Some broken applications assume all...

**If this is a feature request, why do we need it?** - We are using this library to generate CSVs for user-generated input and transmitting them to another party. (Which...

…ts, expanded documentation **This PR addresses** Headers atomization [issue 77](https://github.com/beatrichartz/csv/issues/77) **Open questions** - Anything that you wanted to discuss **Checklist** - Tests added Yes, for running only relevant tests: `mix...

When using the headers option, it would be convenient if I could get atom-keys instead of string-keys. Right now I do this: ``` def map_strings_to_atoms(string_key_map) do # https://stackoverflow.com/questions/31990134/how-to-convert-map-keys-from-strings-to-atoms-in-elixir map =...

feature request

**This PR addresses** Encode headers as Keyword list #85 CSV.encode accepts a Keyword list as headers, the keys of that list will be used as the keys for the rows,...

Includes an option to add the raw csv line to the the error tuple and to the exceptions.

Hi, Thanks for great library. The `CSV.decode(...)` function returns a tuple, either `{:ok, map()}` in case of success or `{:error, binary()}` in case of failure to decode. My usecase. Read...

feature request