Ruby marshal and unmarshal library
Project description
Rhodochrosite is a Python 3.13+ library for loading and saving objects in the Ruby marshal format.
Usage
Use rhodochrosite.read_object:
from rhodochrosite import read_object print(read_object(b'\x04\b"\babc'))
For custom objects, use MarshalReader:
from rhodochrosite import MarshalReader, RubySymbol
data = MarshalReader.from_bytes(...)
data.object_factories[RubySymbol("MyType")] = _make_my_type
my_object = data.next_object()
Format support
Rhodochrosite supports all known features of Ruby’s Marshal format, up to Ruby 3.4. Object links are supported when reading, but not when writing; this has no practical affect other than some written files being larger than their input size.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file rhodochrosite-25.0.2.tar.gz.
File metadata
- Download URL: rhodochrosite-25.0.2.tar.gz
- Upload date:
- Size: 28.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.26.7 CPython/3.13.12 Linux/6.18.18-gentoo-dist
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1f811af23c60ede59de792d5707c490fcd3e3f96ccc6db7ecdb3bb0cd9ba3afa
|
|
| MD5 |
437be3d4f7ad33636afc02552fe710c4
|
|
| BLAKE2b-256 |
b471b3e447bc02d3396efea741db0e4492c58dbf719f27203dbb7c728f5c02dd
|
File details
Details for the file rhodochrosite-25.0.2-py3-none-any.whl.
File metadata
- Download URL: rhodochrosite-25.0.2-py3-none-any.whl
- Upload date:
- Size: 34.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.26.7 CPython/3.13.12 Linux/6.18.18-gentoo-dist
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f6870c8ede0c183ed712e8b892a1ea3a54714870a1927ff4e1073c213bda523d
|
|
| MD5 |
c7e78745e0e4e4ddbc2e67da1bb37543
|
|
| BLAKE2b-256 |
8678074e4ffc999d101ec09978df314c93f4425f5d2db8db174e663b86dcc136
|