Giter VIP home page Giter VIP logo

python-deprecate's Introduction

python-deprecate

Build Status Coverage Status

A module providing deprecated decorator

License

Licensed under both GPLv3 and MPL 2.0 (without Exhibit B).

python-deprecate's People

Contributors

ronnypfannschmidt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

jean

python-deprecate's Issues

licensing

Hey.
Would you be willing to change the licensing on this library to BSD or MIT?
I think there is a place for a good deprecation library in Python, and so I'd like to contribute to this and add some more functionality.
However, if it is GPL licensed, it can't be used in any of the projects I'm working on (in the scipy / scikit space).

Related, I would like to add the following features:

  • removing a function
  • removing a class
  • removing an attribute
  • removing a method
  • renaming a parameter
  • changing the default value of a parameter
  • changing a parameter option ("behavior X was called x, now it's called y").
  • renaming a function
  • renaming a class
  • renaming a method
  • renaming an attribute
  • moving a class
  • moving a function
  • moving a module
  • having deprecation version and removal version in all deprecations
    [I'm probably forgetting some]

support custom deprecation warning types

projects like django use distinct types for each roll of deprecation
its highly helpful to have that part of the type

it also allows use-cases where the release that removes the functionality
is in reality simply turning the warnings into errors so they can be scheduled for complete removal in the next release

support warning filter configuration

  • it should be possible to turn warnings into error for tests
  • it should be possible to configure the severity of the warnings (something that gets dropped in the next release should make more noise)

a deprecation shim wrapper

a deprecation shim is a function that is in place of the old function delegating its functionality to new code
those should be able to warn about the migration, and the migration_path

module alias wrapper

whole modules that have been removed need a delegate that warns about their move

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.