Skip to main content

package for converting strings to common ones, contains ustr UnderlineString dstr DotString hstr HyphenString

Project description

xstr

New python3 strings just dropped.

Installation

cd <project>
https://github.com/Donny-GUI/xstr.git
from xstr import ustr
from xtr import dstr
from xstr import hstr

or

import xstr

or

import hstr
# import dstr
# import ustr

HypenString -- hstr()

from xstr import hstr


x = hstr('hello new world and all who inhabit it.')
print(x)
# hello-new-world-and-all-who-inhabit-it.
print(x.original())
# hello new world and all who inhabit it.

output

hello-new-world-and-all-who-inhabit-it.
hello new world and all who inhabit it.

DotString -- dstr()

from xstr import dstr


x = dstr('hello new world and all who inhabit it.')
print(x)
# hello.new.world.and.all.who.inhabit.it.
print(x.original())
# hello new world and all who inhabit it.

output

hello.new.world.and.all.who.inhabit.it.
hello new world and all who inhabit it.

UnderlineString -- ustr()

from xstr import ustr


x = ustr('hello new world and all who inhabit it.')
print(x)
# hello_new_world_and_all_who_inhabit_it.
print(x.original())
# hello new world and all who inhabit it.

output

hello_new_world_and_all_who_inhabit_it.
hello new world and all who inhabit it.

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

xstr_donaldguiles-0.0.1.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

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

xstr_donaldguiles-0.0.1-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file xstr_donaldguiles-0.0.1.tar.gz.

File metadata

  • Download URL: xstr_donaldguiles-0.0.1.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.6

File hashes

Hashes for xstr_donaldguiles-0.0.1.tar.gz
Algorithm Hash digest
SHA256 9b3fcda1ac4979dcf11c00827d956eabf01e65b2e33dcf983166b2f9e8d41886
MD5 bb1e1730cc69a793a7fc43acd1cdeb21
BLAKE2b-256 861feb37a15e834dab51eccc21eb237430bf2cffbe6843fb457aba65831c213d

See more details on using hashes here.

File details

Details for the file xstr_donaldguiles-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for xstr_donaldguiles-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 21699fd3129778d874f8dab67d2c923c6c1ba47670b016a53f242b6bda468c46
MD5 625f7625cd9039bb01c099ee5e5e5beb
BLAKE2b-256 84d6078eff7ae1d95f8a3567a4df58b05ceb6b1ca919417a0f655c616c2f010d

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