pygeobox 1.0.2__tar.gz → 1.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 (69) hide show
  1. {pygeobox-1.0.2 → pygeobox-1.0.4}/LICENSE +21 -21
  2. {pygeobox-1.0.2 → pygeobox-1.0.4}/PKG-INFO +3 -14
  3. {pygeobox-1.0.2 → pygeobox-1.0.4}/README.md +1 -3
  4. {pygeobox-1.0.2 → pygeobox-1.0.4}/pygeobox/__init__.py +63 -63
  5. {pygeobox-1.0.2 → pygeobox-1.0.4}/pygeobox/api.py +2517 -2517
  6. {pygeobox-1.0.2 → pygeobox-1.0.4}/pygeobox/apikey.py +232 -232
  7. {pygeobox-1.0.2 → pygeobox-1.0.4}/pygeobox/attachment.py +297 -297
  8. {pygeobox-1.0.2 → pygeobox-1.0.4}/pygeobox/base.py +364 -364
  9. {pygeobox-1.0.2 → pygeobox-1.0.4}/pygeobox/basemap.py +162 -162
  10. {pygeobox-1.0.2 → pygeobox-1.0.4}/pygeobox/dashboard.py +316 -316
  11. {pygeobox-1.0.2 → pygeobox-1.0.4}/pygeobox/enums.py +354 -354
  12. {pygeobox-1.0.2 → pygeobox-1.0.4}/pygeobox/exception.py +47 -47
  13. {pygeobox-1.0.2 → pygeobox-1.0.4}/pygeobox/feature.py +0 -0
  14. {pygeobox-1.0.2 → pygeobox-1.0.4}/pygeobox/field.py +309 -309
  15. {pygeobox-1.0.2 → pygeobox-1.0.4}/pygeobox/map.py +858 -858
  16. {pygeobox-1.0.2 → pygeobox-1.0.4}/pygeobox/model3d.py +334 -334
  17. {pygeobox-1.0.2 → pygeobox-1.0.4}/pygeobox/mosaic.py +647 -647
  18. {pygeobox-1.0.2 → pygeobox-1.0.4}/pygeobox/plan.py +260 -260
  19. {pygeobox-1.0.2 → pygeobox-1.0.4}/pygeobox/query.py +668 -668
  20. {pygeobox-1.0.2 → pygeobox-1.0.4}/pygeobox/raster.py +756 -756
  21. {pygeobox-1.0.2 → pygeobox-1.0.4}/pygeobox/route.py +63 -63
  22. {pygeobox-1.0.2 → pygeobox-1.0.4}/pygeobox/scene.py +317 -317
  23. {pygeobox-1.0.2 → pygeobox-1.0.4}/pygeobox/settings.py +165 -165
  24. {pygeobox-1.0.2 → pygeobox-1.0.4}/pygeobox/task.py +354 -354
  25. {pygeobox-1.0.2 → pygeobox-1.0.4}/pygeobox/tile3d.py +294 -294
  26. {pygeobox-1.0.2 → pygeobox-1.0.4}/pygeobox/tileset.py +585 -585
  27. {pygeobox-1.0.2 → pygeobox-1.0.4}/pygeobox/user.py +423 -423
  28. {pygeobox-1.0.2 → pygeobox-1.0.4}/pygeobox/utils.py +43 -43
  29. {pygeobox-1.0.2 → pygeobox-1.0.4}/pygeobox/vectorlayer.py +1149 -1149
  30. {pygeobox-1.0.2 → pygeobox-1.0.4}/pygeobox/version.py +248 -248
  31. {pygeobox-1.0.2 → pygeobox-1.0.4}/pygeobox/view.py +859 -859
  32. {pygeobox-1.0.2 → pygeobox-1.0.4}/pygeobox/workflow.py +315 -315
  33. {pygeobox-1.0.2 → pygeobox-1.0.4}/pygeobox.egg-info/PKG-INFO +3 -14
  34. {pygeobox-1.0.2 → pygeobox-1.0.4}/pygeobox.egg-info/requires.txt +0 -11
  35. {pygeobox-1.0.2 → pygeobox-1.0.4}/pyproject.toml +4 -6
  36. {pygeobox-1.0.2 → pygeobox-1.0.4}/tests/test_api.py +1949 -1949
  37. {pygeobox-1.0.2 → pygeobox-1.0.4}/tests/test_feature.py +444 -444
  38. {pygeobox-1.0.2 → pygeobox-1.0.4}/tests/test_field.py +246 -246
  39. {pygeobox-1.0.2 → pygeobox-1.0.4}/tests/test_file.py +345 -345
  40. {pygeobox-1.0.2 → pygeobox-1.0.4}/tests/test_map.py +0 -0
  41. {pygeobox-1.0.2 → pygeobox-1.0.4}/tests/test_model3d.py +211 -211
  42. {pygeobox-1.0.2 → pygeobox-1.0.4}/tests/test_mosaic.py +358 -358
  43. {pygeobox-1.0.2 → pygeobox-1.0.4}/tests/test_query.py +460 -460
  44. {pygeobox-1.0.2 → pygeobox-1.0.4}/tests/test_task.py +234 -234
  45. {pygeobox-1.0.2 → pygeobox-1.0.4}/tests/test_tileset.py +312 -312
  46. {pygeobox-1.0.2 → pygeobox-1.0.4}/tests/test_user.py +148 -148
  47. {pygeobox-1.0.2 → pygeobox-1.0.4}/tests/test_vectorlayer.py +671 -667
  48. {pygeobox-1.0.2 → pygeobox-1.0.4}/tests/test_view.py +731 -727
  49. {pygeobox-1.0.2 → pygeobox-1.0.4}/pygeobox/file.py +0 -0
  50. {pygeobox-1.0.2 → pygeobox-1.0.4}/pygeobox/log.py +0 -0
  51. {pygeobox-1.0.2 → pygeobox-1.0.4}/pygeobox/usage.py +0 -0
  52. {pygeobox-1.0.2 → pygeobox-1.0.4}/pygeobox.egg-info/SOURCES.txt +0 -0
  53. {pygeobox-1.0.2 → pygeobox-1.0.4}/pygeobox.egg-info/dependency_links.txt +0 -0
  54. {pygeobox-1.0.2 → pygeobox-1.0.4}/pygeobox.egg-info/top_level.txt +0 -0
  55. {pygeobox-1.0.2 → pygeobox-1.0.4}/setup.cfg +0 -0
  56. {pygeobox-1.0.2 → pygeobox-1.0.4}/tests/test_apikey.py +0 -0
  57. {pygeobox-1.0.2 → pygeobox-1.0.4}/tests/test_attachment.py +0 -0
  58. {pygeobox-1.0.2 → pygeobox-1.0.4}/tests/test_basemap.py +0 -0
  59. {pygeobox-1.0.2 → pygeobox-1.0.4}/tests/test_dashboard.py +0 -0
  60. {pygeobox-1.0.2 → pygeobox-1.0.4}/tests/test_log.py +0 -0
  61. {pygeobox-1.0.2 → pygeobox-1.0.4}/tests/test_plan.py +0 -0
  62. {pygeobox-1.0.2 → pygeobox-1.0.4}/tests/test_raster.py +0 -0
  63. {pygeobox-1.0.2 → pygeobox-1.0.4}/tests/test_route.py +0 -0
  64. {pygeobox-1.0.2 → pygeobox-1.0.4}/tests/test_scene.py +0 -0
  65. {pygeobox-1.0.2 → pygeobox-1.0.4}/tests/test_settings.py +0 -0
  66. {pygeobox-1.0.2 → pygeobox-1.0.4}/tests/test_tile3d.py +0 -0
  67. {pygeobox-1.0.2 → pygeobox-1.0.4}/tests/test_usage.py +0 -0
  68. {pygeobox-1.0.2 → pygeobox-1.0.4}/tests/test_version.py +0 -0
  69. {pygeobox-1.0.2 → pygeobox-1.0.4}/tests/test_workflow.py +0 -0
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2023 Geobox
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2023 Geobox
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -1,11 +1,11 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pygeobox
3
- Version: 1.0.2
3
+ Version: 1.0.4
4
4
  Summary: SDK for Geobox's APIs
