GithubHelp home page GithubHelp logo

prustle-rs's Introduction

prustle (Python-like Standard Library)

Build Status

This Rust crate is a (very, very!) partial implementation of the Python Standard Library using Rust primitives.

Its main purpose is to allow an easy migration path for Python programmers, providing them with similar function names and APIs that they are used to.

Also, by giving Python programmers a clue about how the Python Standard Library APIs can be implemented in Rust, helpful experience about the language can further the transition into the native use of the language, further the transition to Rust programming.

Examples

  • Python's os.name() provided as prustle::os::uname() (implemented using the uname crate).
  • Python's os.makedirs() provided as prustle::os::makedirs() (implemented using std::fs::create_dir_all)
  • Python's dynamic cast to bool value is implemented using Boolable trait.

TODO

  • os.listdir
  • ... many other commonly used APIs.

Contribution

Any help or assistance in extending this package is welcome.

I don't assume that this will grow into a huge project, but occasionally I intend to extend this project when I find APIs easy enough to implement. Not everything maps one-to-one, but it's alright that it does not.

prustle-rs's People

Contributors

da-x avatar steveklabnik avatar

Stargazers

Matthew Mason avatar  avatar anil avatar Vlad Frolov avatar Pradip Caulagi avatar QGW avatar Peter Vrba avatar Gabriel Corado avatar Eliza Weisman avatar  avatar Christoph Grabo avatar keenz avatar Tyler Harper avatar Mark Sta Ana avatar SM avatar Stephen Muss avatar Stephan Sokolow avatar Adam Faur avatar  avatar

Watchers

 avatar  avatar James Cloos avatar  avatar

Forkers

steveklabnik

prustle-rs's Issues

Think about what to leave out

Since e.g. os.path and shutils are superseeded by pathlib in python.

And pathlib is basically already part of rust via std::path

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.