Skip to content

Commit 5d7468a

Browse files
committed
added is_full_string and is_isogram
1 parent 0f890cf commit 5d7468a

15 files changed

+184
-74
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,22 @@
11
# Python String Utils Changelog
22

3+
## v0.5.0
4+
5+
### Added:
6+
7+
- is_full_string
8+
- is_isogram
9+
310
## v0.4.2
411

512
### Fixed:
13+
614
- is_url
715

816
## v0.4.1
917

1018
### Changed:
19+
1120
- is_palindrome and is_pangram now return False if the given object is not a string instead of raising an exception
1221

1322
## v0.4.0

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ A small utility library to check and manipulate strings.
1616
### String checking functions:
1717

1818
- is_string
19+
- is_full_string
1920
- is_ip
2021
- is_url
2122
- is_email
@@ -26,6 +27,7 @@ A small utility library to check and manipulate strings.
2627
- is_uuid
2728
- is_pangram
2829
- is_palindrome
30+
- is_isogram
2931
- words_count
3032
- contains_html
3133

268 Bytes
Binary file not shown.

docs/_build/doctrees/index.doctree

6.69 KB
Binary file not shown.

docs/_build/html/.buildinfo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# Sphinx build info version 1
22
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
3-
config: 25835ebf44df34ab4dfcc31a3df693bc
3+
config: a207946dbf2ca7a53a400cd856a07176
44
tags: 645f666f9bcd5a90fca523b33c5a78b7

docs/_build/html/genindex.html

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
<meta name="viewport" content="width=device-width, initial-scale=1.0">
1111

12-
<title>Index &mdash; Python String Utils 0.4.2 documentation</title>
12+
<title>Index &mdash; Python String Utils 0.5.0 documentation</title>
1313

1414

1515

@@ -34,7 +34,7 @@
3434
<link rel="index" title="Index"
3535
href="#"/>
3636
<link rel="search" title="Search" href="search.html"/>
37-
<link rel="top" title="Python String Utils 0.4.2 documentation" href="index.html"/>
37+
<link rel="top" title="Python String Utils 0.5.0 documentation" href="index.html"/>
3838

3939

4040
<script src="_static/js/modernizr.min.js"></script>
@@ -62,7 +62,7 @@
6262

6363

6464
<div class="version">
65-
0.4.2
65+
0.5.0
6666
</div>
6767

6868

@@ -170,16 +170,24 @@ <h2 id="I">I</h2>
170170
</dt>
171171

172172

173+
<dt><a href="index.html#string_utils.is_full_string">is_full_string() (in module string_utils)</a>
174+
</dt>
175+
176+
173177
<dt><a href="index.html#string_utils.is_ip">is_ip() (in module string_utils)</a>
174178
</dt>
175179

176180

177-
<dt><a href="index.html#string_utils.is_json">is_json() (in module string_utils)</a>
181+
<dt><a href="index.html#string_utils.is_isogram">is_isogram() (in module string_utils)</a>
178182
</dt>
179183

180184
</dl></td>
181185
<td style="width: 33%" valign="top"><dl>
182186

187+
<dt><a href="index.html#string_utils.is_json">is_json() (in module string_utils)</a>
188+
</dt>
189+
190+
183191
<dt><a href="index.html#string_utils.is_palindrome">is_palindrome() (in module string_utils)</a>
184192
</dt>
185193

