httpagentparser 1.9.0
“Extracts OS Browser etc information from http user agent string”
Root Python setup.py packaging filePackaging setup API import or call
SHA-25623805523b61b04b9412cd98cd1fe0415401045fd5447d3b62a02ae60d22814ed
MaleculeH₂(Cm₃Db₂)Md(Bk)
Evidence
⋯7 lines
274 bot = True
275
276class TelegramBot(Browser):
277 look_for = "TelegramBot"
278 bot = True
⋯11 lines
1import httpagentparser as hap
2
3class JakartaHTTPClinet(hap.Browser):
4 name = 'Jakarta Commons-HttpClient'
5 look_f …
9:23… uests'
10 look_for = 'python-requests'
11
12# Registering new UAs
13
14hap.detectorshub.register(JakartaHTTPClinet())
15hap.detectorshub.register(PythonRequests())
16
17# Tests
⋯6 lines
24 print(hap.simple_detect(s))
25
26 s = 'python-requests/1.2.3 CPython/2.7.4 Linux/3.8.0-29-generic'
27
28 print(hap.detect(s))
29 print(hap.simple_detect(s))
⋯5 lines
33 args = self.tox_args
34 if args:
35 args = shlex.split(self.tox_args)
36 errno = tox.cmdline(args=args)
37 sys.exit(errno)
38
39
40for line in open('httpagentparser/__init__.py'):
41 if line.startswith('__version__'):
42 version = line.split('=')[-1].strip()[1:-1]
43 break
44
45setup(
46 name='httpagentparser',
47 version=version,
48 url="http://shon.github.com/httpagentparser",
49 classifiers=[
50 'Programming Language :: Python :: 3'
51 ],
52 include_package_data=True,
53 description='Ex …
53:62… p user agent string',
54 long_description=open('README.rst').read(),
55 packages=find_packages(),
56 author='Shekhar Tiwatne',
57 author_email='[email protected]',
58 license="http://www.opensource.org/licenses/mit-license.php",
59 test_suite="tests",
60 tests_require=['tox'],
61 cmdclass={'test': Tox},
62 )
63
No evidence locations were recorded for this file. Raw result