Crates.io | py_literal |
lib.rs | py_literal |
version | 0.4.0 |
source | src |
created_at | 2018-04-21 23:37:48.067442 |
updated_at | 2021-04-07 03:07:14.838962 |
description | Read and write Python literals |
homepage | |
repository | https://github.com/jturner314/py_literal |
max_upload_size | |
id | 61768 |
size | 67,829 |
This is a pure-Rust crate for parsing/formatting Python literals. See the documentation for more information.
This crate is a work-in-progress. The goal is for the parser to support
everything ast.literal_eval()
does, but it supports only a subset. See the
docs for the FromStr
implementation for Value
for details.
0.4.0
num-bigint
and num-complex
dependencies to 0.4
.0.3.0
num-bigint
and num-complex
dependencies to 0.3
.num-complex
and num-traits
dependencies.std
feature of num-bigint
dependency.0.2.2
pest
and pest_derive
dependencies to 2.0
, by @nagisa.0.2.1
.is_*()
and .as_*()
methods to Value
.Error
. (Implemented source
, and removed the
non-default implementations of description
and cause
.)0.2.0
num-*
dependencies to 0.2.num
to depending on the individual
num-*
crates.0.1.1
0.1.0
Please feel free to create issues and submit PRs. PRs adding more tests would be especially appreciated.
Copyright 2018–2021 Jim Turner and py_literal
developers
Licensed under the Apache License, Version 2.0, or the MIT license, at your option. You may not use this project except in compliance with those terms.