homa 0.25__tar.gz → 0.26__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.

Potentially problematic release.


This version of homa might be problematic. Click here for more details.

Files changed (32) hide show
  1. {homa-0.25 → homa-0.26}/PKG-INFO +1 -1
  2. {homa-0.25 → homa-0.26}/homa/classes/Repository.py +3 -3
  3. {homa-0.25 → homa-0.26}/homa/classes/Window.py +6 -2
  4. homa-0.26/homa/helpers/environment.py +9 -0
  5. {homa-0.25 → homa-0.26}/homa.egg-info/PKG-INFO +1 -1
  6. homa-0.25/homa/helpers/environment.py +0 -5
  7. {homa-0.25 → homa-0.26}/LICENSE +0 -0
  8. {homa-0.25 → homa-0.26}/README.md +0 -0
  9. {homa-0.25 → homa-0.26}/homa/__init__.py +0 -0
  10. {homa-0.25 → homa-0.26}/homa/camera.py +0 -0
  11. {homa-0.25 → homa-0.26}/homa/classes/Collection.py +0 -0
  12. {homa-0.25 → homa-0.26}/homa/classes/Image.py +0 -0
  13. {homa-0.25 → homa-0.26}/homa/classes/Logger.py +0 -0
  14. {homa-0.25 → homa-0.26}/homa/classes/__init__.py +0 -0
  15. {homa-0.25 → homa-0.26}/homa/constants.py +0 -0
  16. {homa-0.25 → homa-0.26}/homa/events.py +0 -0
  17. {homa-0.25 → homa-0.26}/homa/helpers/__init__.py +0 -0
  18. {homa-0.25 → homa-0.26}/homa/helpers/alias.py +0 -0
  19. {homa-0.25 → homa-0.26}/homa/helpers/kernel.py +0 -0
  20. {homa-0.25 → homa-0.26}/homa/helpers/string.py +0 -0
  21. {homa-0.25 → homa-0.26}/homa/main.py +0 -0
  22. {homa-0.25 → homa-0.26}/homa/orientation.py +0 -0
  23. {homa-0.25 → homa-0.26}/homa/shapes.py +0 -0
  24. {homa-0.25 → homa-0.26}/homa/spaces.py +0 -0
  25. {homa-0.25 → homa-0.26}/homa.egg-info/SOURCES.txt +0 -0
  26. {homa-0.25 → homa-0.26}/homa.egg-info/dependency_links.txt +0 -0
  27. {homa-0.25 → homa-0.26}/homa.egg-info/requires.txt +0 -0
  28. {homa-0.25 → homa-0.26}/homa.egg-info/top_level.txt +0 -0
  29. {homa-0.25 → homa-0.26}/setup.cfg +0 -0
  30. {homa-0.25 → homa-0.26}/setup.py +0 -0
  31. {homa-0.25 → homa-0.26}/tests/__init__.py +0 -0
  32. {homa-0.25 → homa-0.26}/tests/test_images.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: homa
3
- Version: 0.25
3
+ Version: 0.26
4
4
  Maintainer: Taha Shieenavaz
5
5
  Maintainer-email: tahashieenavaz@gmail.com
6
6
  Description-Content-Type: text/markdown
@@ -1,4 +1,4 @@
1
- from ..helpers.environment import is_colab
1
+ from ..helpers.environment import isColab
2
2
  from ..helpers.string import randomLowercaseString
3
3
 
4
4
 
@@ -12,13 +12,13 @@ class RepositoryWrapper:
12
12
  "sigma": [0, 0]
13
13
  }
14
14
 
15
- if is_colab():
15
+ if isColab():
16
16
  from google.colab.patches import cv2_imshow as imshow
17
17
  else:
18
18
  from cv2 import imshow
19
19
 
20
20
  def final_imshow(window, image):
21
- if is_colab():
21
+ if isColab():
22
22
  imshow(image)
23
23
  else:
24
24
  imshow(window, image)
@@ -3,6 +3,7 @@ import cv2
3
3
 
4
4
  from ..helpers.kernel import createKernel
5
5
  from ..helpers.string import randomLowercaseString
6
+ from ..helpers.environment import isNotColab
6
7
 
7
8
  from ..classes.Repository import Repository
8
9
 
@@ -30,8 +31,11 @@ class Window:
30
31
  self.__events = {}
31
32
 
32
33
  def show(self):
33
- cv2.namedWindow(self.__title)
34
- cv2.setMouseCallback(self.__title, createMouseCallback(self.__events))
34
+ if isNotColab():
35
+ cv2.namedWindow(self.__title)
36
+ cv2.setMouseCallback(
37
+ self.__title, createMouseCallback(self.__events))
38
+
35
39
  Repository.imshow(self.__title, self.__image)
36
40
 
37
41
  def title(self, newTitle: str) -> Self:
@@ -0,0 +1,9 @@
1
+ import sys
2
+
3
+
4
+ def isColab() -> bool:
5
+ return 'google.colab' in sys.modules
6
+
7
+
8
+ def isNotColab() -> bool:
9
+ return not isColab()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: homa
3
- Version: 0.25
3
+ Version: 0.26
4
4
  Maintainer: Taha Shieenavaz
5
5
  Maintainer-email: tahashieenavaz@gmail.com
6
6
  Description-Content-Type: text/markdown
@@ -1,5 +0,0 @@
1
- import sys
2
-
3
-
4
- def is_colab() -> bool:
5
- return 'google.colab' in sys.modules
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes