Skip to main content

it can take STR to INT,FLOAT,BOOL,LIST

Project description

First I want to say

I am from China.

Please email me if this article is not well written or the package has some bug.

My Mail Number : 2119244804@qq.com

Download

pip install str-do-stn

Package SDS(str-do-sth)

This is a package. You can use

Github-flavored Markdown

str2e

It can take your STR to other thing, for example, you can take a str to a list.

First your should from sds import str2e

The everyr(content)

Use everyr(content) to take STR to other thing.

For example:

from sds import str2e
a_v = str2e.everyr('["thing","thing"]')
print(type(a_v), a_v)

>>> <class 'list'> ['thing', 'thing']

img_1.png

And:

from sds import str2e
a_v = str2e.everyr('"thing"')
print(type(a_v), a_v)

>>> <class 'str'> thing

Other method

strr(content) intr(content) floatr(content) boolr(content) listr(content)

For example:

from sds import str2e
a_v = str2e.dictr('["thing","thing"]')
print(type(a_v), a_v)

>>> <class 'list'> ['thing_', 'thing']

Can't get thing

If the everyr(codent) or others can't get thing.

They will return None

For example:

from sds import str2e
a_v = str2e.str('["thing"]')
print(type(a_v), a_v)

>>> <class 'NoneType'> None

Or:

from sds import str2e
a_v = str2e.everyr(ddddd)
print(type(a_v), a_v)
>>> RTError: Can't Return [Return None]
>>> <class 'NoneType'> None

img.png

str-do-sth

The version is v1.0.1

Use sds.__version__ can get version.

Other

delStr

Update log(Future plans)

v1.0.0 Can take your STR to other thing

v1.1.0dictr and tupler

v1.2.0 byter

v2.0.0 Use new way

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

str-do-sth-1.0.0.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

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

str_do_sth-1.0.0-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

Details for the file str-do-sth-1.0.0.tar.gz.

File metadata

  • Download URL: str-do-sth-1.0.0.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.13

File hashes

Hashes for str-do-sth-1.0.0.tar.gz
Algorithm Hash digest
SHA256 917f83aecc07c6c712caa129b26c3fc554eb7fc3d0dba2ea0e0f779e45714f11
MD5 a60f9f5efa6d25ce85ce217b683d722e
BLAKE2b-256 c02dfb41940226fe6487e376eb83bd86cbe14576b74ce7150ce83d53b012908c

See more details on using hashes here.

File details

Details for the file str_do_sth-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: str_do_sth-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 6.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.13

File hashes

Hashes for str_do_sth-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f30151e1395b4b174d8f3657560b6b9baf6faf4dc7966c1a56ac7a355bca990a
MD5 cce7aa501e9f2a01c0f4768645dc7e2d
BLAKE2b-256 bc1bf644bfa154d9db4bf0dd896e8a052e3e364cc0c12a0ad8db2c2767b2dd71

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