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

pip3 install xstr
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-0.0.2.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

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

xstr-0.0.2-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file xstr-0.0.2.tar.gz.

File metadata

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

File hashes

Hashes for xstr-0.0.2.tar.gz
Algorithm Hash digest
SHA256 11208ebb4e22f4698df58d2e83d8b27b08a4f2f156ead8e2f43b8c3fdaf08445
MD5 fe2345bfce12fc74c8ebef0926d347ab
BLAKE2b-256 e0855b19c9d3ddb7b33990f79c2107c6762aa22fb092895637c041f41d5f7d98

See more details on using hashes here.

File details

Details for the file xstr-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: xstr-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.6

File hashes

Hashes for xstr-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0ffae31c6c55a94aeb4d88c6ee31e67777a33d533cefe8bfdd56475b047694ca
MD5 21d14457f64190344d3fc1f3b37398aa
BLAKE2b-256 29005b065fceb14ef702ff97d38f9f7183da6ae4cb6ec96ac1c90fef2fede417

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