Git Product home page Git Product logo

filepath's Introduction

filepath 0.2

What is this?

filepath is an object-oriented API for manipulating filesystem paths on POSIX and Windows. Its primary goal is to provide APIs which are less prone to bugs and security issues than the standard Python os.path APIs. Additionally, it offers access to the contents of zip archives via an alternate implementation of the same API used for accessing a normal filesystem.

filepath is an independent package of the twisted.python.filepath module. Therefore, while this is a brand new package, the code is mature and has already seen a great deal of real-world use.

Because of this, all bug reports should be submitted upstream to Twisted.

Compatibility

filepath is intended to be as compatible with twisted.python.filepath as possible. All changes will be made in twisted.python.filepath first and then migrated to filepath.

As a consequence, filepath inherits Twisted's policies regarding backwards compatibility. As an exception, however, filepath will make no backwards compatibility guarantees for its first few releases.

Installing

filepath requires zope.interface and Python 2.6 or 2.7. It can be installed with pip.

pip install filepath

Unit Tests

For simplicity of maintenance, filepath's unit tests depend on Twisted Trial. You will only be able to run them with Twisted installed. This is the only part of filepath which depends on Twisted.

You can run the tests with the Trial runner:

$ trial filepath

You can probably run them with the stdlib unittest runner, but I can't figure out how right now.

filepath's People

Contributors

dreid 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.