No project description provided
Project description
Lister
Installation
pip install ListTransformer
Examples
import ListTransformer
liste = ListTransformer.lister("123 123 123")
print(liste)
print(ListTransformer.str_list(liste))
lister
- (required) str_list:
strthe text to convert to list - (optional) typ:
lister.Typthe method for example comma or space, default is that it is selected automatically- Attributes
ListTransformer.Typ.auto, ListTransformer.Typ.comma, ListTransformer.Typ.spacethe input format
- Attributes
Example
import ListTransformer
print(ListTransformer.lister("123 123 123"))
print(ListTransformer.lister("123, 123, 123"))
First and secend Output
['123', '123', '123'] as list
str_list
- (required) list:
listThe list to be converted into a string - (optional) split:
lister.SplitsThe way in which the string should separate the entries- Attributes
ListTransformer.Splits.space, ListTransformer.Splits.commathe output format
- Attributes
Example
import ListTransformer
liste = ["test1", "test2", "test3"]
print(ListTransformer.str_list(liste))
print(ListTransformer.str_list(liste, ListTransformer.Splits.space))
Outputs
test1, test2, test3 as string
test1 test2 test3 as string
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
listtransformer-0.1.2.tar.gz
(1.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file listtransformer-0.1.2.tar.gz.
File metadata
- Download URL: listtransformer-0.1.2.tar.gz
- Upload date:
- Size: 1.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.12.1 Windows/11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3ce560577a3a3229a10064537ce1921a26b2db432b2a1af295dd92d9caee9d6a
|
|
| MD5 |
4c8c34547e17a4b9cf8e2410cbca37c0
|
|
| BLAKE2b-256 |
b4ea1c3666a002d42c203a7f6f056218d0a1d2cddfa4573c7e7772b1cd4fc520
|
File details
Details for the file listtransformer-0.1.2-py3-none-any.whl.
File metadata
- Download URL: listtransformer-0.1.2-py3-none-any.whl
- Upload date:
- Size: 2.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.12.1 Windows/11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
73bf31a4483daa4eb43462a0c40ac651aac8dc5214bc383138da675572cec1e7
|
|
| MD5 |
78ce75c754909a259ec151e531ae5bfa
|
|
| BLAKE2b-256 |
879e1861fceedec3479a8622a75ab308ed789853ce88c22ef7584cdbc2e351c9
|