Skip to main content

Compositions

A package to introduce composable structures to python

Installation

pip install Compositions

Github Repository

Usage

from compositions.compositions import Compose

# Declare a composable function
@Compose
def f(x):
  return x

# Declare a composable function
@Compose
def g(x):
  return x**2 + x**3

print(g(3))
print(f(4))

# f(g(x))
print( (g*f)(3) )

Metadata

Release files for Compositions 1.0.2.1

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

Source distribution (sdist)

Source distribution for Compositions 1.0.2.1
File Size Uploaded
Compositions-1.0.2.1.tar.gz 1.7 kB Details

Built distribution (wheel)

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

Total release size: 4.9 kB

Release files / Compositions-1.0.2.1.tar.gz

Download URL Compositions-1.0.2.1.tar.gz
Size 1.7 kB
Tags Source
SHA-256 checksum
How to use checksums
288df6823c278f5ae21be6b489d7eb0b027632531eb92ad2f00cd74d54972231
BLAKE2b-256 checksum
How to use checksums
7347c8f55250af1b91542531ca7a0c8fb9c76bde3400340bb20db5ded06d8048
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/45.0.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3

Release files / Compositions-1.0.2.1-py3-none-any.whl

Download URL Compositions-1.0.2.1-py3-none-any.whl
Size 3.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
456f100e81ba07ce764e66187958bcf41acd7786cdd25574c1b0a8293c392a3f
BLAKE2b-256 checksum
How to use checksums
dd92e3276426d3793ff934ce9bae61b8ee609d47626ac31aa8daac8b7c26314f
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/45.0.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3

Release history Release notifications | RSS feed

This release

1.0.2.1 This release

2 release files

1.0.2

1 release file

1.0.1.1

1 release file

1.0.1

3 release files

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