2
2
3
3
## v1.0.0 (March 2020)
4
4
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:
6
19
7
20
We are in 2020 and finally old versions of Python have been
8
21
[ officially deprecated] ( https://www.python.org/doc/sunset-python-2/ ) .
@@ -37,15 +50,15 @@ in your code (inspired by Scala)
37
50
- ` random_string() ` : generates string of given size with random alpha-numeric chars
38
51
- ` secure_random_hex() ` : generates hexadecimal string of the given bytes count using secure random generator
39
52
40
- ### Fixes
53
+ ### Fixes:
41
54
42
55
- ` is_ip() ` now checks both ip v4 (and validates 0-255 range) and ip v6
43
56
(the previous implementation was really shallow, my apologies : P )
44
57
- ` is_json() ` now considers as valid json array objects (eg. ` is_json('[1, 2, 3]') ` returns true now)
45
58
- ` prettify() ` does not screw up urls or emails anymore (from now on it won't consider those as text to be formatted)
46
59
- Solved deprecation warnings over invalid escape sequences in Python >= 3.7
47
60
48
- ### Changes
61
+ ### Changes:
49
62
50
63
- Old module ` string_utils.py ` has been replaced by a package with submodules (` validation.py ` , ` manipulation.py ` ,
51
64
` generation.py ` and ` errors.py ` ), anyway all the functions are still
@@ -54,7 +67,7 @@ with a module for each test case
54
67
- ` is_snake_case() ` now considers as "snake case" strings with mixed upper and lower case characters, strings with
55
68
leading or trailing underscores and string containing multiple underscores in sequence
56
69
57
- ### Improvements
70
+ ### Improvements:
58
71
59
72
- Added Python type hints to all functions arguments and return types
60
73
(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
69
82
- ` slugify() ` is now able to translate more non-ascii chars during the string conversion
70
83
(it now makes use of the new extracted method ` asciify() ` )
71
84
- ` 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
72
86
73
87
---
74
88
0 commit comments