py_literal

Build status Coverage Dependencies status Crate Documentation

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.

Releases

Contributing

Please feel free to create issues and submit PRs. PRs adding more tests would be especially appreciated.

License

Copyright 2018 Jim Turner

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.