@@ -303,7 +311,7 @@ <h2 id="W">W</h2>
303311
<script type="text/javascript">
304312
var DOCUMENTATION_OPTIONS = {
305313
URL_ROOT:'./',
306-
VERSION:'0.4.2',
314+
VERSION:'0.5.0',
307315
COLLAPSE_INDEX:false,
308316
FILE_SUFFIX:'.html',
309317
HAS_SOURCE: true

docs/_build/html/index.html

Lines changed: 37 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
<meta name="viewport" content="width=device-width, initial-scale=1.0">
1010

11-
<title>Welcome to Python String Utils’s documentation! &mdash; Python String Utils 0.4.2 documentation</title>
11+
<title>Welcome to Python String Utils’s documentation! &mdash; Python String Utils 0.5.0 documentation</title>
1212

1313

1414

@@ -33,7 +33,7 @@
3333
<link rel="index" title="Index"
3434
href="genindex.html"/>
3535
<link rel="search" title="Search" href="search.html"/>
36-
<link rel="top" title="Python String Utils 0.4.2 documentation" href="#"/>
36+
<link rel="top" title="Python String Utils 0.5.0 documentation" href="#"/>
3737

3838

3939
<script src="_static/js/modernizr.min.js"></script>
@@ -61,7 +61,7 @@
6161

6262

6363
<div class="version">
64-
0.4.2
64+
0.5.0
6565
</div>
6666

6767

@@ -153,6 +153,22 @@ <h1>Welcome to Python String Utils&#8217;s documentation!<a class="headerlink" h
153153
</table>
154154
</dd></dl>
155155

156+
<dl class="function">
157+
<dt id="string_utils.is_full_string">
158+
<code class="descclassname">string_utils.</code><code class="descname">is_full_string</code><span class="sig-paren">(</span><em>string</em><span class="sig-paren">)</span><a class="headerlink" href="#string_utils.is_full_string" title="Permalink to this definition"></a></dt>
159+
<dd><p>Check if a string is not empty (it must contains at least one non space character).</p>
160+
<table class="docutils field-list" frame="void" rules="none">
161+
<col class="field-name" />
162+
<col class="field-body" />
163+
<tbody valign="top">
164+
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>string</strong> (<em>str</em>) &#8211; String to check.</td>
165+
</tr>
166+
<tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">True if not empty, false otherwise.</td>
167+
</tr>
168+
</tbody>
169+
</table>
170+
</dd></dl>
171+
156172
<dl class="function">
157173
<dt id="string_utils.is_url">
158174
<code class="descclassname">string_utils.</code><code class="descname">is_url</code><span class="sig-paren">(</span><em>string</em>, <em>allowed_schemes=None</em><span class="sig-paren">)</span><a class="headerlink" href="#string_utils.is_url" title="Permalink to this definition"></a></dt>
@@ -380,14 +396,30 @@ <h1>Welcome to Python String Utils&#8217;s documentation!<a class="headerlink" h
380396
<col class="field-name" />
381397
<col class="field-body" />
382398
<tbody valign="top">
383-
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>string</strong> &#8211; String to check.</td>
399+
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>string</strong> (<em>str</em>) &#8211; String to check.</td>
384400
</tr>
385401
<tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">True if the string is a pangram, False otherwise.</td>
386402
</tr>
387403
</tbody>
388404
</table>
389405
</dd></dl>
390406

407+
<dl class="function">
408+
<dt id="string_utils.is_isogram">
409+
<code class="descclassname">string_utils.</code><code class="descname">is_isogram</code><span class="sig-paren">(</span><em>string</em><span class="sig-paren">)</span><a class="headerlink" href="#string_utils.is_isogram" title="Permalink to this definition"></a></dt>
410+
<dd><p>Checks if the string is an isogram (<a class="reference external" href="https://en.wikipedia.org/wiki/Isogram">https://en.wikipedia.org/wiki/Isogram</a>).</p>
411+
<table class="docutils field-list" frame="void" rules="none">
412+
<col class="field-name" />
413+
<col class="field-body" />
414+
<tbody valign="top">
415+
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>string</strong> (<em>str</em>) &#8211; String to check.</td>
416+
</tr>
417+
<tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">True if isogram, false otherwise.</td>
418+
</tr>
419+
</tbody>
420+
</table>
421+
</dd></dl>
422+
391423
<dl class="function">
392424
<dt id="string_utils.words_count">
393425
<code class="descclassname">string_utils.</code><code class="descname">words_count</code><span class="sig-paren">(</span><em>string</em><span class="sig-paren">)</span><a class="headerlink" href="#string_utils.words_count" title="Permalink to this definition"></a></dt>
@@ -628,7 +660,7 @@ <h1>Indices and tables<a class="headerlink" href="#indices-and-tables" title="Pe
628660
<script type="text/javascript">
629661
var DOCUMENTATION_OPTIONS = {
630662
URL_ROOT:'./',
631-
VERSION:'0.4.2',
663+
VERSION:'0.5.0',
632664
COLLAPSE_INDEX:false,
633665
FILE_SUFFIX:'.html',
634666
HAS_SOURCE: true

docs/_build/html/objects.inv

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Sphinx inventory version 2
22
# Project: Python String Utils
3-
# Version: 0.4.2
3+
# Version: 0.5.0
44
# The remainder of this file is compressed using zlib.
5-
xڝ��N! ���M<�ƽ�x0�dc<:3(_�E����;FcRo�����d�$3�".t� ��>v39{�l���;��w�r`�$�^�B=b�~ ��o�IO�x���� �K`&�@*`�<�2�M��_��XDT�(Rp������A�����m�crb�:g�yИ�Ȍ I��uw��8Z�U�:Nk�s貉�Yb�=$]�(dOS��"�����r�~/��U'�벻�t�h�x;�� � �%Щu�c��EA����,���O�5.��ю}h_\����0'���O�Tt��M݊
5+
xڝ��N�0 ��}� �8ub׽�I��1
6+
������$�Ɔ@Hޭ����ql#%�'��Xqٹ��� ������f��D��|3(V
7+
AR����#��2����!���I����Ay��hCL��S��㘭���Md�1LI9�E�"��E��.��魽t�_S/���OL@dƅ�$x�ĺ;�y-��.q�u�8t����e�#$]f6dO�S��"��Ϊ�r�~+N�U'�gw��0Tх��P����/4�@��Mǚ�=��dei�,n�������h�>����#�4�?�fk�C�����0�

docs/_build/html/py-modindex.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
<meta name="viewport" content="width=device-width, initial-scale=1.0">
1010

11-
<title>Python Module Index &mdash; Python String Utils 0.4.2 documentation</title>
11+
<title>Python Module Index &mdash; Python String Utils 0.5.0 documentation</title>
1212

1313

1414

@@ -33,7 +33,7 @@
3333
<link rel="index" title="Index"
3434
href="genindex.html"/>
3535
<link rel="search" title="Search" href="search.html"/>
36-
<link rel="top" title="Python String Utils 0.4.2 documentation" href="index.html"/>
36+
<link rel="top" title="Python String Utils 0.5.0 documentation" href="index.html"/>
3737

3838

3939
<script type="text/javascript">
@@ -68,7 +68,7 @@
6868

6969

7070
<div class="version">
71-
0.4.2
71+
0.5.0
7272
</div>
7373

7474

@@ -181,7 +181,7 @@ <h1>Python Module Index</h1>
181181
<script type="text/javascript">
182182
var DOCUMENTATION_OPTIONS = {
183183
URL_ROOT:'./',
184-
VERSION:'0.4.2',
184+
VERSION:'0.5.0',
185185
COLLAPSE_INDEX:false,
186186
FILE_SUFFIX:'.html',
187187
HAS_SOURCE: true

docs/_build/html/search.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
<meta name="viewport" content="width=device-width, initial-scale=1.0">
1010

11-
<title>Search &mdash; Python String Utils 0.4.2 documentation</title>
11+
<title>Search &mdash; Python String Utils 0.5.0 documentation</title>
1212

1313

1414

@@ -33,7 +33,7 @@
3333
<link rel="index" title="Index"
3434
href="genindex.html"/>
3535
<link rel="search" title="Search" href="#"/>
36-
<link rel="top" title="Python String Utils 0.4.2 documentation" href="index.html"/>
36+
<link rel="top" title="Python String Utils 0.5.0 documentation" href="index.html"/>
3737

3838

3939
<script src="_static/js/modernizr.min.js"></script>
@@ -61,7 +61,7 @@
6161

6262

6363
<div class="version">
64-
0.4.2
64+
0.5.0
6565
</div>
6666

6767

@@ -167,7 +167,7 @@
167167
<script type="text/javascript">
168168
var DOCUMENTATION_OPTIONS = {
169169
URL_ROOT:'./',
170-
VERSION:'0.4.2',
170+
VERSION:'0.5.0',
171171
COLLAPSE_INDEX:false,
172172
FILE_SUFFIX:'.html',
173173
HAS_SOURCE: true

docs/_build/html/searchindex.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@
5858
# built documents.
5959
#
6060
# The short X.Y version.
61-
version = '0.4.2'
61+
version = '0.5.0'
6262
# The full version, including alpha/beta/rc tags.
63-
release = '0.4.2'
63+
release = '0.5.0'
6464

6565
# The language for content autogenerated by Sphinx. Refer to documentation
6666
# for a list of supported languages.

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
setup(
77
name='python-string-utils',
8-
version='0.4.2',
8+
version='0.5.0',
99
description='Utility functions for strings checking and manipulation.',
1010
long_description=long_description,
1111
author='Davide Zanotti',

0 commit comments

Comments
 (0)