Strings that ignore part of themselves.
Project description
Strings that ignore part of themselves.
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
Links
Check out the documentation for more info.
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
ghostr-0.1.2.tar.gz
(6.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b8d1f09d22b80bea108f6e5d695846b3b50be8ae0d6cd14caafc0a47e0b315c9
|
|
| MD5 |
c978e3f8b2b092d3ce11e906a9756cba
|
|
| BLAKE2b-256 |
a1ca1425b20966182a4f4f254bf7526b2f11190be9ddbf1621b69d45609c018a
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1d226143f1ba430a44c7e8d33cf31264e9055138d96488dcdcfb3f5d2a800c4c
|
|
| MD5 |
27016f82206b09c9f194568d26445fa4
|
|
| BLAKE2b-256 |
c2ded1f75c9b950126584c655d1c630f97e3822c9f891abb2d892f1fbaddb37b
|