Skip to content

Commit bd6977a

Browse files
feat(api): api update
1 parent 3fda81d commit bd6977a

File tree

9 files changed

+4
-473
lines changed

9 files changed

+4
-473
lines changed

.stats.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 5
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cas-parser%2Fcas-parser-38618cc5c938e87eeacf4893d6a6ba4e6ef7da390e6283dc7b50b484a7b97165.yml
3-
openapi_spec_hash: b9e439ecee904ded01aa34efdee88856
1+
configured_endpoints: 4
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cas-parser%2Fcas-parser-7e6397bddc220d1a59b5e2c7e7c3ff38f1a6eb174f4e383e03bc49cf78c8c44f.yml
3+
openapi_spec_hash: cb852eeb4ce89c80f4246815cbe21f72
44
config_hash: cb5d75abef6264b5d86448caf7295afa

api.md

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,3 @@ Methods:
1212
- <code title="post /v4/cdsl/parse">client.cas_parser.<a href="./src/cas_parser/resources/cas_parser.py">cdsl</a>(\*\*<a href="src/cas_parser/types/cas_parser_cdsl_params.py">params</a>) -> <a href="./src/cas_parser/types/unified_response.py">UnifiedResponse</a></code>
1313
- <code title="post /v4/nsdl/parse">client.cas_parser.<a href="./src/cas_parser/resources/cas_parser.py">nsdl</a>(\*\*<a href="src/cas_parser/types/cas_parser_nsdl_params.py">params</a>) -> <a href="./src/cas_parser/types/unified_response.py">UnifiedResponse</a></code>
1414
- <code title="post /v4/smart/parse">client.cas_parser.<a href="./src/cas_parser/resources/cas_parser.py">smart_parse</a>(\*\*<a href="src/cas_parser/types/cas_parser_smart_parse_params.py">params</a>) -> <a href="./src/cas_parser/types/unified_response.py">UnifiedResponse</a></code>
15-
16-
# CasGenerator
17-
18-
Types:
19-
20-
```python
21-
from cas_parser.types import CasGeneratorGenerateCasResponse
22-
```
23-
24-
Methods:
25-
26-
- <code title="post /v4/generate">client.cas_generator.<a href="./src/cas_parser/resources/cas_generator.py">generate_cas</a>(\*\*<a href="src/cas_parser/types/cas_generator_generate_cas_params.py">params</a>) -> <a href="./src/cas_parser/types/cas_generator_generate_cas_response.py">CasGeneratorGenerateCasResponse</a></code>

src/cas_parser/_client.py

Lines changed: 1 addition & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,8 @@
3131
)
3232

3333
if TYPE_CHECKING:
34-
from .resources import cas_parser, cas_generator
34+
from .resources import cas_parser
3535
from .resources.cas_parser import CasParserResource, AsyncCasParserResource
36-
from .resources.cas_generator import CasGeneratorResource, AsyncCasGeneratorResource
3736

