chibi_hybrid
simple class for have hybrid class and instance methods and add class properties
Free software: WTFPL
Documentation: https://chibi-hybrid.readthedocs.io.
Features
from chibi_hybrid.chibi_hybrid import Chibi_hybrid, Class_property
class Dump:
__bar = ''
def __init__( self, value ):
self.value = value
@Chibi_hybrid
def foo( cls ):
return cls( 'cls' )
@foo.instancemethod
def foo( self ):
return self.value
@Class_property
def bar( cls ):
return cls.__bar
@bar.setter
def bar( cls, value ):
cls.__bar = value
result = Dump.foo()
assert result == Dump
assert 'cls' == result.value
assert 'cls' == result.foo()
result = Dump( 'cosa' ).foo()
assert 'cosa' == result
assert Dump.bar == ''
Dump.bar = "cosa 2"
assert Dump.bar == 'cosa 2'
History
0.0.1 (2019-10-31)
First release on PyPI.
Metadata
Release files for chibi-hybrid 1.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| chibi_hybrid-1.2.1.tar.gz | 9.2 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| chibi_hybrid-1.2.1-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 12.8 kB
Release files / chibi_hybrid-1.2.1.tar.gz
| Download URL | chibi_hybrid-1.2.1.tar.gz |
|---|---|
| Size | 9.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9ec3a1c0b3ee0c3b8ab9940b251bd7ae57e8311d463abd4f71dbc6d85e0c2a71
|
|
BLAKE2b-256 checksum How to use checksums |
01c48e0f531acc73c33fffc6cb8b831332c3ffaabd99450211992347624c63de
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.7
|
Release files / chibi_hybrid-1.2.1-py2.py3-none-any.whl
| Download URL | chibi_hybrid-1.2.1-py2.py3-none-any.whl |
|---|---|
| Size | 3.6 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
ebc360b25cc752d4626c6c00c6eec856f107b3c8899a0b7f5c02487818b6d00f
|
|
BLAKE2b-256 checksum How to use checksums |
7f8914cf0f8295e339bb5e5b1909396895d001b2fc5e038d37e893d10c21e342
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.7
|
Security for chibi-hybrid 1.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.