Skip to content

Commit c9deb79

Browse files
authored
Dev dynamic module enabling (#41)
* Removed pxhd injectuin * Small refactoring * Fixed mobile automation * Added module disabling programmatically * Fixed mobile * Added changelog * Fixed test * Added async custom params * Added async params to release notes * Updated README.MD * Removed pxhd feature * Removed pxhd feature * Refactored request handling, detached from the middleware class * Added pycryptodome * Fxied according to pr * Fixed Regex capture of custom params * Debug e2e server call time in ms * MS @#R#@r$#GFREGREG * Fixed server call print by seconds * Fixed * Fixed printing of e2e calls timestamps * Added changelog for future release * Changed version pre-release * Added dynamic module enabling
1 parent ce76b2a commit c9deb79

File tree

3 files changed

+18
-3
lines changed

3 files changed

+18
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Change Log
22

3-
## [v2.2.0](https://github.com/PerimeterX/perimeterx-python-wsgi) (2018-12-25)
3+
## [v2.2.1](https://github.com/PerimeterX/perimeterx-python-wsgi) (2018-01-03)
44
- Added async custom params
55
- Added dynamic module enabling/disabling
66
- Small performance boost

README.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
[PerimeterX](http://www.perimeterx.com) Python Middleware
66
=============================================================
7-
> Latest stable version: [v2.0.2](https://pypi.org/project/perimeterx-python-wsgi/)
7+
> Latest stable version: [v2.2.1](https://pypi.org/project/perimeterx-python-wsgi/)
88
Table of Contents
99
-----------------
1010
- [Installation](#installation)
@@ -24,6 +24,7 @@ Table of Contents
2424
* [First-Party Enabled](#first_party_enabled)
2525
* [Custom Request Handler](#custom_request_handler)
2626
* [Additional Activity Handler](#additional_activity_handler)
27+
* [Dynamic Module Disabling](#dynamic_module_disabling)
2728
## <a name="installation"></a> Installation
2829
PerimeterX Python middleware is installed via PIP:
2930
`$ pip install perimeterx-python-wsgi`
@@ -187,3 +188,17 @@ context.pxde
187188
context.pxde_verified
188189

189190
```
191+
192+
#### <a name="dynamic_module_disabling"></a>Dynamic Module Disabling
193+
These are methods that allow the developer to enable or disable the module programmatically
194+
```python
195+
from perimeterx.middleware import PerimeterX
196+
197+
app = get_wsgi_application()
198+
config = {...}
199+
perimeterX = PerimeterX(app, config)
200+
...
201+
perimeterX.disable_module()
202+
perimeterX.enable_module()
203+
```
204+

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from setuptools import setup, find_packages
44

5-
version = 'v2.2.0'
5+
version = 'v2.2.1'
66
setup(name='perimeterx-python-wsgi',
77
version=version,
88
license='MIT',

0 commit comments

Comments
 (0)