-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
29 changed files
with
237 additions
and
512 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,37 @@ | ||
#!/usr/bin/env python3 | ||
# coding: utf-8 | ||
|
||
from enum import Enum | ||
import sys | ||
import logging | ||
|
||
from zero_to_one_hundred.exceptions.errors import UnsupportedOptionError | ||
from zero_to_one_hundred.runner import run_core | ||
|
||
from zero_to_one_hundred.validator.validator import Validator | ||
|
||
if __name__ == "__main__": | ||
logger = logging.getLogger(__name__) | ||
logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s') | ||
|
||
err_msg = f'zt or sb available, passed {str(sys.argv)}' | ||
try: | ||
arg1= sys.argv[1] | ||
match arg1: | ||
case 'zt': | ||
from zero_to_one_hundred.factories.ztoh_factory_provider import ZTOHFactoryProvider | ||
from zero_to_one_hundred.repository.ztoh_persist_fs import ZTOHPersistFS as persist_fs | ||
from zero_to_one_hundred.repository.ztoh_process_fs import ZTOHProcessFS as process_fs | ||
from zero_to_one_hundred.factories.ztoh_factory_provider import ZTOHFactoryProvider | ||
run_core(sys.argv, ZTOHFactoryProvider(persist_fs, process_fs)) | ||
case 'sb': | ||
from zero_to_one_hundred.factories.sb_factory_provider import SBFactoryProvider | ||
from zero_to_one_hundred.repository.sb_persist_fs import SBPersistFS as persist_fs | ||
from zero_to_one_hundred.repository.sb_process_fs import SBProcessFS as process_fs | ||
from zero_to_one_hundred.factories.sb_factory_provider import SBFactoryProvider | ||
run_core(sys.argv, SBFactoryProvider(persist_fs, process_fs)) | ||
case _: | ||
raise ValueError(err_msg) | ||
except Exception as e: | ||
logging.info(err_msg) | ||
raise ValueError | ||
except (ValueError,IndexError, TypeError,UnsupportedOptionError): | ||
from zero_to_one_hundred.repository.a_persist_fs import APersistFS as persist_fs | ||
from zero_to_one_hundred.factories.a_factory_provider import AFactoryProvider | ||
run_core(sys.argv, AFactoryProvider(persist_fs)) | ||
except Exception as e: | ||
Validator.print_e(e) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
#!/usr/bin/env python3 | ||
|
||
from pathlib import Path | ||
from setuptools import setup | ||
from setuptools import setup, find_packages | ||
|
||
directory = Path(__file__).resolve().parent | ||
with open(directory / "README.md", encoding="utf-8") as f: | ||
|
@@ -12,10 +12,11 @@ | |
|
||
setup( | ||
name="0to100", | ||
version="0.4.3", | ||
version="0.5.3", | ||
author="obar1", | ||
packages=find_packages(), | ||
author_email="[email protected]", | ||
description="Simple python tool to learn everything and keep all local.", | ||
description="Simple python tool to learn everything and keep it local.", | ||
long_description=long_description, | ||
long_description_content_type="text/markdown", | ||
url="https://github.com/obar1/0to100", | ||
|
Oops, something went wrong.