5
5
  Author-email: Hamid Heydari <heydari.h62@gmail.com>
6
6
  License: MIT
7
7
  Project-URL: Homepage, https://geobox.ir
8
- Project-URL: Documentation, https://geobox.ir
8
+ Project-URL: Documentation, https://en.geobox.ir/developers/docs-category/geobox-api-for-python/
9
9
  Requires-Python: >=3.7
10
10
  Description-Content-Type: text/markdown
11
11
  License-File: LICENSE
@@ -17,15 +17,6 @@ Requires-Dist: pyproj; extra == "geometry"
17
17
  Provides-Extra: tqdm
18
18
  Requires-Dist: tqdm; extra == "tqdm"
19
19
  Requires-Dist: ipywidgets; extra == "tqdm"
20
- Provides-Extra: test
21
- Requires-Dist: pytest; extra == "test"
22
- Requires-Dist: shapely; extra == "test"
23
- Requires-Dist: pyproj; extra == "test"
24
- Requires-Dist: pytest-cov; extra == "test"
25
- Provides-Extra: docs
26
- Requires-Dist: Sphinx; extra == "docs"
27
- Requires-Dist: sphinx-rtd-theme; extra == "docs"
28
- Requires-Dist: sphinx-copybutton; extra == "docs"
29
20
  Provides-Extra: all
