Skip to main content

Contains composition of useful structures

Project description

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) )

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Compositions-1.0.2.1.tar.gz (1.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

Compositions-1.0.2.1-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file Compositions-1.0.2.1.tar.gz.

File metadata

  • Download URL: Compositions-1.0.2.1.tar.gz
  • Upload date:
  • Size: 1.7 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for Compositions-1.0.2.1.tar.gz
Algorithm Hash digest
SHA256 288df6823c278f5ae21be6b489d7eb0b027632531eb92ad2f00cd74d54972231
MD5 96af87295e2d6745f6f33fe77fd204e6
BLAKE2b-256 7347c8f55250af1b91542531ca7a0c8fb9c76bde3400340bb20db5ded06d8048

See more details on using hashes here.

File details

Details for the file Compositions-1.0.2.1-py3-none-any.whl.

File metadata

  • Download URL: Compositions-1.0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for Compositions-1.0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 456f100e81ba07ce764e66187958bcf41acd7786cdd25574c1b0a8293c392a3f
MD5 7d99a787cc0c40ec60fac3acf05c51ec
BLAKE2b-256 dd92e3276426d3793ff934ce9bae61b8ee609d47626ac31aa8daac8b7c26314f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page