This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Read and write Ruby-marshalled data.

Project Description
RubyMarshal
===========

Read and write Ruby-marshalled data.
Only basics Ruby data types can be read and written:

* `float`,
* `bool`,
* `int`,
* `str` (mapped to `unicode` in Python 2),
* `nil` (mapped to `None` in Python),
* `array` (mapped to `list`),
* `hash` (mapped to `dict`),
* symbols and other classes are mapped to specific Python classes.

Installation
------------

pip install rubymarshal

Usage
-----


from rubymarshal.reader import loads, load
from rubymarshal.writer import writes, write
with open('my_file', 'rb') as fd:
content = load(fd)
with open('my_file', 'wb') as fd:
write(fd, my_object)
loads(b"\x04\bi\xfe\x00\xff")
writes(-256)

Infos
-----

Code is on github: https://github.com/d9pouces/RubyMarshal
Documentation is on readthedocs: http://rubymarshal.readthedocs.org/en/latest/
Tests are on travis-ci: https://travis-ci.org/d9pouces/RubyMarshal
Release History

Release History

This version
History Node

1.0.3

History Node

1.0.1

History Node

1.0.0

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
rubymarshal-1.0.3.tar.gz (9.4 kB) Copy SHA256 Checksum SHA256 Source Jan 21, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting