formatclass 0.0.5
pip install formatclass==0.0.5
Newer version available (1.0.2)
Released:
formatclass(cls,...) - format class representation
Navigation
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: UNKNOWN
- Author: UNKNOWN
- Tags format , class , inspect
Classifiers
- Development Status
- Programming Language
- Topic
Project description
Install
[sudo] pip install formatclass
Usage
>>> from formatclass import formatclass
>>> formatclass(cls)
Example
>>> class Cls(object): pass
>>> class Cls2(Cls):
def __init__(self,arg,arg2="default"): pass
# default
>>> formatclass(CLS2)
'Cls2(__main__.Cls)(arg, arg2="default")'
# args - False/True (default True)
>>> formatclass(CLS2,args=False)
'Cls2(__main__.Cls)'
# fullname - False/True (default True)
>>> formatclass(CLS2,fullname=False)
'Cls2(Cls)(arg, arg2="default")'
Sources:
russianidiot.github.io/python/ - Python packages
russianidiot.github.io/cli/ - command line scripts
README.rst - generated with readmemako.py (python+ mako templates) and .README dotfiles
Project details
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: UNKNOWN
- Author: UNKNOWN
- Tags format , class , inspect
Classifiers
- Development Status
- Programming Language
- Topic
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
File details
Details for the file formatclass-0.0.5.tar.gz
.
File metadata
- Download URL: formatclass-0.0.5.tar.gz
- Upload date:
- Size: 6.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
2ae3a1a411963f26de2a85c3a03335f2acdc488c13537d020ac4a70b47f37265
|
|
MD5 |
282b824620cefc4eac84e5cad2ee8535
|
|
BLAKE2b-256 |
e0ba08ba1c237978567e971b7cb6beb96f2daa184af01457e0873b78a0751265
|