Skip to content

Commit 2b1b975

Browse files
committed
Bug Fixes
1 parent 07141f6 commit 2b1b975

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

PyTextAnalyzer/__init__.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,8 @@ class Analyzer:
2121
mixed_string = characters_lower + characters_upper + str(number_string) + special_characters
2222

2323

24-
analyzer_count = 0
2524
def __init__(self):
26-
Analyzer.analyzer_count = self.analyzer_count + 1
25+
Analyzer.version = '1.1.0'
2726

2827

2928

@@ -63,7 +62,7 @@ def analyze(self, text, includeSpaces=True):
6362
average_word_length = self.averageLength(text)
6463

6564
#dictionary with main data
66-
analyzed_dict = {'characters':no_of_characters, 'words':no_of_words, 'spaces':no_of_spaces, 'numbers':no_of_numbers, 'specials':no_of_specials, 'capital_letters':no_of_capitals, 'lower_letters':no_of_lowers, 'frequency_of_words':no_of_frequent_words, 'paragraphs':no_of_paras, 'average_word_length':average_word_length}
65+
analyzed_dict = {'characters':no_of_characters, 'words':no_of_words, 'spaces':no_of_spaces, 'numbers':no_of_numbers, 'specials':no_of_specials, 'capital_letters':no_of_capitals, 'lower_letters':no_of_lowers, 'paragraphs':no_of_paras, 'average_word_length':average_word_length, 'frequency _of_words':no_of_frequent_words,}
6766

6867

6968
return analyzed_dict
@@ -194,5 +193,3 @@ def averageLength(self, text : str):
194193
return math.trunc(list_of_chars / list_of_words)
195194

196195

197-
198-

setup.cfg

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[metadata]
2+
description-file = readme.md

setup.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,13 @@
1111

1212

1313
setup(name="PyTextAnalyzer",
14-
version="1.0",
14+
version="1.1.0",
1515
description="Python Module with functions helping with analyzing strings.",
1616
author="Fallen Cat",
1717
author_email="fallencat.user@gmail.com",
1818
packages=find_packages(),
1919
license='MIT',
2020
classifiers=classifiers,
21-
keywords='String Analyzer')
21+
keywords='String Analyzer',
22+
url='https://github.com/TheFallen-Cat/PyTextAnalyzer',
23+
download_url='https://github.com/TheFallen-Cat/PyTextAnalyzer/archive/refs/tags/1.1.0.tar.gz')

0 commit comments

Comments
 (0)