suimong / pytomlrs

Example repo of rust+python project using poetry + maturin together.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PyTOML.rs

Python object (de)serializer to/from TOML using Rust.

Example

import pytomlrs

python_value = {
    'a': {
        'b': 1,
        'c': True
    },
    'd': {
        'e': [1.2, 'foobar']
    }
}
pytomlrs.to_toml(python_value)
""" ==>
[a]
b = 1
c = true

[d]
e = [1.2, "foobar"]
"""

About

Example repo of rust+python project using poetry + maturin together.

License:MIT License


Languages

Language:Rust 94.6%Language:Python 5.4%