Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Class Tools for Python

Project Description

Convenience tools for working with Python classes.

Simplified subclassing:

class MyClass:
    def __init__(self, *args, **kwargs):
        pass  # do whatever

# subclass with presets
MySubClass = argumented_subclass(MyClass, 'MySubClass', arg1='value', arg2=4)

Various descriptors:

class Thing:
    Red = ArgumentedSubclass(color='red')
    book = AutoProperty(has='pages')
    def __init__(self, color=None, has=None):
        self.color = color
        self.has = has

Thing.Red  # is a subclass of Thing and is 'red'
Thing.Red.book  # is an instance of Thing (and Thing.Red), is 'red' and has 'pages'

See the full documentation at http://classical.readthedocs.io/en/latest/

Installation

pip install classical

Testing

make test

You may need to install [develop] extras to run tests

Generating docs

make docs

You may need to install [develop] extras to generate docs

Release History

Release History

This version
History Node

2.0.0

History Node

1.1.4

History Node

1.1.3

History Node

1.0.3

History Node

1.0.2

History Node

1.0.1

History Node

1.0.0

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
classical-2.0.0.tar.gz (4.4 kB) Copy SHA256 Checksum SHA256 Source Apr 16, 2017

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting