Skip to content

juhajokela/swiss-army-knife

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

swiss-army-knife

A set of utilities for Python (3).

Author

Juha Jokela ([email protected])

Runtime

Built for Python 3 runtime.

Installation

pip install git+https://github.com/juhajokela/swiss-army-knife

Usage

monad

from swiss_army_knife.monad import Maybe


def get_street_from_company(company):
    return (
        Maybe(company)
        .then(lambda company: company.get('address'))
        .then(lambda address: address.get('street'))
        .value
    )

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages