Skip to main content

holo

Holo is a library provides overload like cpp

Installation

pip install holo

A Simple Example

from holo import overload

@overload
def add(l, r):
    return l + r

@overload
def add(l):
    return l + 2

add(3)
#>5
add(3, 4)
#>7

class Foo:
    def __init__(self, l):
        self.l = l

    @overload
    def add(self):
        return self.l + 2

    @overload
    def add(self, r):
        return self.l + r

f = Foo(3)
f.add()
#>5
f.add(4)
#>7

Release files for holo 0.1.3

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

Source distribution (sdist)

Source distribution for holo 0.1.3
File Size Uploaded
holo-0.1.3.tar.gz 2.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for holo 0.1.3
File Interpreter ABI Platform
holo-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 5.0 kB

Release files / holo-0.1.3.tar.gz

Download URL holo-0.1.3.tar.gz
Size 2.4 kB
Tags Source
SHA-256 checksum
How to use checksums
2fa568b1435ae34ff29476b8c34c2a08ebdf2e612b75e976647a0f1bcac36837
BLAKE2b-256 checksum
How to use checksums
9c98d38fc86b1358d4dae172ccf356bb3051f9812bedf8f1e67dcfe4f26d40f1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.0.9 CPython/3.8.0 Darwin/19.4.0

Release files / holo-0.1.3-py3-none-any.whl

Download URL holo-0.1.3-py3-none-any.whl
Size 2.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a5402564baf1f357a997d7c8a5d4a0f38dc9f83d823b900ae08864190acce397
BLAKE2b-256 checksum
How to use checksums
0b22b79488c48ee89b3a7a58a016dfa8c7c0eb7ad689667e7d898e552b1aa2d1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.0.9 CPython/3.8.0 Darwin/19.4.0

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files

0.1.0

2 release files

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