Inflect

Latest version: v7.2.1

Safety actively analyzes 630094 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 6 of 9

3.0.2

======

* 88: Distribution no longer includes root ``tests`` package.

3.0.1

======

* Project now builds on jaraco/skeleton for shared package
management.

3.0.0

======

* 75: Drop support for Python 3.4.

2.1.0

======

* 29: Relicensed under the more permissive MIT License.

2.0.1

======

* 57: Fix pluralization of taco.

2.0.0

======

* 37: fix inconsistencies with the inflect method

We now build and parse AST to extract function arguments instead of relying
on regular expressions. This also adds support for keyword arguments and
built-in constants when calling functions in the string.
Unfortunately, this is not backwards compatible in some cases:
* Strings should now be wrapped in single or double quotes
p.inflect("singular_noun(to them)") should now be p.inflect("singular_noun('to them')")
* Empty second argument to a function will now be parsed as None instead of ''.
p.inflect("num(%d,) eggs" % 2) now prints "2 eggs" instead of " eggs"
Since None, True and False are now supported, they can be passed explicitly:
p.inflect("num(%d, False) eggs" % 2) will print " eggs"
p.inflect("num(%d, True) eggs" % 2) will print "2 eggs"

Page 6 of 9

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.