Skip to main content

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: str the text to convert to list
  • (optional) typ: lister.Typ the method for example comma or space, default is that it is selected automatically
    • Attributes ListTransformer.Typ.auto, ListTransformer.Typ.comma, ListTransformer.Typ.space the input format

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: list The list to be converted into a string
  • (optional) split: lister.Splits The way in which the string should separate the entries
    • Attributes ListTransformer.Splits.space, ListTransformer.Splits.comma the output format

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


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.1.tar.gz (1.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

listtransformer-0.1.1-py3-none-any.whl (2.3 kB view details)

Uploaded Python 3

File details

Details for the file listtransformer-0.1.1.tar.gz.

File metadata

  • Download URL: listtransformer-0.1.1.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

Hashes for listtransformer-0.1.1.tar.gz
Algorithm Hash digest
SHA256 952a504b47a6b424a950dc97a097bac48c83c006835766018c0bbe4a6a8f771d
MD5 90b6d4e6b3a9c27be56b3f190ca04762
BLAKE2b-256 927a4b5c3a8fd3fc0b3acf56055c87843127fe88070bb44cb0c8f1c10b26b5a9

See more details on using hashes here.

File details

Details for the file listtransformer-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: listtransformer-0.1.1-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

Hashes for listtransformer-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9edf8862e764e0865b398bfbc3396112d14085330b45730d511041282ad278f0
MD5 2076becf48d9ed18d3176ea7ad4b11bb
BLAKE2b-256 b0cec0749f4b8c540e121e984a652e2e5615a1b4b735f84019237916afb05701

See more details on using hashes here.

Supported by

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