Skip to content

Commit 6d3e319

Browse files
committed
added check version instructions + extended CHANGELOG.md
1 parent 7901698 commit 6d3e319

File tree

3 files changed

+30
-8
lines changed

3 files changed

+30
-8
lines changed

CHANGELOG.md

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,20 @@
22

33
## v1.0.0 (March 2020)
44

5-
### Deprecations
5+
### Project reboot:
6+
7+
I realized that this project, which I started back in 2015 and I was thinking no one care about it, it's actually now
8+
being used by several projects on GitHub (despite it has only few stars).
9+
So I'm rebooting it with a brand new version with tons of new api and improvements.
10+
11+
Besides the code, the project configuration is now mature and professional:
12+
- Automatic builds and testing against multiple python versions with Travis CI
13+
- Automatic code coverage reporting on codecov.io
14+
- Automatic documentation generated on readthedocs.io
15+
- Better descriptions and provided examples
16+
17+
18+
### Deprecations:
619

720
We are in 2020 and finally old versions of Python have been
821
[officially deprecated](https://www.python.org/doc/sunset-python-2/).
@@ -37,15 +50,15 @@ in your code (inspired by Scala)
3750
- `random_string()`: generates string of given size with random alpha-numeric chars
3851
- `secure_random_hex()`: generates hexadecimal string of the given bytes count using secure random generator
3952

40-
### Fixes
53+
### Fixes:
4154

4255
- `is_ip()` now checks both ip v4 (and validates 0-255 range) and ip v6
4356
(the previous implementation was really shallow, my apologies :P)
4457
- `is_json()` now considers as valid json array objects (eg. `is_json('[1, 2, 3]')` returns true now)
4558
- `prettify()` does not screw up urls or emails anymore (from now on it won't consider those as text to be formatted)
4659
- Solved deprecation warnings over invalid escape sequences in Python >= 3.7
4760

48-
### Changes
61+
### Changes:
4962

5063
- Old module `string_utils.py` has been replaced by a package with submodules (`validation.py`, `manipulation.py`,
5164
`generation.py` and `errors.py`), anyway all the functions are still
@@ -54,7 +67,7 @@ with a module for each test case
5467
- `is_snake_case()` now considers as "snake case" strings with mixed upper and lower case characters, strings with
5568
leading or trailing underscores and string containing multiple underscores in sequence
5669

57-
### Improvements
70+
### Improvements:
5871

5972
- Added Python type hints to all functions arguments and return types
6073
(this is now feasible since the minimum supported Python version is the 3.5)
@@ -69,6 +82,7 @@ signature has changed (now it has two optional boolean arguments: `ignore_spaces
6982
- `slugify()` is now able to translate more non-ascii chars during the string conversion
7083
(it now makes use of the new extracted method `asciify()`)
7184
- `is_uuid()` has now a second parameter `allow_hex` that if true, considers as valid UUID hex value
85+
- `uuid()` has now an optional boolean parameter `as_hex` which allows to return UUID string as hex representation
7286

7387
---
7488

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@
77
[![Python 3.8](https://img.shields.io/badge/python-3.8-blue.svg)](https://www.python.org/downloads/release/python-380/)
88

99
# Python String Utils
10-
##### Latest version: [1.0.0](https://github.com/daveoncode/python-string-utils/blob/master/CHANGELOG.md)
10+
##### Latest version: [1.0.0](https://github.com/daveoncode/python-string-utils/blob/master/CHANGELOG.md) (March 2020)
1111

1212
A handy library to validate, manipulate and generate strings, which is:
1313

1414
- Simple and "pythonic"
1515
- Fully documented and with examples! (html version on [readthedocs.io](https://python-string-utils.readthedocs.io/en/develop))
1616
- 100% code coverage! (see it with your own eyes on [codecov.io](https://codecov.io/gh/daveoncode/python-string-utils/branch/develop))
17-
- Tested (automatically on each push thanks to Travis CI) against all officially supported Python versions: 3.5, 3.6, 3.7, 3.8.
17+
- Tested (automatically on each push thanks to Travis CI) against all officially supported Python versions
1818
- Fast (mostly based on compiled regex)
1919
- Free from external dependencies
2020
- PEP8 complaint
@@ -46,8 +46,8 @@ can be simplified as:
4646

4747
### Api overview
4848

49-
*Bear in mind: this is just an overview,
50-
for the full API documentation go here:* http://python-string-utils.readthedocs.org/en/latest/
49+
***Bear in mind**: this is just an overview,
50+
for the full API documentation see:* [readthedocs.io](https://python-string-utils.readthedocs.io/en/develop)
5151

5252
#### String validation functions:
5353

docs/index.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,14 @@ Installing
1818
>>> pip install python-string-utils
1919

2020

21+
Checking installed version
22+
--------------------------
23+
24+
>>> import string_utils
25+
>>> string_utils.__version__
26+
>>> '1.0.0' # (if '1.0.0' is the installed version)
27+
28+
2129
Library structure
2230
-----------------
2331

0 commit comments

Comments
 (0)