Skip to main content

chibi_hybrid

https://img.shields.io/pypi/v/chibi_hybrid.svg https://img.shields.io/travis/dem4ply/chibi_hybrid.svg Documentation Status

simple class for have hybrid class and instance methods and add class properties

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.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for chibi-hybrid 1.2.0
File Size Uploaded Provenance Actions
chibi_hybrid-1.2.0.tar.gz 9.0 kB Without provenance Details for chibi_hybrid-1.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for chibi-hybrid 1.2.0
File Interpreter ABI Platform Actions
chibi_hybrid-1.2.0-py2.py3-none-any.whl Python 2, Python 3 none any Details for chibi_hybrid-1.2.0-py2.py3-none-any.whl

Total release size: 12.6 kB

Release files / chibi_hybrid-1.2.0.tar.gz

Download URL chibi_hybrid-1.2.0.tar.gz
Size 9.0 kB
Tags Source
SHA-256 checksum
How to use checksums
470803b0e54456cc4c7f8df9ad73f81f50578480afc3cc049c88758fbdcd6b57
BLAKE2b-256 checksum
How to use checksums
111fbcbf43517c64a289ea2e48884e49877fee79a93029705ecbe1cadde720ef
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.0-py2.py3-none-any.whl

Download URL chibi_hybrid-1.2.0-py2.py3-none-any.whl
Size 3.6 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
90e2074a93209f1884bdcf8d752ee03a98ca3427d1ff6037b6f9e8373f91801c
BLAKE2b-256 checksum
How to use checksums
7c3cd006fe671664148931bbba605cfc21faa9ed90c635984b413d17bcf18332
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.0

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page