Skip to main content

A library to add a neat, readable, functional pipeline syntax to Python.

It allows you to rewrite messy nested function calls such as this:

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:

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"

Download files

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

Source Distribution

pypework-0.8.tar.gz (2.6 kB view details)

Uploaded Source

File details

Details for the file pypework-0.8.tar.gz.

File metadata

  • Download URL: pypework-0.8.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pypework-0.8.tar.gz
Algorithm Hash digest
SHA256 5d9413597d040af0a73529d684628104cfb99520591630cbd785cab718099c41
MD5 b2f5ebaabd9ae12bdd35f05734e01cfa
BLAKE2b-256 9cf6bb61ca2e2f73f3966b1bdda3e19640876489a5875ee9adbac3410e6d99ba

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.8 This release

1 file

0.7

1 file

0.6.1

1 file

0.6

1 file

0.5

1 file

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