Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ python:
- "2.7"
# command to install dependencies
install:
- pip install -r dev-requirements.txt
- pip install -r requirements.txt
# command to run tests
script:
Expand Down
6 changes: 4 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Change Log

## [v2.0.1](https://github.com/PerimeterX/perimeterx-python-wsgi) (2018-12-05)
- Fixed copying resources to package on pypi.

## [v2.0.0](https://github.com/PerimeterX/perimeterx-python-wsgi/compare/v1.0.17...HEAD) (2018-12-03)
- Added Major Enforcer functionalities: Mobile SDK, FirstParty, CaptchaV2, Block handling
- Added unit tests
Expand All @@ -14,5 +17,4 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
- Added UUID to page requested
- New block/captcha templates
- Delete captcha cookie after evaluation
- Sending original cookie value when decryption fails

- Sending original cookie value when decryption fails
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

[PerimeterX](http://www.perimeterx.com) Python Middleware
=============================================================
> Latest stable version: [v2.0.0](https://pypi.org/project/perimeterx-python-wsgi/)
> Latest stable version: [v2.0.1](https://pypi.org/project/perimeterx-python-wsgi/)
Table of Contents
-----------------
- [Installation](#installation)
Expand All @@ -27,11 +27,15 @@ Table of Contents
## <a name="installation"></a> Installation
PerimeterX Python middleware is installed via PIP:
`$ pip install perimeterx-python-wsgi`

## <a name="upgrading"></a> Upgrading
Contact [PerimeterX Support](mailto: support@perimeterx.com) for details.
## <a name="required_config"></a> Required Configurations
To use PerimeterX middleware on a specific route follow this example:

```python
from perimeterx.middleware import PerimeterX

px_config = {
'app_id': 'APP_ID',
'cookie_key': 'COOKIE_KEY',
Expand Down Expand Up @@ -174,4 +178,4 @@ config = {
additional_activity_handler: additional_activity_handler_function,
...
}
```
```
3 changes: 3 additions & 0 deletions dev-requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
mock==2.0.0
requests_mock==1.5.2
pylint==1.9.3
5 changes: 1 addition & 4 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
pycrypto==2.6.1
pystache==0.5.4
mock==2.0.0
requests==2.20.1
requests_mock==1.5.2
setuptools==40.6.2
pycrypto==2.6.1
pylint
13 changes: 6 additions & 7 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
#!/usr/bin/env python

from setuptools import setup
from setuptools import setup, find_packages

version = 'v2.0.0'
install_requires = open('./requirements.txt', 'r').readlines()
version = 'v2.0.1'
setup(name='perimeterx-python-wsgi',
version=version,
license='MIT',
Expand All @@ -11,10 +12,8 @@
author_email='ben@perimeterx.com',
url='https://github.com/PerimeterX/perimeterx-python-wsgi',
download_url='https://github.com/PerimeterX/perimeterx-python-wsgi/tarball/' + version,
package_dir={'perimeterx': 'perimeterx'},
install_requires=[
"pystache==0.5.4", 'requests==2.20.1', 'setuptools==40.6.2', 'requests_mock==1.5.2',
'pycrypto==2.6.1', 'mock==2.0.0', 'pylint'],
packages=find_packages(exclude=['dev', 'test*']),
package_data={'perimeterx': ['templates/*']},
install_requires=install_requires,
classifiers=['Intended Audience :: Developers',
'Programming Language :: Python :: 2.7'])