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.
Metadata
Release files for rhodochrosite 25.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| rhodochrosite-25.0.2.tar.gz | 28.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| rhodochrosite-25.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 62.5 kB
Release files / rhodochrosite-25.0.2.tar.gz
| Download URL | rhodochrosite-25.0.2.tar.gz |
|---|---|
| Size | 28.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1f811af23c60ede59de792d5707c490fcd3e3f96ccc6db7ecdb3bb0cd9ba3afa
|
|
BLAKE2b-256 checksum How to use checksums |
b471b3e447bc02d3396efea741db0e4492c58dbf719f27203dbb7c728f5c02dd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
pdm/2.26.7 CPython/3.13.12 Linux/6.18.18-gentoo-dist
|
Release files / rhodochrosite-25.0.2-py3-none-any.whl
| Download URL | rhodochrosite-25.0.2-py3-none-any.whl |
|---|---|
| Size | 34.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f6870c8ede0c183ed712e8b892a1ea3a54714870a1927ff4e1073c213bda523d
|
|
BLAKE2b-256 checksum How to use checksums |
8678074e4ffc999d101ec09978df314c93f4425f5d2db8db174e663b86dcc136
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
pdm/2.26.7 CPython/3.13.12 Linux/6.18.18-gentoo-dist
|