Skip to main content

Algebraic Data Type

To install the package pip install algebraic-data-type

ADT

[To be written]

Pattern Matching

from adt import Multimethod

 with Multimethod() as fib: 
        fib[1] = 1 
        fib[2] = 1 
        fib[int] =  lambda x: fib(x-1) + fib(x-2)

example

Test

To run the tests, clone the repo and use pytest

>>> git clone https://github.com/catethos/adt.git

>>> cd adt/

>>> pytest

Metadata

Release files for algebraic-data-type 0.0.4

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

Source distribution (sdist)

Source distribution for algebraic-data-type 0.0.4
File Size Uploaded Provenance
algebraic-data-type-0.0.4.tar.gz 2.2 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for algebraic-data-type 0.0.4
File Interpreter ABI Platform
algebraic_data_type-0.0.4-py3-none-any.whl Python 3 none any Details

Total release size: 6.2 kB

Release files / algebraic-data-type-0.0.4.tar.gz

Download URL algebraic-data-type-0.0.4.tar.gz
Size 2.2 kB
Tags Source
SHA-256 checksum
How to use checksums
266481499c46894c5fc941c76361a98399f7607efc15126cecdc628877310372
BLAKE2b-256 checksum
How to use checksums
529d6ad2b25c8df30027b484c0f8f51f833a1c37384ee3e5718a536612b84882
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.3

Release files / algebraic_data_type-0.0.4-py3-none-any.whl

Download URL algebraic_data_type-0.0.4-py3-none-any.whl
Size 4.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
52fdca08f5288f1c46cdede840d9e5fb554296bde5539805e4e7aede2e25fb41
BLAKE2b-256 checksum
How to use checksums
453b373f628343fcb2f5314f8be2d21ab0158b27b3ecf4d653b9b3b1ce692731
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.3

Security for algebraic-data-type 0.0.4

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