steno-python
Usage
The most basic usage. Call the steno.compress function on your prompt. Get back a
shorter, functionally equilvalent version.
import steno
prompt = "You crossed the line. People trusted you and they died. You gotta go down."
print(steno.compress(prompt))
You crossed line. People trusted you, died. Go down.
********************************************************************************
Original text: 17 tokens
Compressed text: 13 tokens
Compression: 23.53%
Compression took 615.38 ms
Use the <literal> tag to specify content you do not want modified.
import steno
prompt = """
Yeah <literal>(You can't touch this)</literal>
Look, man <literal>(You can't touch this)</literal>
You better get hype, boy, because you know you can't <literal>(You can't touch this)</literal>
"""
print(steno.compress(prompt))
Yeah. (You can't touch this) (You can't touch this)
Look man. (You can't touch this) You better get hype, know you.
Metadata
Release files for steno-engine 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| steno_engine-0.1.2.tar.gz | 7.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| steno_engine-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 16.4 kB
Release files / steno_engine-0.1.2.tar.gz
| Download URL | steno_engine-0.1.2.tar.gz |
|---|---|
| Size | 7.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
911117713cd90d9d50d5f0be62f279efa14a89014711aee0eff312205d5d797b
|
|
BLAKE2b-256 checksum How to use checksums |
4640210ebe7fe1ca6e0f32d7581f705e14dfae8605fa3d7b17cf5e48769cc19f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.7
|
Release files / steno_engine-0.1.2-py3-none-any.whl
| Download URL | steno_engine-0.1.2-py3-none-any.whl |
|---|---|
| Size | 8.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
afd5c6364f86280bbd7299d83d24242e3b128a868afa49205df192ce57ba2a97
|
|
BLAKE2b-256 checksum How to use checksums |
246faff7f7af91b23ba393cdcce9867161ea7ece912a49ef8f8d9ecc100c70e7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.7
|