Coder Social home page Coder Social logo

py_literal's Introduction

py_literal

Continuous integration 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.4.0

    • Updated num-bigint and num-complex dependencies to 0.4.
  • 0.3.0

    • Updated num-bigint and num-complex dependencies to 0.3.
    • Disabled default features of num-complex and num-traits dependencies.
    • Disabled std feature of num-bigint dependency.
    • Bumped required Rust version to 1.42.
  • 0.2.2

    • Updated pest and pest_derive dependencies to 2.0, by @nagisa.
  • 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–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.

py_literal's People

Contributors

jturner314 avatar nagisa avatar

Stargazers

Aarmn the limitless avatar Hung-I Wang avatar yoogo avatar gerva avatar Jeff Carpenter avatar Yannick Funk avatar fmerg avatar Hoang Phan avatar Fer⊼o Gonzalez-Morales avatar Rod Gaither avatar kenkoooo avatar Adrien avatar Sean Jensen-Grey avatar Dragoș Tiselice avatar 寧靜 avatar messense avatar

Watchers

James Cloos avatar  avatar

Forkers

nagisa

py_literal's Issues

This crate fails to produce reproducible artifacts

I haven’t investigated too closely what exactly is it, but every time this crate is built in a controlled environment, the produced rlib is wildly different.

I suspect it might be due to pest, but I haven’t investigated too deeply yet.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.