Giter Site home page Giter Site logo

pombredanne / rpaths Goto Github PK

View Code? Open in Web Editor NEW

This project forked from remram44/rpaths

0.0 2.0 0.0 151 KB

Yet another filename manipulation library. Aims for total Python 2/3 and POSIX/NT compatibility

License: BSD 3-Clause "New" or "Revised" License

Batchfile 0.48% Shell 4.53% Python 94.99%

rpaths's Introduction

[Linux Build] (https://travis-ci.org/remram44/rpaths) [Win Build] (https://ci.appveyor.com/project/remram44/rpaths) [![Coverage Status] (http://codecov.io/github/remram44/rpaths/coverage.svg?branch=master)] (http://codecov.io/github/remram44/rpaths/coverage.svg?branch=master)

rpaths

rpaths is yet another path manipulation library.

The [full documentation is built by ReadTheDocs] (http://rpaths.remram.fr/en/latest/).

It pains me that I should have to write this, however after a survey of the existing packages, including [pathlib] (https://docs.python.org/3/library/pathlib.html) (included in the Python standard library since 3.4, see [PEP 428] (http://legacy.python.org/dev/peps/pep-0428/)), it appears that every one of them chokes on one valid filename or another.

  • Unipath is very close. In fact it is, with pathlib, one of the main inspirations for this work. Unfortunately it makes its path inherit from unicode or bytes, which makes the abstract/concrete class separation too tricky.
  • pathlib is affected with [a bug preventing it from representing some filenames on Windows on Python 2] (https://bitbucket.org/pitrou/pathlib/issue/25); this bug was marked as wontfix. Furthermore, it works very differently on Python 2 and 3, which I believe is very counter-productive.
  • path.py is affected with [a bug making it fail when encountering some filenames on POSIX] (jaraco/path#61). This is also believed to allow for DoS attacks.
  • fpath is affected with the same bug as path.py.

rpaths's People

Contributors

remram44 avatar vbarbaresi avatar wamcvey avatar

Watchers

 avatar  avatar

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.