syncronous entrance

This commit is contained in:
Dionysus 2025-03-11 11:37:34 -04:00
parent 1d76aaf552
commit d116ae2d8a
Signed by: acidvegas
GPG Key ID: EF4B922DB85DC9DE
4 changed files with 9 additions and 5 deletions

View File

@ -5,7 +5,7 @@
from .client import CZDS from .client import CZDS
__version__ = '1.2.0' __version__ = '1.2.1'
__author__ = 'acidvegas' __author__ = 'acidvegas'
__email__ = 'acid.vegas@acid.vegas' __email__ = 'acid.vegas@acid.vegas'
__github__ = 'https://github.com/acidvegas/czds' __github__ = 'https://github.com/acidvegas/czds'

View File

@ -73,6 +73,10 @@ async def main():
raise Exception(f'Failed to download zone files: {e}') raise Exception(f'Failed to download zone files: {e}')
def cli_entry():
'''Synchronous entry point for console script'''
return asyncio.run(main())
if __name__ == '__main__': if __name__ == '__main__':
asyncio.run(main()) asyncio.run(main())

View File

@ -1,6 +1,6 @@
Metadata-Version: 2.2 Metadata-Version: 2.2
Name: czds-api Name: czds-api
Version: 1.1.0 Version: 1.2.0
Summary: ICANN API for the Centralized Zones Data Service Summary: ICANN API for the Centralized Zones Data Service
Home-page: https://github.com/acidvegas/czds Home-page: https://github.com/acidvegas/czds
Author: acidvegas Author: acidvegas

View File

@ -11,7 +11,7 @@ with open('README.md', 'r', encoding='utf-8') as fh:
setup( setup(
name='czds-api', name='czds-api',
version='1.2.0', version='1.2.1',
author='acidvegas', author='acidvegas',
author_email='acid.vegas@acid.vegas', author_email='acid.vegas@acid.vegas',
description='ICANN API for the Centralized Zones Data Service', description='ICANN API for the Centralized Zones Data Service',
@ -43,7 +43,7 @@ setup(
python_requires='>=3.6', python_requires='>=3.6',
entry_points={ entry_points={
'console_scripts': [ 'console_scripts': [
'czds=czds.__main__:main', 'czds=czds.__main__:cli_entry',
], ],
}, },
install_requires=[ install_requires=[