https://github.com/red-data-tools/red-arrow-pycall
A library that provides conversion method between Apache Arrow and PyCall
https://github.com/red-data-tools/red-arrow-pycall
Last synced: about 1 year ago
JSON representation
A library that provides conversion method between Apache Arrow and PyCall
- Host: GitHub
- URL: https://github.com/red-data-tools/red-arrow-pycall
- Owner: red-data-tools
- License: other
- Created: 2017-07-06T12:35:31.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2019-03-21T02:09:52.000Z (over 7 years ago)
- Last Synced: 2025-03-27T10:47:24.810Z (over 1 year ago)
- Language: Ruby
- Size: 35.2 KB
- Stars: 3
- Watchers: 4
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# README
## Name
Red Arrow PyCall
## Description
Red Arrow PyCall is a library that provides converters between Ruby objects for Apache Arrow and Python objects for Apache Arrow.
Red Arrow PyCall adds `#to_python` method to most Ruby objects for Apache Arrow such as `Arrow::Array`. Red Arrow PyCall adds `to_ruby` method to most Python objects for Apache Arrow such as `pyarrow.lib.Int8Array`.
## Install
```text
% gem install red-arrow-pycall
```
## Usage
```ruby
require "arrow-pycall"
arrow_int8_array.to_python # -> An object of PyCall::PyObject that wraps pyarrow.lib.Int8Array
py_arrow_int8_array.to_ruby # -> An object of Arrow::Int8Array
```
## Dependencies
* [Red Arrow](https://github.com/red-data-tools/red-arrow)
* [PyCall](https://github.com/mrkn/pycall)
## Authors
* Kouhei Sutou \
## License
Apache License 2.0. See doc/text/apache-2.0.txt for details.
(Kouhei Sutou has a right to change the license including contributed
patches.)