Popularity
4.3
Growing
Activity
0.0
Stable
27
4
7
Monthly Downloads: 1,516
Programming language: Elixir
License: Do What The F*ck You Want To Public License
Tags:
CSV
Latest version: v0.1.2
cesso alternatives and similar packages
Based on the "CSV" category.
Alternatively, view cesso alternatives based on common mentions on social networks and blogs.
-
Erlang NIF CSV parser and writer
Erlang NIF CSV parser
ONLYOFFICE Docs — document collaboration in your environment
Powerful document editing and collaboration in your app or environment. Ultimate security, API and 30+ ready connectors, SaaS or on-premises
Promo
www.onlyoffice.com
Do you think we are missing an alternative of cesso or a related project?
README
cesso - CSV parser for Elixir
Simple library to parse CSV lazily, especially made to parse huge exported databases.
Examples
use Cesso
CSV.decode(~s<lol,wut>)
|> IO.inspect # => [["lol", "wut"]]
# string columns are supported
CSV.decode(~s<lol,"wut,omg">)
|> IO.inspect # => [["lol", "wut,omg"]]
# they can also span multiple lines
CSV.decode(~s<lol,"wut\nomg",hue>)
|> IO.inspect # => [["lol", "wut\nomg", "hue"]]
# you can also specify a different separator
CSV.decode(~s<lol|||wut>, separator: "|||")
|> IO.inspect # => [["lol", "wut"]]
# the first row can be used as column names
CSV.decode(~s<a,b\nlol,wut>, columns: true)
|> IO.inspect [[{ "a", "lol" }, { "b", "wut" }]]
# otherwise you can pass the column names
CSV.decode(~s<lol,wut>, columns: ["a", "b"])
|> IO.inspect [[{ "a", "lol" }, { "b", "wut" }]]
# you can also parse a file
CSV.decode(File.stream!("db.csv"))