5 releases

✓ Uses Rust 2018 edition

0.2.2 Feb 23, 2020
0.2.1 Sep 24, 2019
0.2.0 Sep 1, 2018
0.1.1 Apr 22, 2018
0.1.0 Apr 21, 2018

#110 in Parser implementations

Download history 1457/week @ 2020-01-24 1171/week @ 2020-01-31 970/week @ 2020-02-07 679/week @ 2020-02-14 525/week @ 2020-02-21 510/week @ 2020-02-28 265/week @ 2020-03-06 207/week @ 2020-03-13 679/week @ 2020-03-20 387/week @ 2020-03-27 541/week @ 2020-04-03 611/week @ 2020-04-10 734/week @ 2020-04-17 721/week @ 2020-04-24 610/week @ 2020-05-01 545/week @ 2020-05-08

3,017 downloads per month
Used in 4 crates (2 directly)

MIT/Apache

51KB
1K SLoC

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

  • 0.2.2

    • Updated pest and pest_derive dependencies to 2.0.
  • 0.2.1

    • Added .is_*() and .as_*() methods to Value.
    • Updated to the new style of Error. (Implemented source, and removed the non-default implementations of description and cause.)
    • Bumped required Rust version to 1.33.
  • 0.2.0

    • Updated num-* dependencies to 0.2.
    • Switched from depending on all of num to depending on the individual num-* crates.
  • 0.1.1

    • Improved crate metadata and documentation (no functional changes).
  • 0.1.0

    • Initial release.

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.

Dependencies

~2.5MB
~36K SLoC