mirror of
https://github.com/empayre/OTX-Python-SDK.git
synced 2024-11-06 09:55:20 +00:00
Set current version to 1.5.3
This commit is contained in:
parent
8e0fc57e7d
commit
8ddb986490
2
OTXv2.py
2
OTXv2.py
@ -94,7 +94,7 @@ class OTXv2(object):
|
|||||||
self.request_session = None
|
self.request_session = None
|
||||||
self.headers = {
|
self.headers = {
|
||||||
'X-OTX-API-KEY': self.key,
|
'X-OTX-API-KEY': self.key,
|
||||||
'User-Agent': user_agent or 'OTX Python {}/1.5.2'.format(project),
|
'User-Agent': user_agent or 'OTX Python {}/1.5.3'.format(project),
|
||||||
'Content-Type': 'application/json'
|
'Content-Type': 'application/json'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
4
setup.py
4
setup.py
@ -5,12 +5,12 @@ from setuptools import setup
|
|||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='OTXv2',
|
name='OTXv2',
|
||||||
version='1.5.2',
|
version='1.5.3',
|
||||||
description='AlienVault OTX API',
|
description='AlienVault OTX API',
|
||||||
author='AlienVault Team',
|
author='AlienVault Team',
|
||||||
author_email='otx@alienvault.com',
|
author_email='otx@alienvault.com',
|
||||||
url='https://github.com/AlienVault-Labs/OTX-Python-SDK',
|
url='https://github.com/AlienVault-Labs/OTX-Python-SDK',
|
||||||
download_url='https://github.com/AlienVault-Labs/OTX-Python-SDK/tarball/1.5.2',
|
download_url='https://github.com/AlienVault-Labs/OTX-Python-SDK/tarball/1.5.3',
|
||||||
py_modules=['OTXv2', 'IndicatorTypes','patch_pulse'],
|
py_modules=['OTXv2', 'IndicatorTypes','patch_pulse'],
|
||||||
install_requires=['requests', 'python-dateutil', 'pytz']
|
install_requires=['requests', 'python-dateutil', 'pytz']
|
||||||
)
|
)
|
||||||
|
@ -543,7 +543,7 @@ class TestRequests(TestOTXv2):
|
|||||||
|
|
||||||
def test_user_agent(self):
|
def test_user_agent(self):
|
||||||
o = OTXv2(self.api_key, server=ALIEN_DEV_SERVER, project='foo')
|
o = OTXv2(self.api_key, server=ALIEN_DEV_SERVER, project='foo')
|
||||||
self.assertEqual(o.headers['User-Agent'], 'OTX Python foo/1.5.2')
|
self.assertEqual(o.headers['User-Agent'], 'OTX Python foo/1.5.3')
|
||||||
|
|
||||||
o = OTXv2(self.api_key, server=ALIEN_DEV_SERVER, user_agent='foo')
|
o = OTXv2(self.api_key, server=ALIEN_DEV_SERVER, user_agent='foo')
|
||||||
self.assertEqual(o.headers['User-Agent'], 'foo')
|
self.assertEqual(o.headers['User-Agent'], 'foo')
|
||||||
|
Loading…
Reference in New Issue
Block a user