silex 0.2.0

Creator: bigcodingguy24

Last updated:

0 purchases

silex 0.2.0 Image
silex 0.2.0 Images

Languages

Categories

Add to Cart

Description:

silex 0.2.0

A bunch of useful functions for string manipulation.

Install (automatic)
$ pip install silex


Install (manual)
$ git clone
$ cd silex
$ python setup.py install


Usage
In [1]: from silex import *

In [2]: print chop("whitespace", 5)
['white', 'space', '']

In [3]: print numberex('1.2euros')
1.2

In [4]: print surround('b', '<', '>')
<b>

In [5]: print strip_html('<p><i>hello</i></p>')
hello

In [6]: print unslugify('sex_appeal')
sex appeal

In [7]: print slugify(u'je suis\ épuisé')
je-suis-epuise

In [8]: print clean('hello\n word\n')
hello word

In [9]: print kebabcase('hello world')
hello-world

In [10]: print pascalcase('hello world')
HelloWorld

In [11]: print camelcase('hello world')
helloWorld

In [12]: print snakecase('hello world')
hello_world


License
MIT

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.