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.0.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.0.0
File Size Uploaded Provenance Actions
chibi_hybrid-1.0.0.tar.gz 9.1 kB Without provenance Details for chibi_hybrid-1.0.0.tar.gz

Built distribution (wheel)

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

Total release size: 12.7 kB

Release files / chibi_hybrid-1.0.0.tar.gz

Download URL chibi_hybrid-1.0.0.tar.gz
Size 9.1 kB
Tags Source
SHA-256 checksum
How to use checksums
0e54fa1bca77a3117fb28604e256754b7f80b7f2a8181e8808367fffe4c721cf
BLAKE2b-256 checksum
How to use checksums
cfbac79d01d5b94390e7d498d0d6e7df70cf84f049a53e8e27cc0bdfd273c0d6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.1

Release files / chibi_hybrid-1.0.0-py2.py3-none-any.whl

Download URL chibi_hybrid-1.0.0-py2.py3-none-any.whl
Size 3.5 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
3ba43edb4f45a4613f829fd71eb1f7537d6d7c4f50c293006e92fbcf75acc9b6
BLAKE2b-256 checksum
How to use checksums
471c7678d720666cdc64cc7afa7dcc3f840a595adf27a1213e31d7b5c4980c94
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.1

Security for chibi-hybrid 1.0.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