This commit is contained in:
Dionysus 2025-02-11 02:38:52 -05:00
parent 1a613b005a
commit 81c692d1fa
Signed by: acidvegas
GPG Key ID: EF4B922DB85DC9DE
3 changed files with 21 additions and 4 deletions

View File

@ -6,4 +6,4 @@ from .scanner import HTTPZScanner
from .colors import Colors from .colors import Colors
__version__ = '1.0.4' __version__ = '1.0.5'

View File

@ -1 +1,18 @@
#!/usr/bin/env python3
# HTTPZ Web Scanner - Developed by acidvegas in Python (https://github.com/acidvegas/httpz)
# httpz/__main__.py
import asyncio
import sys
from .cli import main
def cli():
"""Entry point for the command line interface"""
try:
asyncio.run(main())
except KeyboardInterrupt:
sys.exit(1)
# This allows both 'python -m httpz' and the 'httpz' command to work
if __name__ == '__main__':
cli()

View File

@ -9,7 +9,7 @@ with open('README.md', 'r', encoding='utf-8') as f:
setup( setup(
name='httpz-scanner', name='httpz-scanner',
version='1.0.4', version='1.0.5',
author='acidvegas', author='acidvegas',
author_email='acid.vegas@acid.vegas', author_email='acid.vegas@acid.vegas',
description='Hyper-fast HTTP Scraping Tool', description='Hyper-fast HTTP Scraping Tool',
@ -41,7 +41,7 @@ setup(
], ],
entry_points={ entry_points={
'console_scripts': [ 'console_scripts': [
'httpz=httpz.__main__:main', # This creates the 'httpz' command 'httpz=httpz.__main__:cli', # This creates the 'httpz' command
], ],
}, },
) )