-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
39 lines (30 loc) · 1.1 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
from setuptools import setup
setup(name='pypework',
version='0.7',
description='Functional pipeline library for Python',
url='http://github.com/andybrice/pypework',
author='Andy Brice',
author_email='[email protected]',
license='MIT',
packages=['pypework'],
zip_safe=False,
long_description=
"""
A library to add a neat, readable, functional pipeline syntax to Python.
It allows you to rewrite messy nested function calls such as this:
.. code:: python
title_sanitized =
replace(replace(replace(lowercase("Lorem Ipsum Dolor 2018/02/18"), " ", "_"), "/", "-"), "@", "at")
title_sanitized # -> "lorem_ipsum_dolor_2018-02-18"
In a far more readable format like this:
.. code:: python
title_sanitized = (
"Lorem Ipsum Dolor 2018/02/18"
>> f.lowercase
>> f.replace("/", "-")
>> f.replace(" ", "_")
>> f.replace("@", "at")
)
title_sanitized # -> "lorem_ipsum_dolor_2018-02-18"
"""
)