property for class methods
Project description
classproperty
======
#### Install
```pip install classproperties```
#### Usage
```
from classproperties import classproperty
class Foo:
@classproperty
def prop():
return 'hi there'
@classproperty
def other(cls):
return 'also works'
Foo.prop
Foo.other
```
======
#### Install
```pip install classproperties```
#### Usage
```
from classproperties import classproperty
class Foo:
@classproperty
def prop():
return 'hi there'
@classproperty
def other(cls):
return 'also works'
Foo.prop
Foo.other
```
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
classproperties-0.2.0.tar.gz
(2.6 kB
view details)
File details
Details for the file classproperties-0.2.0.tar.gz
.
File metadata
- Download URL: classproperties-0.2.0.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: Python-urllib/2.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
a77e96a666898ecd697dd7f331d9ab1e38383c1edef809d953bb5f8a3ea67c2a
|
|
MD5 |
bb768aa72cdd8e0457c0a23337a5077d
|
|
BLAKE2b-256 |
eecfa540ef6bbf6df3192dcb6549a8c84034f5937c5393cefce49f7dec29fead
|