struai 0.2.0__py3-none-any.whl → 1.0.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.
struai/__init__.py
CHANGED
|
@@ -17,52 +17,52 @@ Example:
|
|
|
17
17
|
>>> results = project.search("W12x26 beam connections")
|
|
18
18
|
"""
|
|
19
19
|
|
|
20
|
-
from .
|
|
21
|
-
from ._client import StruAI, AsyncStruAI
|
|
20
|
+
from ._client import AsyncStruAI, StruAI
|
|
22
21
|
from ._exceptions import (
|
|
23
|
-
StruAIError,
|
|
24
22
|
APIError,
|
|
25
23
|
AuthenticationError,
|
|
26
|
-
|
|
24
|
+
ConnectionError,
|
|
25
|
+
InternalServerError,
|
|
26
|
+
JobFailedError,
|
|
27
27
|
NotFoundError,
|
|
28
|
-
|
|
28
|
+
PermissionDeniedError,
|
|
29
29
|
RateLimitError,
|
|
30
|
-
|
|
30
|
+
StruAIError,
|
|
31
31
|
TimeoutError,
|
|
32
|
-
|
|
33
|
-
JobFailedError,
|
|
32
|
+
ValidationError,
|
|
34
33
|
)
|
|
34
|
+
from ._version import __version__
|
|
35
35
|
|
|
36
36
|
# Re-export commonly used models
|
|
37
37
|
from .models import (
|
|
38
|
-
|
|
39
|
-
Point,
|
|
38
|
+
Annotations,
|
|
40
39
|
BBox,
|
|
41
|
-
|
|
40
|
+
DetailTag,
|
|
42
41
|
Dimensions,
|
|
43
42
|
# Tier 1 - Drawings
|
|
44
43
|
DrawingResult,
|
|
45
|
-
Annotations,
|
|
46
|
-
Leader,
|
|
47
|
-
SectionTag,
|
|
48
|
-
DetailTag,
|
|
49
|
-
RevisionTriangle,
|
|
50
|
-
RevisionCloud,
|
|
51
|
-
TitleBlock,
|
|
52
|
-
# Tier 2 - Projects
|
|
53
|
-
Project,
|
|
54
|
-
Sheet,
|
|
55
|
-
JobStatus,
|
|
56
|
-
SheetResult,
|
|
57
|
-
# Search
|
|
58
|
-
SearchResponse,
|
|
59
|
-
SearchHit,
|
|
60
|
-
QueryResponse,
|
|
61
44
|
# Entities
|
|
62
45
|
Entity,
|
|
63
46
|
EntityListItem,
|
|
64
47
|
EntityRelation,
|
|
65
48
|
Fact,
|
|
49
|
+
JobStatus,
|
|
50
|
+
Leader,
|
|
51
|
+
# Common
|
|
52
|
+
Point,
|
|
53
|
+
# Tier 2 - Projects
|
|
54
|
+
Project,
|
|
55
|
+
QueryResponse,
|
|
56
|
+
RevisionCloud,
|
|
57
|
+
RevisionTriangle,
|
|
58
|
+
SearchHit,
|
|
59
|
+
# Search
|
|
60
|
+
SearchResponse,
|
|
61
|
+
SectionTag,
|
|
62
|
+
Sheet,
|
|
63
|
+
SheetResult,
|
|
64
|
+
TextSpan,
|
|
65
|
+
TitleBlock,
|
|
66
66
|
)
|
|
67
67
|
|
|
68
68
|
__all__ = [
|
struai/_client.py
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
"""Main StruAI client classes."""
|
|
2
|
+
|
|
2
3
|
import os
|
|
3
4
|
from functools import cached_property
|
|
4
5
|
from typing import Optional
|
|
5
6
|
|
|
6
|
-
from ._base import
|
|
7
|
+
from ._base import DEFAULT_BASE_URL, DEFAULT_TIMEOUT, AsyncBaseClient, BaseClient
|
|
7
8
|
from ._exceptions import StruAIError
|
|
8
9
|
from .resources.drawings import AsyncDrawings, Drawings
|
|
9
10
|
from .resources.projects import AsyncProjects, Projects
|
struai/_version.py
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"""Version information."""
|
|
2
|
-
__version__ = "0.
|
|
2
|
+
__version__ = "1.0.1"
|
struai/models/common.py
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
struai/__init__.py,sha256=
|
|
1
|
+
struai/__init__.py,sha256=3YTAjICfleWQh33O7y-yVqAJ8k9Pn2eU2epzrroKqt4,2274
|
|
2
2
|
struai/_base.py,sha256=JiAxWI1PMmIFVr9v_hBABra8m2fRkEvBp7d2Vc-5IAk,11208
|
|
3
|
-
struai/_client.py,sha256=
|
|
3
|
+
struai/_client.py,sha256=WOcGC7LjaG469shx1YX2GCt0yJs-Ew-vOrxsqUmVmHM,3542
|
|
4
4
|
struai/_exceptions.py,sha256=GK0aVnOdkmcFaO16e0lzj9S2NmnTjQiy5H6nH6yDV24,2021
|
|
5
|
-
struai/_version.py,sha256=
|
|
5
|
+
struai/_version.py,sha256=da8k-y4StnRTawPjG6KLx2cylvLgrpCSR6eZl8UgnKA,49
|
|
6
6
|
struai/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
7
7
|
struai/models/__init__.py,sha256=qA_e6ZGG7Uhq9aLX2LeXlnUuV8VE6ur3OCFOPcj1oco,1220
|
|
8
|
-
struai/models/common.py,sha256=
|
|
8
|
+
struai/models/common.py,sha256=0Ox9PiuyRoyWH5vbSTfjm2nCWt_pblWH7kJso8nMVuE,592
|
|
9
9
|
struai/models/drawings.py,sha256=oTvN0ZID1TdUsR1BkJ-6M87nFbQwsYyePd0xoxKns9I,1634
|
|
10
10
|
struai/models/entities.py,sha256=4MHfhCn4g0n6d-6asASklbcmbJcIPg91rMBc5f56Zm8,1348
|
|
11
11
|
struai/models/projects.py,sha256=_VYinZrwWCmv3SQy7iZFPBtHcGsZe3XxI1i9SCk0EfY,1654
|
|
@@ -13,6 +13,6 @@ struai/models/search.py,sha256=UL3RYsAidS1zdV4lKiwNcHcAIjzyi8dgAQodowjzh58,1324
|
|
|
13
13
|
struai/resources/__init__.py,sha256=_JT_8OrvVcJ4yHmvZnsqYj4ej8pVg5lKSPKIcgQTCZk,183
|
|
14
14
|
struai/resources/drawings.py,sha256=b3C7CHS-p8CpGBtKl_dvLeUFDJ3g8HjlLBA4II0HsT4,3957
|
|
15
15
|
struai/resources/projects.py,sha256=_KRHO6ByBN_W-STlaAhVljLt9F3Yh9xzV5Piahc50FQ,19501
|
|
16
|
-
struai-0.
|
|
17
|
-
struai-0.
|
|
18
|
-
struai-0.
|
|
16
|
+
struai-1.0.1.dist-info/METADATA,sha256=pVsCT9ov986VJ3flFsJhCGwMIGrYlO_ITbdoPJ1_gV8,4460
|
|
17
|
+
struai-1.0.1.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
|
|
18
|
+
struai-1.0.1.dist-info/RECORD,,
|
|
File without changes
|