machine-learning-model-local 0.0.2__tar.gz → 0.0.4__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (17) hide show
  1. machine_learning_model_local-0.0.4/PKG-INFO +15 -0
  2. {machine-learning-model-local-0.0.2 → machine_learning_model_local-0.0.4}/README.md +24 -12
  3. machine_learning_model_local-0.0.4/machine_learning_model_local/src/machine_learning_model.py +22 -0
  4. machine_learning_model_local-0.0.4/machine_learning_model_local.egg-info/PKG-INFO +15 -0
  5. machine_learning_model_local-0.0.4/machine_learning_model_local.egg-info/requires.txt +2 -0
  6. machine_learning_model_local-0.0.4/setup.py +28 -0
  7. machine-learning-model-local-0.0.2/PKG-INFO +0 -95
  8. machine-learning-model-local-0.0.2/machine_learning_model_local/src/machine_learning_model.py +0 -10
  9. machine-learning-model-local-0.0.2/machine_learning_model_local.egg-info/PKG-INFO +0 -95
  10. machine-learning-model-local-0.0.2/machine_learning_model_local.egg-info/requires.txt +0 -2
  11. machine-learning-model-local-0.0.2/setup.py +0 -39
  12. {machine-learning-model-local-0.0.2 → machine_learning_model_local-0.0.4}/machine_learning_model_local/src/__init__.py +0 -0
  13. {machine-learning-model-local-0.0.2 → machine_learning_model_local-0.0.4}/machine_learning_model_local.egg-info/SOURCES.txt +0 -0
  14. {machine-learning-model-local-0.0.2 → machine_learning_model_local-0.0.4}/machine_learning_model_local.egg-info/dependency_links.txt +0 -0
  15. {machine-learning-model-local-0.0.2 → machine_learning_model_local-0.0.4}/machine_learning_model_local.egg-info/top_level.txt +0 -0
  16. {machine-learning-model-local-0.0.2 → machine_learning_model_local-0.0.4}/pyproject.toml +0 -0
  17. {machine-learning-model-local-0.0.2 → machine_learning_model_local-0.0.4}/setup.cfg +0 -0
@@ -0,0 +1,15 @@
1
+ Metadata-Version: 2.1
2
+ Name: machine-learning-model-local
3
+ Version: 0.0.4
4
+ Summary: PyPI Package for Circles machine-learning-model-local Python
5
+ Home-page: https://github.com/circles-zone/machine-learning-model-local-python-package
6
+ Author: Circles
7
+ Author-email: info@circlez.ai
8
+ Classifier: Programming Language :: Python :: 3
9
+ Classifier: License :: Other/Proprietary License
10
+ Classifier: Operating System :: OS Independent
11
+ Description-Content-Type: text/markdown
12
+ Requires-Dist: logger-local>=0.0.61
13
+ Requires-Dist: database-mysql-local>=0.0.290
14
+
15
+ This is a package for sharing common methods of machine-learning-model-local used in different repositories
@@ -1,9 +1,12 @@
1
1
  # python-package-template
2
+
2
3
  This repository is designed to help you create local and remote package layers in Python.
3
4
  It focuses on building package layers and does not include GraphQL and REST-API layers.
4
5
 
5
6
  ## Download Environment
7
+
6
8
  To set up the environment, follow these steps in your terminal:
9
+
7
10
  ```shell
8
11
  git clone https://github.com/circles-zone/<your-repo>.git --branch dev # or other branch
9
12
  cd <your-repo>
@@ -16,25 +19,27 @@ git commit -m "Your commit message"
16
19
  git push origin BU-<your-branch>
17
20
  ```
18
21
 
