Skip to content

Commit

Permalink
Package changes
Browse files Browse the repository at this point in the history
  • Loading branch information
thc202 committed May 5, 2017
1 parent 587e7d2 commit be825cb
Show file tree
Hide file tree
Showing 28 changed files with 16 additions and 54 deletions.
41 changes: 0 additions & 41 deletions example.py

This file was deleted.

17 changes: 10 additions & 7 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@


try:
from setuptools import setup
from setuptools import setup, find_packages
except ImportError:
raise SystemExit(1)

Expand All @@ -23,17 +23,20 @@
'requests_mock'
)
setup(
name="python-owasp-zap",
version="2.5",
description="OWASP ZAP API library",
long_description="OWASP Zed Attack Proxy 2.5 API python library",
name="python-owasp-zap-v2.4",
version="0.0.10",
description="OWASP ZAP 2.6 API client",
long_description="OWASP Zed Attack Proxy 2.6 API python client (the 2.4 package name has been kept to make it easier to upgrade)",
author="ZAP development team",
author_email='',
url="https://www.owasp.org/index.php/OWASP_Zed_Attack_Proxy_Project",
download_url="https://github.com/zaproxy/zap-api-python/releases/tag/2.5",
download_url="https://github.com/zaproxy/zap-api-python/releases/tag/0.0.10",
platforms=['any'],
license="ASL2.0",
packages=['zap'],
package_dir={
'': 'src',
},
packages=find_packages('src'),
classifiers=[
'License :: OSI Approved :: Apache Software License',
'Development Status :: 5 - Production/Stable',
Expand Down
6 changes: 3 additions & 3 deletions src/examples/basic-spider-scan.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@

import time
from pprint import pprint
from zap import ZAP
from zapv2 import ZAPv2

target = 'http://127.0.0.1'
apikey = 'changeme' # Change to match the API key set in ZAP, or use None if the API key is disabled
#
# By default ZAP API client will connect to port 8080
zap = ZAP(apikey=apikey)
zap = ZAPv2(apikey=apikey)
# Use the line below if ZAP is not listening on port 8080, for example, if listening on port 8090
# zap = ZAP(apikey=apikey, proxies={'http': 'http://127.0.0.1:8090', 'https': 'http://127.0.0.1:8090'})
# zap = ZAPv2(apikey=apikey, proxies={'http': 'http://127.0.0.1:8090', 'https': 'http://127.0.0.1:8090'})

# Proxy a request to the target so that ZAP has something to deal with
print('Accessing target {}'.format(target))
Expand Down
2 changes: 1 addition & 1 deletion zap/__init__.py → src/zapv2/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
from .users import users


class ZAP(object):
class ZAPv2(object):
"""
Client API implementation for integrating with ZAP v2.
"""
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions tests/unit/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@

import requests_mock

from zap import ZAP
from zapv2 import ZAPv2


@pytest.yield_fixture
def zap():
"""
All tests will be able to share the instance of client with the same settings."""
yield ZAP(apikey='testapikey')
yield ZAPv2(apikey='testapikey')


@pytest.yield_fixture(autouse=True)
Expand Down

0 comments on commit be825cb

Please sign in to comment.