Skip to content

Commit

Permalink
added is_full_string and is_isogram
Browse files Browse the repository at this point in the history
  • Loading branch information
daveoncode committed Nov 4, 2016
1 parent 0f890cf commit 5d7468a
Show file tree
Hide file tree
Showing 15 changed files with 184 additions and 74 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,22 @@
# Python String Utils Changelog

## v0.5.0

### Added:

- is_full_string
- is_isogram

## v0.4.2

### Fixed:

- is_url

## v0.4.1

### Changed:

- is_palindrome and is_pangram now return False if the given object is not a string instead of raising an exception

## v0.4.0
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ A small utility library to check and manipulate strings.
### String checking functions:

- is_string
- is_full_string
- is_ip
- is_url
- is_email
Expand All @@ -26,6 +27,7 @@ A small utility library to check and manipulate strings.
- is_uuid
- is_pangram
- is_palindrome
- is_isogram
- words_count
- contains_html

Expand Down
Binary file modified docs/_build/doctrees/environment.pickle
Binary file not shown.
Binary file modified docs/_build/doctrees/index.doctree
Binary file not shown.
2 changes: 1 addition & 1 deletion docs/_build/html/.buildinfo
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: 25835ebf44df34ab4dfcc31a3df693bc
config: a207946dbf2ca7a53a400cd856a07176
tags: 645f666f9bcd5a90fca523b33c5a78b7
18 changes: 13 additions & 5 deletions docs/_build/html/genindex.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

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

<title>Index &mdash; Python String Utils 0.4.2 documentation</title>
<title>Index &mdash; Python String Utils 0.5.0 documentation</title>



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


<script src="_static/js/modernizr.min.js"></script>
Expand Down Expand Up @@ -62,7 +62,7 @@


<div class="version">
0.4.2
0.5.0
</div>


Expand Down Expand Up @@ -170,16 +170,24 @@ <h2 id="I">I</h2>
</dt>


<dt><a href="index.html#string_utils.is_full_string">is_full_string() (in module string_utils)</a>
</dt>


<dt><a href="index.html#string_utils.is_ip">is_ip() (in module string_utils)</a>
</dt>


<dt><a href="index.html#string_utils.is_json">is_json() (in module string_utils)</a>
<dt><a href="index.html#string_utils.is_isogram">is_isogram() (in module string_utils)</a>
</dt>

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

<dt><a href="index.html#string_utils.is_json">is_json() (in module string_utils)</a>
</dt>


<dt><a href="index.html#string_utils.is_palindrome">is_palindrome() (in module string_utils)</a>
</dt>

Expand Down Expand Up @@ -303,7 +311,7 @@ <h2 id="W">W</h2>
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT:'./',
VERSION:'0.4.2',
VERSION:'0.5.0',
COLLAPSE_INDEX:false,
FILE_SUFFIX:'.html',
HAS_SOURCE: true
Expand Down
42 changes: 37 additions & 5 deletions docs/_build/html/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

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

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



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


<script src="_static/js/modernizr.min.js"></script>
Expand Down Expand Up @@ -61,7 +61,7 @@


<div class="version">
0.4.2
0.5.0
</div>


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

<dl class="function">
<dt id="string_utils.is_full_string">
<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>
<dd><p>Check if a string is not empty (it must contains at least one non space character).</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<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>
</tr>
<tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">True if not empty, false otherwise.</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="function">
<dt id="string_utils.is_url">
<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>
Expand Down Expand Up @@ -380,14 +396,30 @@ <h1>Welcome to Python String Utils&#8217;s documentation!<a class="headerlink" h
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>string</strong> &#8211; String to check.</td>
<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>
</tr>
<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>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="function">
<dt id="string_utils.is_isogram">
<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>
<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>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<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>
</tr>
<tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">True if isogram, false otherwise.</td>
</tr>
</tbody>
</table>
</dd></dl>

<dl class="function">
<dt id="string_utils.words_count">
<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>
Expand Down Expand Up @@ -628,7 +660,7 @@ <h1>Indices and tables<a class="headerlink" href="#indices-and-tables" title="Pe
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT:'./',
VERSION:'0.4.2',
VERSION:'0.5.0',
COLLAPSE_INDEX:false,
FILE_SUFFIX:'.html',
HAS_SOURCE: true
Expand Down
6 changes: 4 additions & 2 deletions docs/_build/html/objects.inv
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Sphinx inventory version 2
# Project: Python String Utils
# Version: 0.4.2
# Version: 0.5.0
# The remainder of this file is compressed using zlib.
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݊
xڝ��N�0 ��}� �8ub׽�I��1
������$�Ɔ@Hޭ����ql#%�'��Xqٹ��� ������f��D��|3(V
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�
8 changes: 4 additions & 4 deletions docs/_build/html/py-modindex.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

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

<title>Python Module Index &mdash; Python String Utils 0.4.2 documentation</title>
<title>Python Module Index &mdash; Python String Utils 0.5.0 documentation</title>



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


<script type="text/javascript">
Expand Down Expand Up @@ -68,7 +68,7 @@


<div class="version">
0.4.2
0.5.0
</div>


Expand Down Expand Up @@ -181,7 +181,7 @@ <h1>Python Module Index</h1>
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT:'./',
VERSION:'0.4.2',
VERSION:'0.5.0',
COLLAPSE_INDEX:false,
FILE_SUFFIX:'.html',
HAS_SOURCE: true
Expand Down
8 changes: 4 additions & 4 deletions docs/_build/html/search.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

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

<title>Search &mdash; Python String Utils 0.4.2 documentation</title>
<title>Search &mdash; Python String Utils 0.5.0 documentation</title>



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


<script src="_static/js/modernizr.min.js"></script>
Expand Down Expand Up @@ -61,7 +61,7 @@


<div class="version">
0.4.2
0.5.0
</div>


Expand Down Expand Up @@ -167,7 +167,7 @@
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT:'./',
VERSION:'0.4.2',
VERSION:'0.5.0',
COLLAPSE_INDEX:false,
FILE_SUFFIX:'.html',
HAS_SOURCE: true
Expand Down
2 changes: 1 addition & 1 deletion docs/_build/html/searchindex.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@
# built documents.
#
# The short X.Y version.
version = '0.4.2'
version = '0.5.0'
# The full version, including alpha/beta/rc tags.
release = '0.4.2'
release = '0.5.0'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setup(
name='python-string-utils',
version='0.4.2',
version='0.5.0',
description='Utility functions for strings checking and manipulation.',
long_description=long_description,
author='Davide Zanotti',
Expand Down

0 comments on commit 5d7468a

Please sign in to comment.