https://github.com/queryverse/featherlib.jl
Low level Julia library for reading feather files
https://github.com/queryverse/featherlib.jl
julia queryverse
Last synced: 3 months ago
JSON representation
Low level Julia library for reading feather files
- Host: GitHub
- URL: https://github.com/queryverse/featherlib.jl
- Owner: queryverse
- License: other
- Created: 2018-03-12T04:49:18.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-08-22T06:41:53.000Z (almost 5 years ago)
- Last Synced: 2025-03-26T20:49:33.918Z (4 months ago)
- Topics: julia, queryverse
- Language: Julia
- Homepage:
- Size: 483 KB
- Stars: 4
- Watchers: 2
- Forks: 3
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
README
# FeatherLib
[](http://www.repostatus.org/#active)
[](https://travis-ci.org/queryverse/FeatherLib.jl)
[](https://ci.appveyor.com/project/queryverse/featherlib-jl/branch/master)
[](https://codecov.io/gh/queryverse/FeatherLib.jl)## Overview
This is a low level package to read feather files. It is not meant to be used by end users, but rather as a building block for other packages that expose user friendly APIs for file IO.
End users are encouraged to use either [FeatherFiles.jl](https://github.com/queryverse/FeatherFiles.jl) or [Feather.jl](https://github.com/JuliaData/Feather.jl) to interact with feather files.
## Getting Started
The package exports two functions: ``featherread`` and ``featherwrite``.
Use the ``featherread`` function to read a feather file:
````julia
data = featherread("testfile.feather")
``````data`` will then be of type ``ResultSet``. The field ``columns`` is a vector of vectors and holds the actual data columns. The field ``names`` returns the names of the columns. The ``description`` and ``metadata`` fields return additional data from the feather file.
Use the ``featherwrite`` function to write a feather file:
````julia
featherwrite("testfile.feather", column_data, column_names)
``````columns`` should be a vector of vectors that holds the data to be written. ``column_names`` should be a vector of ``Symbol``s with the column names.
## Acknowledgements
[Douglas Bates](https://github.com/dmbates), [ExpandingMan](https://github.com/ExpandingMan) and [Jacob Quinn](https://github.com/quinnj) deserve most of the credit for the code in this package: their code in the [Feather.jl](https://github.com/JuliaData/Feather.jl) package was the starting point for this package here. They are of course not responsible for any errors introduced by myself in this package here.