A python package for anagrams
Project description
ANAGRAM READ ME
There are several methods that can be used in the holistic_anagram.py file. These include:
- init_app
- enter_words_print
- enter_words_json
Install
Note: python-anagram requires python3
pip install holistic-anagram
Website using python-anagram
Steps on how to use python-anagram package
- Create an instance of your anagram. Example: anagram = Anagram()
- Initialize your instance. anagram.init_app(). This allows the app to check if a word is real or not.
- You can then enter words using
enter_words_print
method orenter_words_json
. The former is as an interactive script using the input function. The later requires the sentence argument, and generates json data to be used in a web application e.g. in FastAPI, Flask, Django, etc.
Example of use
- Type in
bats tabs tekken attack on titan no rats tsar star tops tops spot stop psto psto pots
- This will remove the non-English words, remove duplicates and leave you with:
bats tabs attack on titan no rats tsar star tops spot stop
- It then checks if any of the words are anagrams of each other.
- Output is either a print statement or returns json formatted data.
Dependencies
- No dependencies
Python versions
- 3.7.x
- 3.8.x
- 3.9.x
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
holistic-anagram-1.0.11.tar.gz
(528.4 kB
view hashes)
Built Distribution
Close
Hashes for holistic_anagram-1.0.11-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f39af9fd6ecd64f9af00e369cd4f031646f0485d20ff9067f1ba0cb6c38e9d4f |
|
MD5 | 4bc8dc676d0ad76155a09529c6d0cb1e |
|
BLAKE2b-256 | d9a608d8c28978696575eb04d502c03b48f510db3ec16a75de763abcd0f22aa5 |