30
21
  Requires-Dist: shapely; extra == "all"
31
22
  Requires-Dist: pyproj; extra == "all"
@@ -35,8 +26,6 @@ Dynamic: license-file
35
26
 
36
27
  [<img width="200" alt="Geobox logo" src="https://www.geobox.ir/wp-content/uploads/2022/05/geologo-slider.png">](https://www.geobox.ir/)
37
28
 
38
- # Geobox
39
- SDK for Geobox's APIs
40
29
 
41
30
  Installation
42
31
  ============
@@ -72,7 +61,7 @@ from pygeobox import GeoboxClient
72
61
 
73
62
  client = GeoboxClient()
74
63
 
75
- task = client.geet_tasks()[0]
64
+ task = client.get_tasks()[0]
76
65
  task.wait() # shows progress bar by default. use progress_bar=False to disable it.
77
66
  ```
78
67
 
@@ -1,7 +1,5 @@
1
1
  [<img width="200" alt="Geobox logo" src="https://www.geobox.ir/wp-content/uploads/2022/05/geologo-slider.png">](https://www.geobox.ir/)
2
2
 
3
- # Geobox
4
- SDK for Geobox's APIs
5
3
 
6
4
  Installation
7
5
  ============
@@ -37,7 +35,7 @@ from pygeobox import GeoboxClient
37
35
 
38
36
  client = GeoboxClient()
39
37
 
40
- task = client.geet_tasks()[0]
38
+ task = client.get_tasks()[0]
41
39
  task.wait() # shows progress bar by default. use progress_bar=False to disable it.
42
40
  ```
43
41
 
@@ -1,63 +1,63 @@
1
- """
2
- GeoBox SDK
3
-
4
- This package provides classes and functions to interact with the GeoBox API.
5
-
6
- Modules:
7
- api (module): Contains the Api class for making API requests.
8
- vectors (module): Contains classes for interacting with vector layers, fields, and features.
9
- exception (module): Contains custom exception classes for error handling.
10
-
11
- Classes:
12
- Api: A class to interact with the GeoBox API.
13
- VectorLayers: A class to interact with vector layers in the GeoBox API.
14
- Fields: A class to interact with fields in a vector layer.
15
- Features: A class to interact with features in a vector layer.
16
- GeoboxError: Base class for all exceptions raised by the GeoBox SDK.
17
- AuthenticationError: Raised when there is an authentication error.
18
- AuthorizationError: Raised when there is an authorization error.
19
- ApiRequestError: Raised when there is an error with the API request.
20
- NotFoundError: Raised when a requested resource is not found.
21
- ValidationError: Raised when there is a validation error.
22
- ServerError: Raised when there is a server error.
23
- """
24
- import logging, os, dotenv
25
- from .api import GeoboxClient
26
-
27
- from .exception import (
28
- GeoboxError,
29
- AuthenticationError,
30
- AuthorizationError,
31
- ApiRequestError,
32
- NotFoundError,
33
- ValidationError,
34
- ServerError
35
- )
36
-
37
- dotenv.load_dotenv()
38
- DEBUG = os.getenv('DEBUG', 'False').lower() == 'true'
39
-
40
- logger = logging.getLogger(__name__)
41
- if DEBUG:
42
- logging.basicConfig(
43
- level=logging.DEBUG,
44
- format="%(asctime)s - %(name)s - %(levelname)s - %(message)s"
45
- )
46
- logger.info("Logging is set to DEBUG level.")
47
- else:
48
- logging.basicConfig(level=logging.WARNING)
49
-
50
-
51
- __all__ = [
52
- 'GeoboxClient',
53
- 'Feature',
54
- 'VectorLayer',
55
- 'GeoboxError',
56
- 'AuthenticationError',
57
- 'AuthorizationError',
58
- 'ApiRequestError',
59
- 'NotFoundError',
60
- 'ValidationError',
61
- 'ServerError'
62
- ]
63
-
1
+ """
2
+ GeoBox SDK
3
+
4
+ This package provides classes and functions to interact with the GeoBox API.
5
+
6
+ Modules:
7
+ api (module): Contains the Api class for making API requests.
8
+ vectors (module): Contains classes for interacting with vector layers, fields, and features.
9
+ exception (module): Contains custom exception classes for error handling.
10
+
11
+ Classes:
12
+ Api: A class to interact with the GeoBox API.
13
+ VectorLayers: A class to interact with vector layers in the GeoBox API.
14
+ Fields: A class to interact with fields in a vector layer.
15
+ Features: A class to interact with features in a vector layer.
16
+ GeoboxError: Base class for all exceptions raised by the GeoBox SDK.
17
+ AuthenticationError: Raised when there is an authentication error.
18
+ AuthorizationError: Raised when there is an authorization error.
19
+ ApiRequestError: Raised when there is an error with the API request.
20
+ NotFoundError: Raised when a requested resource is not found.
21
+ ValidationError: Raised when there is a validation error.
22
+ ServerError: Raised when there is a server error.
23
+ """
24
+ import logging, os, dotenv
25
+ from .api import GeoboxClient
26
+
27
+ from .exception import (
28
+ GeoboxError,
29
+ AuthenticationError,
30
+ AuthorizationError,
31
+ ApiRequestError,
32
+ NotFoundError,
33
+ ValidationError,
34
+ ServerError
35
+ )
36
+
37
+ dotenv.load_dotenv()
38
+ DEBUG = os.getenv('DEBUG', 'False').lower() == 'true'
39
+
40
+ logger = logging.getLogger(__name__)
41
+ if DEBUG:
42
+ logging.basicConfig(
43
+ level=logging.DEBUG,
44
+ format="%(asctime)s - %(name)s - %(levelname)s - %(message)s"
45
+ )
46
+ logger.info("Logging is set to DEBUG level.")
47
+ else:
48
+ logging.basicConfig(level=logging.WARNING)
49
+
50
+
51
+ __all__ = [
52
+ 'GeoboxClient',
53
+ 'Feature',
54
+ 'VectorLayer',
55
+ 'GeoboxError',
56
+ 'AuthenticationError',
57
+ 'AuthorizationError',
58
+ 'ApiRequestError',
59
+ 'NotFoundError',
60
+ 'ValidationError',
61
+ 'ServerError'
62
+ ]
63
+