DecAn is a tool for Analyze and Deconstruct chars in text for its position.
Project description
DecAn
Tool to Analyze and Deconstruct chars in a text
[Under-Development]
Installation
pip install DecAn-karjakak
Usage
For analyzing text file or sentences
decan -a path\text.txt
For search chars or words in text file or sentences
decan -a "The Best is yet to come, yeayyy!!!" -s "Best" e y
# result:
"Best": {1: ((4, 8),)}
"Best" is 1 out of total 7 words!
'e': {5: (2, 5, 13, 22, 26)}
'e' is 5 out of total 34 chars!
'y': {5: (12, 25, 28, 29, 30)}
'y' is 5 out of total 34 chars!
For Deconstruct text file or sentences to .json file or .pickle file
# The text file, save as json/pickle filename, and save to a directory path.
decan -d path\text.txt text.json path\dir
For Constructing the deconstructed text that save in .json file or .pickle file
decan -c path\text.pickle
Note
- Still development process.
- Add write deconstruct to pickle, which much smaller and faster.
- Changes on analyze [-a]:
- Count real chars, without the space and other printable.
- Show the chars that used once and chars that used most.
- Details on chars type.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
DecAn-karjakak-0.0.9.tar.gz
(4.8 kB
view details)
Built Distribution
File details
Details for the file DecAn-karjakak-0.0.9.tar.gz
.
File metadata
- Download URL: DecAn-karjakak-0.0.9.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 38e2dfd81c6e6aa9e57eafaee2c5ca346be9f186ceaaf12973d3076b0ee1feb2 |
|
MD5 | a98970276c79a2602505bea4e427bf86 |
|
BLAKE2b-256 | c2e665fbb4cde28e85f268879b5198e89b93cdc86bbb109554e14f9e1711a2a9 |
File details
Details for the file DecAn_karjakak-0.0.9-py3-none-any.whl
.
File metadata
- Download URL: DecAn_karjakak-0.0.9-py3-none-any.whl
- Upload date:
- Size: 5.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 90d9a3e96f94fc48c87e18541c9cfdc32cf34387244fcd434eedf3a7a353f7b5 |
|
MD5 | a775ed8c561224d1c59c2a9fff2feb8b |
|
BLAKE2b-256 | 924819ae3a28361e19cc79c3a60f3ff9efc9d27dc1c3057c6f409bdbe93fe4aa |