Skip to main content

Strings that ignore part of themselves.

https://github.com/Exahilosys/ghostr/raw/master/images/showcase.png
from ghostr import ANSISGRGhoStr as gstr

test = '\x1b[38;5;6mHello\x1b[38;5;10m there! Th\x1b[38;5;9mis is \x1b[7ma {0} demon\x1b[90mstration of the libr\x1b[0mary\'s \x1b[38;5;12m\x1b[4mcapabilities\x1b[0m!'
print('1)', test)
test = gstr(test).format('\x1b[3m\x1b[38;5;11mcool')
print('2)', test)
test = gstr(test)[:21] + gstr(test)[45:]
print('3)', test)

Installing

pip3 install survey

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ghostr-0.1.2.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

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

ghostr-0.1.2-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file ghostr-0.1.2.tar.gz.

File metadata

  • Download URL: ghostr-0.1.2.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6

File hashes

Hashes for ghostr-0.1.2.tar.gz
Algorithm Hash digest
SHA256 b8d1f09d22b80bea108f6e5d695846b3b50be8ae0d6cd14caafc0a47e0b315c9
MD5 c978e3f8b2b092d3ce11e906a9756cba
BLAKE2b-256 a1ca1425b20966182a4f4f254bf7526b2f11190be9ddbf1621b69d45609c018a

See more details on using hashes here.

File details

Details for the file ghostr-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: ghostr-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 7.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6

File hashes

Hashes for ghostr-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1d226143f1ba430a44c7e8d33cf31264e9055138d96488dcdcfb3f5d2a800c4c
MD5 27016f82206b09c9f194568d26445fa4
BLAKE2b-256 c2ded1f75c9b950126584c655d1c630f97e3822c9f891abb2d892f1fbaddb37b

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 files

0.1.1

2 files

0.1.0

2 files

0.0.4

2 files

0.0.3

2 files

0.0.2

2 files

0.0.1

2 files

0.0.0

2 files

Supported by

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