Skip to main content

This package contains many helper functions to manipulate strings.

Read the fabulous doc here

Quickstart

To install:

pip install pystrext

Usage:

>>> import pystrext as strext
>>> h,m,s = strext.extracts('elapse time : 5h 7m 36s','(\d+)h (\d+)m (\d+)s',['0']*3)
>>> h,m,s
('5', '7', '36')
>>> print strext.no_one_many(0,"No item","One item","%(n)s items")
No item
>>> print strext.no_one_many(1,"No item","One item","%(n)s items")
One item
>>> print strext.no_one_many(36,"No item","One item","%(n)s items")
36 items

… more functions available : read the doc

News

0.1.7 (2015-01-02)

  • add CHANGES.rst file

  • add a Quickstat in documentation

0.1.6 (2015-01-01)

  • add docstrings

  • add sphinx doc

0.1.1 (2014-12-30)

  • First commit

  • No doc

Download files

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

Source Distribution

pystrext-0.1.7.tar.gz (13.3 kB view details)

Uploaded Source

File details

Details for the file pystrext-0.1.7.tar.gz.

File metadata

  • Download URL: pystrext-0.1.7.tar.gz
  • Upload date:
  • Size: 13.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pystrext-0.1.7.tar.gz
Algorithm Hash digest
SHA256 742ef570a53029d2555ae86df25c86ec89fb2de0483a59576b67d6c40c9c6f00
MD5 517183c99512ffbef58188ad837164eb
BLAKE2b-256 ab5bee019d0fcfd0a5b43a4b40e70540b40c0090193f658446342ada4f45dc6a

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.7 This release

1 file

0.1.6

1 file

0.1.5

1 file

0.1.4

1 file

0.1.2

1 file

0.1.1

1 file

Supported by

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