Skip to main content

My package to convert str-list and list-str.

Project description

ListTransformer

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.8.tar.gz (2.0 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.8-py3-none-any.whl (2.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: listtransformer-0.1.8.tar.gz
  • Upload date:
  • Size: 2.0 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.8.tar.gz
Algorithm Hash digest
SHA256 9a83789bb078b1b3c9c2c640156d64301b765cc99c239cb1a8ef853a074a7ff6
MD5 1fc75d7567c859d77e5c997faa3b6c5f
BLAKE2b-256 2a854bf7fd7b6795dfd9c342886895e2942355cac2d761b374fda4cdfeb83c32

See more details on using hashes here.

File details

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

File metadata

  • Download URL: listtransformer-0.1.8-py3-none-any.whl
  • Upload date:
  • Size: 2.5 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.8-py3-none-any.whl
Algorithm Hash digest
SHA256 bddcac427f818138ac1c6c7d38e32d1fb2253186c13bb744e40eca39a2d38bf5
MD5 d886bd01ad2434da7caaa0ce223d1573
BLAKE2b-256 abe20fac6af1e6ff42ab20e132b845645648dde5620bf7cb24a46449795a8a79

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