silex
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
Metadata
Release files for silex 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| silex-0.2.0.tar.gz | 3.9 kB | Without provenance | Details for silex-0.2.0.tar.gz |
Release files / silex-0.2.0.tar.gz
| Download URL | silex-0.2.0.tar.gz |
|---|---|
| Size | 3.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
46367970c86641af4f8a19064a39196e060dd73ec1a3c4d2eadeb86d5d1cddec
|
|
BLAKE2b-256 checksum How to use checksums |
4372c7bf23ef4f178e8d05066ecca7b3dc3b7313b6e86964cc9c743d77e652e2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for silex 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.