3837
__all__ = [
3938
"Timeout",
@@ -108,12 +107,6 @@ def cas_parser(self) -> CasParserResource:
108107

109108
return CasParserResource(self)
110109

111-
@cached_property
112-
def cas_generator(self) -> CasGeneratorResource:
113-
from .resources.cas_generator import CasGeneratorResource
114-
115-
return CasGeneratorResource(self)
116-
117110
@cached_property
118111
def with_raw_response(self) -> CasParserWithRawResponse:
119112
return CasParserWithRawResponse(self)
@@ -288,12 +281,6 @@ def cas_parser(self) -> AsyncCasParserResource:
288281

289282
return AsyncCasParserResource(self)
290283

291-
@cached_property
292-
def cas_generator(self) -> AsyncCasGeneratorResource:
293-
from .resources.cas_generator import AsyncCasGeneratorResource
294-
295-
return AsyncCasGeneratorResource(self)
296-
297284
@cached_property
298285
def with_raw_response(self) -> AsyncCasParserWithRawResponse:
299286
return AsyncCasParserWithRawResponse(self)
@@ -419,12 +406,6 @@ def cas_parser(self) -> cas_parser.CasParserResourceWithRawResponse:
419406

420407
return CasParserResourceWithRawResponse(self._client.cas_parser)
421408

422-
@cached_property
423-
def cas_generator(self) -> cas_generator.CasGeneratorResourceWithRawResponse:
424-
from .resources.cas_generator import CasGeneratorResourceWithRawResponse
425-
426-
return CasGeneratorResourceWithRawResponse(self._client.cas_generator)
427-
428409

429410
class AsyncCasParserWithRawResponse:
430411
_client: AsyncCasParser
@@ -438,12 +419,6 @@ def cas_parser(self) -> cas_parser.AsyncCasParserResourceWithRawResponse:
438419

439420
return AsyncCasParserResourceWithRawResponse(self._client.cas_parser)
440421

441-
@cached_property
442-
def cas_generator(self) -> cas_generator.AsyncCasGeneratorResourceWithRawResponse:
443-
from .resources.cas_generator import AsyncCasGeneratorResourceWithRawResponse
444-
445-
return AsyncCasGeneratorResourceWithRawResponse(self._client.cas_generator)
446-
447422

448423
class CasParserWithStreamedResponse:
449424
_client: CasParser
@@ -457,12 +432,6 @@ def cas_parser(self) -> cas_parser.CasParserResourceWithStreamingResponse:
457432

458433
return CasParserResourceWithStreamingResponse(self._client.cas_parser)
459434

460-
@cached_property
461-
def cas_generator(self) -> cas_generator.CasGeneratorResourceWithStreamingResponse:
462-
from .resources.cas_generator import CasGeneratorResourceWithStreamingResponse
463-
464-
return CasGeneratorResourceWithStreamingResponse(self._client.cas_generator)
465-
466435

467436
class AsyncCasParserWithStreamedResponse:
468437
_client: AsyncCasParser
@@ -476,12 +445,6 @@ def cas_parser(self) -> cas_parser.AsyncCasParserResourceWithStreamingResponse:
476445

477446
return AsyncCasParserResourceWithStreamingResponse(self._client.cas_parser)
478447

479-
@cached_property
480-
def cas_generator(self) -> cas_generator.AsyncCasGeneratorResourceWithStreamingResponse:
481-
from .resources.cas_generator import AsyncCasGeneratorResourceWithStreamingResponse
482-
483-
return AsyncCasGeneratorResourceWithStreamingResponse(self._client.cas_generator)
484-
485448

486449
Client = CasParser
487450

src/cas_parser/resources/__init__.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,6 @@
88
CasParserResourceWithStreamingResponse,
99
AsyncCasParserResourceWithStreamingResponse,
1010
)
11-
from .cas_generator import (
12-
CasGeneratorResource,
13-
AsyncCasGeneratorResource,
14-
CasGeneratorResourceWithRawResponse,
15-
AsyncCasGeneratorResourceWithRawResponse,
16-
CasGeneratorResourceWithStreamingResponse,
17-
AsyncCasGeneratorResourceWithStreamingResponse,
18-
)
1911

2012
__all__ = [
2113
"CasParserResource",
@@ -24,10 +16,4 @@
2416
"AsyncCasParserResourceWithRawResponse",
2517
"CasParserResourceWithStreamingResponse",
2618
"AsyncCasParserResourceWithStreamingResponse",
27-
"CasGeneratorResource",
28-
"AsyncCasGeneratorResource",
29-
"CasGeneratorResourceWithRawResponse",
30-
"AsyncCasGeneratorResourceWithRawResponse",
31-
"CasGeneratorResourceWithStreamingResponse",
32-
"AsyncCasGeneratorResourceWithStreamingResponse",
3319
]

src/cas_parser/resources/cas_generator.py

Lines changed: 0 additions & 225 deletions
This file was deleted.

src/cas_parser/types/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,3 @@
77
from .cas_parser_nsdl_params import CasParserNsdlParams as CasParserNsdlParams
88
from .cas_parser_smart_parse_params import CasParserSmartParseParams as CasParserSmartParseParams
99
from .cas_parser_cams_kfintech_params import CasParserCamsKfintechParams as CasParserCamsKfintechParams
10-
from .cas_generator_generate_cas_params import CasGeneratorGenerateCasParams as CasGeneratorGenerateCasParams
11-
from .cas_generator_generate_cas_response import CasGeneratorGenerateCasResponse as CasGeneratorGenerateCasResponse

0 commit comments

Comments
 (0)