geobox 2.1.0__py3-none-any.whl → 2.2.1__py3-none-any.whl

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 (70) hide show
  1. geobox/__init__.py +61 -63
  2. geobox/aio/__init__.py +61 -63
  3. geobox/aio/api.py +491 -574
  4. geobox/aio/apikey.py +263 -263
  5. geobox/aio/attachment.py +341 -339
  6. geobox/aio/base.py +261 -262
  7. geobox/aio/basemap.py +196 -196
  8. geobox/aio/dashboard.py +340 -342
  9. geobox/aio/feature.py +35 -35
  10. geobox/aio/field.py +315 -321
  11. geobox/aio/file.py +72 -72
  12. geobox/aio/layout.py +340 -341
  13. geobox/aio/log.py +23 -23
  14. geobox/aio/map.py +1033 -1034
  15. geobox/aio/model3d.py +415 -415
  16. geobox/aio/mosaic.py +696 -696
  17. geobox/aio/plan.py +314 -314
  18. geobox/aio/query.py +693 -693
  19. geobox/aio/raster.py +88 -454
  20. geobox/aio/{analysis.py → raster_analysis.py} +153 -170
  21. geobox/aio/route.py +4 -4
  22. geobox/aio/scene.py +340 -342
  23. geobox/aio/settings.py +18 -18
  24. geobox/aio/task.py +404 -402
  25. geobox/aio/tile3d.py +337 -339
  26. geobox/aio/tileset.py +102 -103
  27. geobox/aio/usage.py +52 -51
  28. geobox/aio/user.py +506 -507
  29. geobox/aio/vector_tool.py +1968 -0
  30. geobox/aio/vectorlayer.py +316 -414
  31. geobox/aio/version.py +272 -273
  32. geobox/aio/view.py +1019 -983
  33. geobox/aio/workflow.py +340 -341
  34. geobox/api.py +14 -98
  35. geobox/apikey.py +262 -262
  36. geobox/attachment.py +336 -337
  37. geobox/base.py +384 -384
  38. geobox/basemap.py +194 -194
  39. geobox/dashboard.py +339 -341
  40. geobox/enums.py +31 -1
  41. geobox/feature.py +31 -10
  42. geobox/field.py +320 -320
  43. geobox/file.py +4 -4
  44. geobox/layout.py +339 -340
  45. geobox/log.py +4 -4
  46. geobox/map.py +1031 -1032
  47. geobox/model3d.py +410 -410
  48. geobox/mosaic.py +696 -696
  49. geobox/plan.py +313 -313
  50. geobox/query.py +691 -691
  51. geobox/raster.py +5 -368
  52. geobox/{analysis.py → raster_analysis.py} +108 -128
  53. geobox/scene.py +341 -342
  54. geobox/settings.py +194 -194
  55. geobox/task.py +399 -400
  56. geobox/tile3d.py +337 -338
  57. geobox/tileset.py +4 -4
  58. geobox/usage.py +3 -3
  59. geobox/user.py +503 -503
  60. geobox/vector_tool.py +1968 -0
  61. geobox/vectorlayer.py +5 -110
  62. geobox/version.py +272 -272
  63. geobox/view.py +981 -981
  64. geobox/workflow.py +338 -339
  65. {geobox-2.1.0.dist-info → geobox-2.2.1.dist-info}/METADATA +15 -1
  66. geobox-2.2.1.dist-info/RECORD +72 -0
  67. geobox-2.1.0.dist-info/RECORD +0 -70
  68. {geobox-2.1.0.dist-info → geobox-2.2.1.dist-info}/WHEEL +0 -0
  69. {geobox-2.1.0.dist-info → geobox-2.2.1.dist-info}/licenses/LICENSE +0 -0
  70. {geobox-2.1.0.dist-info → geobox-2.2.1.dist-info}/top_level.txt +0 -0
geobox/__init__.py CHANGED
@@ -1,63 +1,61 @@
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
+ 'GeoboxError',
54
+ 'AuthenticationError',
55
+ 'AuthorizationError',
56
+ 'ApiRequestError',
57
+ 'NotFoundError',
58
+ 'ValidationError',
59
+ 'ServerError'
60
+ ]
61
+
geobox/aio/__init__.py CHANGED
@@ -1,63 +1,61 @@
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 AsyncGeoboxClient
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
- 'AsyncGeoboxClient',
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 AsyncGeoboxClient
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
+ 'AsyncGeoboxClient',
53
+ 'GeoboxError',
54
+ 'AuthenticationError',
55
+ 'AuthorizationError',
56
+ 'ApiRequestError',
57
+ 'NotFoundError',
58
+ 'ValidationError',
59
+ 'ServerError'
60
+ ]
61
+