**Important:** If you are currently using ISO filters (`Country`, `Currency` and `Locale`), please wait to upgrade until the 1.2.1 release!
* Introduced extensions framework (more info below).
* Removed ISO filters.
* These will be made available as an extra in the 1.2.1 release.
* If you do not need ISO filters, you may remove the following dependencies from your virtualenv:
* iso3166
* language_tags
* py-moneyed
* Standardized test instructions across pip, travis and tox.
* Little bit of code cleanup.
Extensions Framework
Filters v1.2.0 introduces a new "extensions" framework that allows you to add your own filters to the (nearly) top-level namespace*.
Extension filters are available from `filters.ext`. For example:
import filters as f
f.ext.Country().apply('pe')
\* (we opted to create a separate namespace because IDEs were going insane when we tried injecting symbols directly into the `filters` module scope)
To take advantage of this feature, add `filters.extensions` entry points to your package's `setup.py` file:
setup(
...
entry_points = {
'filters.extensions': [
Load all filters from a single module.
'iso = filters_iso',
Load a single class.
'country = filters_iso:Country',
],
},
)
You can assign any name you want to the entry point; what's important is that the value reference a valid module or class.
Note: extension filters are loaded at runtime when importing the `filters` package.
Binary Distribution Checksums
* filters-1.2.0-py2-none-any.whl
* sha256: 25cb7510286cba1afff06de2c8de7b1befd8cfb4869fface613ee0604d79867c
* md5: 86b9eb131f8246d9ad4fd385a7209b6a
* filters-1.2.0-py3-none-any.whl
* sha256: 7a6c884d2abbce651845b5467a6f1be5fc7b3192ce48c1bd357aec621f338095
* md5: e510da417eca8fd33711b2ac60b6f4bf
* filters-1.2.0.tar.gz
* sha256: 0f7ab724f079586189f2eb010610402993ca4c2020953be4dd2d53dbbf236261
* md5: 7213184326174fedeb3e3ec7cef05eae
-----BEGIN PGP SIGNATURE-----
iQIcBAEBCAAGBQJZFjE4AAoJEC2oW+MnuUmsapkP/jkoLr8kU2Wkb/zf6RvcNp8I
fxPNfK95SRfV+iunYZ0OCUTfRNLVxxIxHhr9I5TO2kTsm0w4PAEd9G9GzRWvkkpP
MdG1wHk/fiKs4i607mq7mK8V55TGIgCTW47YUyyZWyWvJKT2ZPmxXIqLYiHynRot
ZFG+jJCajt5V302lENLYeHWwUCv8KAQV1e6hmSZ6e5ap9QZTrl/GSAOeiyxn4rLu
MiWG/ip6ST/N7erjOwE2R7Xfps/fsHAvf//EV+3OlwdGvwjt6SFfJeaY2WXwkCaV
ninvHL96ci2zyRvMgnw6uEAxIEXTzNYP40axfr+SENulDETa4+Rni5oa/1IIxPGd
qbBDJPrw0OnyR9DdcITZ/e9zrCqa5R3+75DOpcWnNG2aeVpS+y9bdT/GD5xZsAIk
Kumw0Np7sXcJW/5cinCxPoMFmxsHVmT2aeEguTc5sL7DaJ2DsOqdhsrbPUTGWmoK
kiEP0W8UNI0DsBIaoONL2wLyh986xmNArw8UGHx83TABgNH/jLALcjha5IDnybGH
/CSklNdI91ZGRLkKdchDXfI256suNRTsS0BJyATIhVdG43SFSJimMVBtTz//BBUz
tNo7T1lIPPraA2lC742txymNOupLCo6iiozPSkStrMfg57hjkWw7/DsnJ1B+kEzA
xvCRyQ6TEi5cQD6FtJMs
=9aAc
-----END PGP SIGNATURE-----