Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

No frills function composition

Project Description
Important If you prefer to write Python code in a more functional style you may find the toolz package to be more useful, it includes a compose function as well as several functions conducive to writing functional code in Python.

No magic operators or special objects just a function with unit tests. Here is a wonderfully contrived example to whet your appetite:

>>> import json
>>> from compose import compose
>>> from operator import itemgetter
>>> compose((3).__mul__, next, iter, itemgetter('b'), json.loads)('{"a": 1, "b": [2, 3]}')


See for development.


$ pip install compose-func
Release History

Release History

This version
History Node


History Node


Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
compose_func-1.0.1-py2-none-any.whl (2.5 kB) Copy SHA256 Checksum SHA256 py2 Wheel Feb 4, 2016
compose-func-1.0.1.tar.gz (1.7 kB) Copy SHA256 Checksum SHA256 Source Feb 4, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting