An open API service indexing awesome lists of open source software.

https://github.com/juliaaplavin/fixedwidthtables.jl


https://github.com/juliaaplavin/fixedwidthtables.jl

file-formats fixed-width tabular-data

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

          

# FixedWidthTables.jl

Read fixed width (so-called ASCII) tables. A wide range of format specification options, including autodetection.

Basic usage:
```julia
julia> using FixedWidthTables

julia> io = IOBuffer("""
123456
789101
""")

julia> FixedWidthTables.read(io, (
x=(1:2, Int),
y=(3:5, Float64),
z=(6:6, Char),
))
2-element StructArray(::Vector{Int64}, ::Vector{Float64}, ::Vector{Char}) with eltype NamedTuple{(:x, :y, :z), Tuple{Int64, Float64, Char}}:
(x = 12, y = 345.0, z = '6')
(x = 78, y = 910.0, z = '1')
```

See source code and tests for more examples and details.