python-characteristic-14.3.0-5.2.noarch.rpm


Advertisement

Description

python-characteristic - Say 'yes' to types but 'no' to typing in python

Distribution: openSUSE 42.2
Repository: openSUSE Education all
Package name: python-characteristic
Package version: 14.3.0
Package release: 5.2
Package architecture: noarch
Package type: rpm
Installed size: 115.29 KB
Download size: 26.54 KB
Official Mirror: ftp.gwdg.de
characteristic Python package with class decorators that ease the chores of implementing the most common attribute-related object protocols. You just specify the attributes to work with and characteristic gives you: - a nice human-readable __repr__, - a complete set of comparison methods, - and a kwargs-based initializer (that cooperates with your existing one) *without* writing dull boilerplate code again and again. So put down that type-less data structures and welcome some class into your life!

Alternatives

Provides

  • python-characteristic = 14.3.0-5.2

    Install Howto

    1. Add the openSUSE Education repository:
      # zypper addrepo http://ftp.gwdg.de/pub/opensuse/repositories/Education/openSUSE_Leap_42.2/ opensuse-education
    2. Install python-characteristic rpm package:
      # zypper install python-characteristic

    Files

    • /usr/lib/python2.7/site-packages/characteristic.py
    • /usr/lib/python2.7/site-packages/characteristic.pyc
    • /usr/lib/python2.7/site-packages/test_characteristic.py
    • /usr/lib/python2.7/site-packages/test_characteristic.pyc
    • /usr/lib/python2.7/site-packages/characteristic-14.3.0-py2.7.egg-info/PKG-INFO
    • /usr/lib/python2.7/site-packages/characteristic-14.3.0-py2.7.egg-info/SOURCES.txt
    • /usr/lib/python2.7/site-packages/characteristic-14.3.0-py2.7.egg-info/dependency_links.txt
    • /usr/lib/python2.7/site-packages/characteristic-14.3.0-py2.7.egg-info/top_level.txt
    • /usr/share/doc/packages/python-characteristic/AUTHORS.rst
    • /usr/share/doc/packages/python-characteristic/LICENSE
    • /usr/share/doc/packages/python-characteristic/README.rst

    Changelog

    2015-03-26 - termim@gmail.com - update to version 14.3.0: * All decorators now gracefully accept empty attribute lists. [22]. - changes from version 14.2.0: * Attributes set by :func:`characteristic.attributes` are now stored on the class as well. [20] * __init__ methods that are created by :func:`characteristic.with_init` are now generated on the fly and optimized for each class. [9] - changes from version 14.1.0: * Fix stray deprecation warnings. * Don't rely on warnings being switched on by command line. [17] - changes from version 14.0.0: * Deprecations: + The defaults argument of :func:`~characteristic.with_init` and :func:`~characteristic.attributes` has been deprecated in favor of the new explicit :class:`~characteristic.Attribute` class and it's superior default_value and default_factory arguments. + The create_init argument of :func:`~characteristic.attributes` has been deprecated in favor of the new apply_with_init argument for the sake of consistency. * Changes: + Switch to a year-based version scheme. + Add :func:`~characteristic.immutable` to make certain attributes of classes immutable. Also add apply_immutable argument to :func:`~characteristic.attributes`. [14] + Add explicit :class:`~characteristic.Attribute` class and use it for default factories. [8] + Add aliasing of private attributes for :func:`~characteristic.with_init`?s initializer when used together with :class:`~characteristic.Attribute`. Allow for custom aliasing via a callable. [6, 13] + Add type checks to :func:`~characteristic.with_init`?s initializer. [12] + Add possibility to hand-pick which decorators are applied from within :func:`~characteristic.attributes`. + Add possibility to exclude single attributes from certain decorators.

    2014-07-30 - toddrme2178@gmail.com - Initial version

    Advertisement
    Advertisement