19
- For more detailed information, refer to the [documentation](https://docs.google.com/document/d/1HKhwlhwLD3S8uJ9LPI7h4Nxu77-DXKZe/edit?usp=sharing&ouid=104468990154530891864&rtpof=true&sd=true).
22
+ For more detailed information, refer to
23
+ the [documentation](https://docs.google.com/document/d/1HKhwlhwLD3S8uJ9LPI7h4Nxu77-DXKZe/edit?usp=sharing&ouid=104468990154530891864&rtpof=true&sd=true).
20
24
 
21
25
  ## Check List:
22
26
 
23
27
  ### Directory Structure
24
28
 
25
29
  Ensure that the root directory has the following structure:
30
+
26
31
  - `.github/`
27
32
  - `.vscode/` (optional)
28
33
  - `directory_with_same_name_as_the_repo/`
29
- - `db/`
30
- - `reports/`
31
- - `project_name/`
32
- - `src/`
33
- - `__init__.py`
34
- - `example_class.py`
35
- - `tests/`
36
- - `example_class_test.py`
37
- - `__init__.py`
34
+ - `db/`
35
+ - `reports/`
36
+ - `project_name/`
37
+ - `src/`
38
+ - `__init__.py`
39
+ - `example_class.py`
40
+ - `tests/`
41
+ - `example_class_test.py`
42
+ - `__init__.py`
38
43
 
39
44
  This setup enables easy switching to a mono repo configuration.
40
45
 
@@ -54,18 +59,24 @@ Feel free to delete the example file if it's not required.
54
59
 
55
60
  Don't forget to update the `setup.py` file, including the package name and version.
56
61
  Remember to upload the version after every deployment.
62
+
57
63
  ### Working with VS Code
64
+
58
65
  Ensure that you push the `launch.json` file to the repository.
59
66
  This enables running and debugging the code smoothly.
60
67
 
61
68
  ### Unit Testing
69
+
62
70
  We recommend using `pytest` over the `unittest` package.
63
71
  Create a `pytest.ini` file in the project directory, not the root directory.
64
72
  run in termianl: pytest
65
73
 
66
74
  ## Workflow Completion
67
- When you've addressed all the TODOs in the repository, using infrastructure classes like Logger, Database, Url, Importer, and others, make sure your Feature Branch GitHub Actions Workflow is green without warnings.
68
- All tests should run in GitHub Actions, your code should be well-documented, the `README.md` file should be clear and self-explanatory, test coverage should be above 90%, and all lines of code should be covered by unit tests.
75
+
76
+ When you've addressed all the TODOs in the repository, using infrastructure classes like Logger, Database, Url,
77
+ Importer, and others, make sure your Feature Branch GitHub Actions Workflow is green without warnings.
78
+ All tests should run in GitHub Actions, your code should be well-documented, the `README.md` file should be clear and
79
+ self-explanatory, test coverage should be above 90%, and all lines of code should be covered by unit tests.
69
80
 
70
81
  Once these conditions are met, you can filter and analyze your records in Logz.io.
71
82
  Pull the `dev` branch to your Feature Branch and then create a Pull Request to `dev`.
@@ -73,6 +84,7 @@ Pull the `dev` branch to your Feature Branch and then create a Pull Request to `
73
84
  Good luck :)
74
85
 
75
86
  ## check your code visibility lint with flake (Mandatory before pusj):
87
+
76
88
  run those command
77
89
  python -m pip install flake8 pytest
78
90
  flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
@@ -0,0 +1,22 @@
1
+ from database_mysql_local.generic_crud import GenericCRUD
2
+ from logger_local.LoggerComponentEnum import LoggerComponentEnum
3
+ from logger_local.LoggerLocal import Logger
4
+
5
+ # TODO: move to constants
6
+ MACHINE_LEARNING_LOCAL_TYPESCRIPT_PACKAGE_COMPONENT_ID = 236
7
+ MACHINE_LEARNING_LOCAL_TYPESCRIPT_PACKAGE_COMPONENT_NAME = "machine-learning-model-local-python-package"
8
+ DEVELOPER_EMAIL = "idan.a@circ.zone"
9
+ object1 = {
10
+ 'component_id': MACHINE_LEARNING_LOCAL_TYPESCRIPT_PACKAGE_COMPONENT_ID,
11
+ 'component_name': MACHINE_LEARNING_LOCAL_TYPESCRIPT_PACKAGE_COMPONENT_NAME,
12
+ 'component_category': LoggerComponentEnum.ComponentCategory.Code.value,
13
+ 'developer_email': DEVELOPER_EMAIL
14
+ }
15
+ logger = Logger.create_logger(object=object1)
16
+
17
+
18
+ class MachineLearningModel(GenericCRUD):
19
+ def __init__(self) -> None:
20
+ logger.start()
21
+ # super.__init__("machine_learning")
22
+ logger.end()
@@ -0,0 +1,15 @@
1
+ Metadata-Version: 2.1
2
+ Name: machine-learning-model-local
3
+ Version: 0.0.4
4
+ Summary: PyPI Package for Circles machine-learning-model-local Python
5
+ Home-page: https://github.com/circles-zone/machine-learning-model-local-python-package
6
+ Author: Circles
7
+ Author-email: info@circlez.ai
8
+ Classifier: Programming Language :: Python :: 3
9
+ Classifier: License :: Other/Proprietary License
10
+ Classifier: Operating System :: OS Independent
11
+ Description-Content-Type: text/markdown
12
+ Requires-Dist: logger-local>=0.0.61
13
+ Requires-Dist: database-mysql-local>=0.0.290
14
+
15
+ This is a package for sharing common methods of machine-learning-model-local used in different repositories
@@ -0,0 +1,2 @@
1
+ logger-local>=0.0.61
2
+ database-mysql-local>=0.0.290
@@ -0,0 +1,28 @@
1
+ import setuptools
2
+
3
+ PACKAGE_NAME = "machine-learning-model-local"
4
+ package_dir = PACKAGE_NAME.replace("-", "_")
5
+
6
+ setuptools.setup(
7
+ name=PACKAGE_NAME, # https://pypi.org/project/machine-learning-model-local/
8
+ version='0.0.4', # update each time
9
+ author="Circles",
10
+ author_email="info@circlez.ai",
11
+ description="PyPI Package for Circles machine-learning-model-local Python",
12
+ long_description="This is a package for sharing common methods of machine-learning-model-local used in different repositories",
13
+ long_description_content_type='text/markdown',
14
+ url=f"https://github.com/circles-zone/{PACKAGE_NAME}-python-package",
15
+ packages=[package_dir],
16
+ package_dir={package_dir: f'{package_dir}/src'},
17
+ package_data={package_dir: ['*.py']},
18
+ classifiers=[
19
+ "Programming Language :: Python :: 3",
20
+ "License :: Other/Proprietary License",
21
+ "Operating System :: OS Independent",
22
+ ],
23
+ # TODO: Update which packages to include with this package
24
+ install_requires=[
25
+ 'logger-local>=0.0.61',
26
+ 'database-mysql-local>=0.0.290'
27
+ ],
28
+ )
@@ -1,95 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: machine-learning-model-local
3
- Version: 0.0.2
4
- Summary: PyPI Package for Circles machine-learning-model-local Python
5
- Home-page: https://github.com/circles
6
- Author: Circles
7
- Author-email: info@circlez.ai
8
- Classifier: Programming Language :: Python :: 3
9
- Classifier: License :: Other/Proprietary License
10
- Classifier: Operating System :: OS Independent
11
- Description-Content-Type: text/markdown
12
- Requires-Dist: logger-local>=0.0.61
13
- Requires-Dist: database-without-orm-local>=0.0.90
14
-
15
- # python-package-template
16
- This repository is designed to help you create local and remote package layers in Python.
17
- It focuses on building package layers and does not include GraphQL and REST-API layers.
18
-
19
- ## Download Environment
20
- To set up the environment, follow these steps in your terminal:
21
- ```shell
22
- git clone https://github.com/circles-zone/<your-repo>.git --branch dev # or other branch
23
- cd <your-repo>
24
- git checkout -b BU-<new-branch> # if a new branch is needed
25
- python -m venv venv
26
- pip install -r requirements.txt
27
- ... <edit your code> ...
28
- git add .
29
- git commit -m "Your commit message"
30
- git push origin BU-<your-branch>
31
- ```
32
-
33
- For more detailed information, refer to the [documentation](https://docs.google.com/document/d/1HKhwlhwLD3S8uJ9LPI7h4Nxu77-DXKZe/edit?usp=sharing&ouid=104468990154530891864&rtpof=true&sd=true).
34
-
35
- ## Check List:
36
-
37
- ### Directory Structure
38
-
39
- Ensure that the root directory has the following structure:
40
- - `.github/`
41
- - `.vscode/` (optional)
42
- - `directory_with_same_name_as_the_repo/`
43
- - `db/`
44
- - `reports/`
45
- - `project_name/`
46
- - `src/`
47
- - `__init__.py`
48
- - `example_class.py`
49
- - `tests/`
50
- - `example_class_test.py`
51
- - `__init__.py`
52
-
53
- This setup enables easy switching to a mono repo configuration.
54
-
55
- ### Database Python Scripts
56
-
57
- Place `<table-name>.py` in the `/db` folder if needed.
58
- There's no need for a separate file for `_ml` tables.
59
- Feel free to delete the example file if it's not required.
60
-
61
- ### Database Schema and Data
62
-
63
- - Create files to define the database schema, tables, views, and populate metadata and test data.
64
- - Use `/db/<table-name>.py` to create the schema, tables, views (including `_ml_table`).
65
- - Use `/db/<table-name>_insert.py` to create metadata and test data records.
66
-
67
- ### Update `setup.py`
68
-
69
- Don't forget to update the `setup.py` file, including the package name and version.
70
- Remember to upload the version after every deployment.
71
- ### Working with VS Code
72
- Ensure that you push the `launch.json` file to the repository.
73
- This enables running and debugging the code smoothly.
74
-
75
- ### Unit Testing
76
- We recommend using `pytest` over the `unittest` package.
77
- Create a `pytest.ini` file in the project directory, not the root directory.
78
- run in termianl: pytest
79
-
80
- ## Workflow Completion
81
- When you've addressed all the TODOs in the repository, using infrastructure classes like Logger, Database, Url, Importer, and others, make sure your Feature Branch GitHub Actions Workflow is green without warnings.
82
- All tests should run in GitHub Actions, your code should be well-documented, the `README.md` file should be clear and self-explanatory, test coverage should be above 90%, and all lines of code should be covered by unit tests.
83
-
84
- Once these conditions are met, you can filter and analyze your records in Logz.io.
85
- Pull the `dev` branch to your Feature Branch and then create a Pull Request to `dev`.
86
-
87
- Good luck :)
88
-
89
- ## check your code visibility lint with flake (Mandatory before pusj):
90
- run those command
91
- python -m pip install flake8 pytest
92
- flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
93
- flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
94
-
95
- note: you should use autopep8 extension in your code!
@@ -1,10 +0,0 @@
1
- # TODO: This is an example file which you should delete after implementing
2
- from dotenv import load_dotenv
3
- from circles_local_database_python.generic_crud import GenericCRUD
4
- load_dotenv()
5
-
6
- class MachineLearningModel(GenericCRUD):
7
- def __init__(self) -> None:
8
- pass
9
-
10
-
@@ -1,95 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: machine-learning-model-local
3
- Version: 0.0.2
4
- Summary: PyPI Package for Circles machine-learning-model-local Python
5
- Home-page: https://github.com/circles
6
- Author: Circles
7
- Author-email: info@circlez.ai
8
- Classifier: Programming Language :: Python :: 3
9
- Classifier: License :: Other/Proprietary License
10
- Classifier: Operating System :: OS Independent
11
- Description-Content-Type: text/markdown
12
- Requires-Dist: logger-local>=0.0.61
13
- Requires-Dist: database-without-orm-local>=0.0.90
14
-
15
- # python-package-template
16
- This repository is designed to help you create local and remote package layers in Python.
17
- It focuses on building package layers and does not include GraphQL and REST-API layers.
18
-
19
- ## Download Environment
20
- To set up the environment, follow these steps in your terminal:
21
- ```shell
22
- git clone https://github.com/circles-zone/<your-repo>.git --branch dev # or other branch
23
- cd <your-repo>
24
- git checkout -b BU-<new-branch> # if a new branch is needed
25
- python -m venv venv
26
- pip install -r requirements.txt
27
- ... <edit your code> ...
28
- git add .
29
- git commit -m "Your commit message"
30
- git push origin BU-<your-branch>
31
- ```
32
-
33
- For more detailed information, refer to the [documentation](https://docs.google.com/document/d/1HKhwlhwLD3S8uJ9LPI7h4Nxu77-DXKZe/edit?usp=sharing&ouid=104468990154530891864&rtpof=true&sd=true).
34
-
35
- ## Check List:
36
-
37
- ### Directory Structure
38
-
39
- Ensure that the root directory has the following structure:
40
- - `.github/`
41
- - `.vscode/` (optional)
42
- - `directory_with_same_name_as_the_repo/`
43
- - `db/`
44
- - `reports/`
45
- - `project_name/`
46
- - `src/`
47
- - `__init__.py`
48
- - `example_class.py`
49
- - `tests/`
50
- - `example_class_test.py`
51
- - `__init__.py`
52
-
53
- This setup enables easy switching to a mono repo configuration.
54
-
55
- ### Database Python Scripts
56
-
57
- Place `<table-name>.py` in the `/db` folder if needed.
58
- There's no need for a separate file for `_ml` tables.
59
- Feel free to delete the example file if it's not required.
60
-
61
- ### Database Schema and Data
62
-
63
- - Create files to define the database schema, tables, views, and populate metadata and test data.
64
- - Use `/db/<table-name>.py` to create the schema, tables, views (including `_ml_table`).
65
- - Use `/db/<table-name>_insert.py` to create metadata and test data records.
66
-
67
- ### Update `setup.py`
68
-
69
- Don't forget to update the `setup.py` file, including the package name and version.
70
- Remember to upload the version after every deployment.
71
- ### Working with VS Code
72
- Ensure that you push the `launch.json` file to the repository.
73
- This enables running and debugging the code smoothly.
74
-
75
- ### Unit Testing
76
- We recommend using `pytest` over the `unittest` package.
77
- Create a `pytest.ini` file in the project directory, not the root directory.
78
- run in termianl: pytest
79
-
80
- ## Workflow Completion
81
- When you've addressed all the TODOs in the repository, using infrastructure classes like Logger, Database, Url, Importer, and others, make sure your Feature Branch GitHub Actions Workflow is green without warnings.
82
- All tests should run in GitHub Actions, your code should be well-documented, the `README.md` file should be clear and self-explanatory, test coverage should be above 90%, and all lines of code should be covered by unit tests.
83
-
84
- Once these conditions are met, you can filter and analyze your records in Logz.io.
85
- Pull the `dev` branch to your Feature Branch and then create a Pull Request to `dev`.
86
-
87
- Good luck :)
88
-
89
- ## check your code visibility lint with flake (Mandatory before pusj):
90
- run those command
91
- python -m pip install flake8 pytest
92
- flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
93
- flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
94
-
95
- note: you should use autopep8 extension in your code!
@@ -1,2 +0,0 @@
1
- logger-local>=0.0.61
2
- database-without-orm-local>=0.0.90
@@ -1,39 +0,0 @@
1
- import setuptools
2
- # Each Python project should have pyproject.toml or setup.py (if both exist, we use the setup.py)
3
- # TODO: Please create pyproject.toml instead of setup.py (delete the setup.py)
4
- # used by python -m build
5
- # ```python -m build``` needs pyproject.toml or setup.py
6
- # The need for setup.py is changing as of poetry 1.1.0 (including current pre-release) as we have moved away from needing to generate a setup.py file to enable editable installs - We might able to delete this file in the near future
7
-
8
- PACKAGE_NAME = "machine-learning-model-local"
9
- package_dir = PACKAGE_NAME.replace("-", "_")
10
-
11
- with open('README.md') as f:
12
- readme = f.read()
13
-
14
- setuptools.setup(
15
- # TODO: Please update the name and delete this line i.e. XXX-local or XXX-remote (without the -python-package suffix). Only lowercase, no underlines.
16
- name=PACKAGE_NAME,
17
- version='0.0.2', # update each time
18
- author="Circles",
19
- author_email="info@circlez.ai",
20
- # TODO: Please update the description and delete this line
21
- description="PyPI Package for Circles machine-learning-model-local Python",
22
- long_description=open('README.md').read(),
23
- long_description_content_type='text/markdown',
24
- # TODO: Please update the URL below
25
- url="https://github.com/circles", # https://pypi.org/project/machine-learning-model-local/
26
- packages=[package_dir],
27
- package_dir={package_dir: f'{package_dir}/src'},
28
- package_data={package_dir: ['*.py']},
29
- classifiers=[
30
- "Programming Language :: Python :: 3",
31
- "License :: Other/Proprietary License",
32
- "Operating System :: OS Independent",
33
- ],
34
- # TODO: Update which packages to include with this package
35
- install_requires=[
36
- 'logger-local>= 0.0.61',
37
- 'database-without-orm-local>=0.0.90'
38
- ],
39
- )