stedi 0.0.1__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.
- stedi-0.0.1/.gitignore +70 -0
- stedi-0.0.1/LICENSE +190 -0
- stedi-0.0.1/PKG-INFO +78 -0
- stedi-0.0.1/README.md +51 -0
- stedi-0.0.1/pyproject.toml +48 -0
- stedi-0.0.1/src/stedi/__init__.py +69 -0
- stedi-0.0.1/src/stedi/_registry.py +20 -0
- stedi-0.0.1/src/stedi/claims.py +125 -0
- stedi-0.0.1/src/stedi/payers.py +25 -0
- stedi-0.0.1/src/stedi/py.typed +0 -0
- stedi-0.0.1/src/stedi_claims/__init__.py +100 -0
- stedi-0.0.1/src/stedi_claims/_private/__init__.py +1 -0
- stedi-0.0.1/src/stedi_claims/_private/schemas.py +3377 -0
- stedi-0.0.1/src/stedi_claims/auth.py +29 -0
- stedi-0.0.1/src/stedi_claims/client.py +81 -0
- stedi-0.0.1/src/stedi_claims/config.py +145 -0
- stedi-0.0.1/src/stedi_claims/models.py +4329 -0
- stedi-0.0.1/src/stedi_claims/py.typed +0 -0
- stedi-0.0.1/src/stedi_payers/__init__.py +100 -0
- stedi-0.0.1/src/stedi_payers/_private/__init__.py +1 -0
- stedi-0.0.1/src/stedi_payers/_private/schemas.py +1721 -0
- stedi-0.0.1/src/stedi_payers/auth.py +29 -0
- stedi-0.0.1/src/stedi_payers/client.py +77 -0
- stedi-0.0.1/src/stedi_payers/config.py +145 -0
- stedi-0.0.1/src/stedi_payers/models.py +2760 -0
- stedi-0.0.1/src/stedi_payers/py.typed +0 -0
stedi-0.0.1/.gitignore
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
# Smithy / Gradle / JVM
|
|
2
|
+
smithy/build/
|
|
3
|
+
.gradle/
|
|
4
|
+
build/
|
|
5
|
+
|
|
6
|
+
# Smithy build output (regenerated via `pnpm smithy:build` → scripts/sync-codegen.mjs).
|
|
7
|
+
codegen/
|
|
8
|
+
|
|
9
|
+
# Generated codegen output (regenerated from smithy/ via scripts/sync-codegen.mjs).
|
|
10
|
+
# Internal per-service TS workspaces: only maintainer docs are tracked; everything
|
|
11
|
+
# else is synced from codegen and vendored into packages/typescript/src/generated/.
|
|
12
|
+
packages/typescript-payers/*
|
|
13
|
+
!packages/typescript-payers/README.md
|
|
14
|
+
!packages/typescript-payers/.gitkeep
|
|
15
|
+
packages/typescript-claims/*
|
|
16
|
+
!packages/typescript-claims/README.md
|
|
17
|
+
!packages/typescript-claims/.gitkeep
|
|
18
|
+
# Internal per-service Python workspaces: src/ is regenerated; codegen_overlay/
|
|
19
|
+
# is tracked and applied before vendoring into packages/python/src/stedi_<product>/.
|
|
20
|
+
packages/python-payers/src/
|
|
21
|
+
packages/python-claims/src/
|
|
22
|
+
packages/python-payers/uv.lock
|
|
23
|
+
packages/python-claims/uv.lock
|
|
24
|
+
# Vendored generated sources inside the published facade packages.
|
|
25
|
+
packages/typescript/src/generated/
|
|
26
|
+
packages/python/src/stedi_payers/
|
|
27
|
+
packages/python/src/stedi_claims/
|
|
28
|
+
|
|
29
|
+
# Unified-wrapper registries: regenerated from scripts/unified/manifest.json
|
|
30
|
+
# by `just unified`.
|
|
31
|
+
packages/typescript/src/_registry.ts
|
|
32
|
+
packages/python/src/stedi/_registry.py
|
|
33
|
+
|
|
34
|
+
# Node
|
|
35
|
+
node_modules/
|
|
36
|
+
*.log
|
|
37
|
+
.npm/
|
|
38
|
+
.pnpm-store/
|
|
39
|
+
dist/
|
|
40
|
+
dist-cjs/
|
|
41
|
+
dist-es/
|
|
42
|
+
dist-types/
|
|
43
|
+
*.tsbuildinfo
|
|
44
|
+
|
|
45
|
+
# Python
|
|
46
|
+
.venv/
|
|
47
|
+
.venv-codegen/
|
|
48
|
+
__pycache__/
|
|
49
|
+
*.pyc
|
|
50
|
+
*.pyo
|
|
51
|
+
.mypy_cache/
|
|
52
|
+
.ruff_cache/
|
|
53
|
+
.pytest_cache/
|
|
54
|
+
.coverage
|
|
55
|
+
htmlcov/
|
|
56
|
+
*.egg-info/
|
|
57
|
+
|
|
58
|
+
# uv
|
|
59
|
+
.uv-cache/
|
|
60
|
+
|
|
61
|
+
# Tooling
|
|
62
|
+
.DS_Store
|
|
63
|
+
.idea/
|
|
64
|
+
.vscode/
|
|
65
|
+
!.vscode/extensions.json
|
|
66
|
+
.env
|
|
67
|
+
.env.local
|
|
68
|
+
.mise.local.toml
|
|
69
|
+
*.tgz
|
|
70
|
+
*.whl
|
stedi-0.0.1/LICENSE
ADDED
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for describing the origin of the Work and
|
|
141
|
+
reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Support. While redistributing the Work or
|
|
166
|
+
Derivative Works thereof, You may accept and charge a fee for
|
|
167
|
+
acceptance of support, warranty, indemnity, or other liability
|
|
168
|
+
obligations and/or rights consistent with this License. However,
|
|
169
|
+
in accepting such obligations, You may act only on Your own
|
|
170
|
+
behalf and on Your sole responsibility, not on behalf of any other
|
|
171
|
+
Contributor, and only if You agree to indemnify, defend, and hold
|
|
172
|
+
each Contributor harmless for any liability incurred by, or claims
|
|
173
|
+
asserted against, such Contributor by reason of your accepting any
|
|
174
|
+
such warranty or support.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
Copyright 2026 Stedi, Inc.
|
|
179
|
+
|
|
180
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
181
|
+
you may not use this file except in compliance with the License.
|
|
182
|
+
You may obtain a copy of the License at
|
|
183
|
+
|
|
184
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
185
|
+
|
|
186
|
+
Unless required by applicable law or agreed to in writing, software
|
|
187
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
188
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
189
|
+
implied. See the License for the specific language governing permissions
|
|
190
|
+
and limitations under the License.
|
stedi-0.0.1/PKG-INFO
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: stedi
|
|
3
|
+
Version: 0.0.1
|
|
4
|
+
Summary: The Stedi SDK for Python.
|
|
5
|
+
Project-URL: Homepage, https://www.stedi.com
|
|
6
|
+
Project-URL: Documentation, https://docs.stedi.com
|
|
7
|
+
Project-URL: Repository, https://github.com/Stedi/sdk
|
|
8
|
+
Project-URL: Source code, https://github.com/Stedi/sdk/tree/main/packages/python
|
|
9
|
+
Project-URL: Examples, https://github.com/Stedi/sdk/tree/main/examples/python
|
|
10
|
+
Project-URL: Issue tracker, https://github.com/Stedi/sdk/issues
|
|
11
|
+
Author: Stedi, Inc.
|
|
12
|
+
License: Apache-2.0
|
|
13
|
+
License-File: LICENSE
|
|
14
|
+
Classifier: Development Status :: 3 - Alpha
|
|
15
|
+
Classifier: Intended Audience :: Developers
|
|
16
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
17
|
+
Classifier: Programming Language :: Python :: 3
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
20
|
+
Classifier: Typing :: Typed
|
|
21
|
+
Requires-Python: >=3.12
|
|
22
|
+
Requires-Dist: smithy-aws-core<0.2,>=0.1
|
|
23
|
+
Requires-Dist: smithy-core<0.2,>=0.1
|
|
24
|
+
Requires-Dist: smithy-http[aiohttp]<0.2,>=0.1
|
|
25
|
+
Requires-Dist: smithy-json<0.3,>=0.2
|
|
26
|
+
Description-Content-Type: text/markdown
|
|
27
|
+
|
|
28
|
+
# stedi
|
|
29
|
+
|
|
30
|
+
The Stedi SDK for Python.
|
|
31
|
+
|
|
32
|
+
## Install
|
|
33
|
+
|
|
34
|
+
```sh
|
|
35
|
+
pip install stedi
|
|
36
|
+
# or
|
|
37
|
+
uv add stedi
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
## Usage
|
|
41
|
+
|
|
42
|
+
```python
|
|
43
|
+
from stedi import Stedi
|
|
44
|
+
from stedi.payers import SearchPayersInput
|
|
45
|
+
from stedi.claims import ClaimsCms1500SubmissionInput
|
|
46
|
+
|
|
47
|
+
# `STEDI_API_KEY` is read from os.environ automatically.
|
|
48
|
+
async with Stedi() as client:
|
|
49
|
+
# Payers
|
|
50
|
+
payers = await client.payers.search_payers(
|
|
51
|
+
SearchPayersInput(query="Aetna"),
|
|
52
|
+
)
|
|
53
|
+
|
|
54
|
+
# Claims (production key required for submission)
|
|
55
|
+
claim = await client.claims.claims_cms1500_submission(
|
|
56
|
+
ClaimsCms1500SubmissionInput(...),
|
|
57
|
+
)
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
Get an API key from [your Stedi account](https://www.stedi.com/app).
|
|
61
|
+
|
|
62
|
+
## More examples
|
|
63
|
+
|
|
64
|
+
[github.com/Stedi/sdk/tree/main/examples/python](https://github.com/Stedi/sdk/tree/main/examples/python)
|
|
65
|
+
|
|
66
|
+
## Package surface
|
|
67
|
+
|
|
68
|
+
`stedi` is the public Python package. Product clients are exposed through modules such as `stedi.payers` and `stedi.claims`; per-product generated workspaces are internal build inputs and are not published.
|
|
69
|
+
|
|
70
|
+
## Docs
|
|
71
|
+
|
|
72
|
+
- [docs.stedi.com](https://docs.stedi.com)
|
|
73
|
+
- [Source](https://github.com/Stedi/sdk)
|
|
74
|
+
- [Report an issue](https://github.com/Stedi/sdk/issues)
|
|
75
|
+
|
|
76
|
+
## License
|
|
77
|
+
|
|
78
|
+
Apache-2.0
|
stedi-0.0.1/README.md
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# stedi
|
|
2
|
+
|
|
3
|
+
The Stedi SDK for Python.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
pip install stedi
|
|
9
|
+
# or
|
|
10
|
+
uv add stedi
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Usage
|
|
14
|
+
|
|
15
|
+
```python
|
|
16
|
+
from stedi import Stedi
|
|
17
|
+
from stedi.payers import SearchPayersInput
|
|
18
|
+
from stedi.claims import ClaimsCms1500SubmissionInput
|
|
19
|
+
|
|
20
|
+
# `STEDI_API_KEY` is read from os.environ automatically.
|
|
21
|
+
async with Stedi() as client:
|
|
22
|
+
# Payers
|
|
23
|
+
payers = await client.payers.search_payers(
|
|
24
|
+
SearchPayersInput(query="Aetna"),
|
|
25
|
+
)
|
|
26
|
+
|
|
27
|
+
# Claims (production key required for submission)
|
|
28
|
+
claim = await client.claims.claims_cms1500_submission(
|
|
29
|
+
ClaimsCms1500SubmissionInput(...),
|
|
30
|
+
)
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
Get an API key from [your Stedi account](https://www.stedi.com/app).
|
|
34
|
+
|
|
35
|
+
## More examples
|
|
36
|
+
|
|
37
|
+
[github.com/Stedi/sdk/tree/main/examples/python](https://github.com/Stedi/sdk/tree/main/examples/python)
|
|
38
|
+
|
|
39
|
+
## Package surface
|
|
40
|
+
|
|
41
|
+
`stedi` is the public Python package. Product clients are exposed through modules such as `stedi.payers` and `stedi.claims`; per-product generated workspaces are internal build inputs and are not published.
|
|
42
|
+
|
|
43
|
+
## Docs
|
|
44
|
+
|
|
45
|
+
- [docs.stedi.com](https://docs.stedi.com)
|
|
46
|
+
- [Source](https://github.com/Stedi/sdk)
|
|
47
|
+
- [Report an issue](https://github.com/Stedi/sdk/issues)
|
|
48
|
+
|
|
49
|
+
## License
|
|
50
|
+
|
|
51
|
+
Apache-2.0
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["hatchling"]
|
|
3
|
+
build-backend = "hatchling.build"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "stedi"
|
|
7
|
+
version = "0.0.1"
|
|
8
|
+
description = "The Stedi SDK for Python."
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
license = { text = "Apache-2.0" }
|
|
11
|
+
authors = [{ name = "Stedi, Inc." }]
|
|
12
|
+
requires-python = ">=3.12"
|
|
13
|
+
classifiers = [
|
|
14
|
+
"Development Status :: 3 - Alpha",
|
|
15
|
+
"Intended Audience :: Developers",
|
|
16
|
+
"License :: OSI Approved :: Apache Software License",
|
|
17
|
+
"Programming Language :: Python :: 3",
|
|
18
|
+
"Programming Language :: Python :: 3.12",
|
|
19
|
+
"Programming Language :: Python :: 3.13",
|
|
20
|
+
"Typing :: Typed",
|
|
21
|
+
]
|
|
22
|
+
dependencies = [
|
|
23
|
+
"smithy_aws_core>=0.1,<0.2",
|
|
24
|
+
"smithy_core>=0.1,<0.2",
|
|
25
|
+
"smithy_http[aiohttp]>=0.1,<0.2",
|
|
26
|
+
"smithy_json>=0.2,<0.3",
|
|
27
|
+
]
|
|
28
|
+
|
|
29
|
+
[project.urls]
|
|
30
|
+
Homepage = "https://www.stedi.com"
|
|
31
|
+
Documentation = "https://docs.stedi.com"
|
|
32
|
+
Repository = "https://github.com/Stedi/sdk"
|
|
33
|
+
"Source code" = "https://github.com/Stedi/sdk/tree/main/packages/python"
|
|
34
|
+
Examples = "https://github.com/Stedi/sdk/tree/main/examples/python"
|
|
35
|
+
"Issue tracker" = "https://github.com/Stedi/sdk/issues"
|
|
36
|
+
|
|
37
|
+
[tool.hatch.build.targets.wheel]
|
|
38
|
+
packages = ["src/stedi", "src/stedi_payers", "src/stedi_claims"]
|
|
39
|
+
|
|
40
|
+
[tool.hatch.build.targets.sdist]
|
|
41
|
+
include = ["src/stedi", "src/stedi_payers", "src/stedi_claims", "README.md", "LICENSE"]
|
|
42
|
+
|
|
43
|
+
[tool.uv]
|
|
44
|
+
override-dependencies = [
|
|
45
|
+
"smithy_core>=0.1,<0.2",
|
|
46
|
+
"smithy_aws_core>=0.1,<0.2",
|
|
47
|
+
"smithy_http[aiohttp]>=0.1,<0.2",
|
|
48
|
+
]
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"""The Stedi SDK for Python.
|
|
2
|
+
|
|
3
|
+
from stedi import Stedi
|
|
4
|
+
from stedi.payers import SearchPayersInput
|
|
5
|
+
|
|
6
|
+
async with Stedi() as client:
|
|
7
|
+
result = await client.payers.search_payers(
|
|
8
|
+
SearchPayersInput(query="Aetna"),
|
|
9
|
+
)
|
|
10
|
+
"""
|
|
11
|
+
|
|
12
|
+
from __future__ import annotations
|
|
13
|
+
|
|
14
|
+
import os
|
|
15
|
+
from typing import Any
|
|
16
|
+
|
|
17
|
+
from stedi_claims import Claims as _Claims
|
|
18
|
+
from stedi_payers import Payers as _Payers
|
|
19
|
+
|
|
20
|
+
from . import claims as claims
|
|
21
|
+
from . import payers as payers
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
class Stedi:
|
|
25
|
+
"""The Stedi SDK client.
|
|
26
|
+
|
|
27
|
+
:param api_key: Your Stedi API key. If omitted, read from the
|
|
28
|
+
``STEDI_API_KEY`` environment variable.
|
|
29
|
+
:param max_attempts: Maximum number of attempts per request, including
|
|
30
|
+
the initial attempt. Default is ``3``. Pass ``1`` to disable retries.
|
|
31
|
+
:raises ValueError: If neither ``api_key`` nor ``STEDI_API_KEY`` is set.
|
|
32
|
+
"""
|
|
33
|
+
|
|
34
|
+
payers: _Payers
|
|
35
|
+
claims: _Claims
|
|
36
|
+
|
|
37
|
+
def __init__(
|
|
38
|
+
self,
|
|
39
|
+
*,
|
|
40
|
+
api_key: str | None = None,
|
|
41
|
+
max_attempts: int | None = None,
|
|
42
|
+
) -> None:
|
|
43
|
+
resolved = api_key if api_key is not None else os.environ.get("STEDI_API_KEY")
|
|
44
|
+
if not resolved:
|
|
45
|
+
raise ValueError(
|
|
46
|
+
"Stedi API key required. Pass `api_key=` to Stedi() or set "
|
|
47
|
+
"STEDI_API_KEY in the environment."
|
|
48
|
+
)
|
|
49
|
+
kwargs: dict[str, Any] = {"api_key": resolved}
|
|
50
|
+
if max_attempts is not None:
|
|
51
|
+
kwargs["max_attempts"] = max_attempts
|
|
52
|
+
self.payers = _Payers(**kwargs)
|
|
53
|
+
self.claims = _Claims(**kwargs)
|
|
54
|
+
|
|
55
|
+
async def aclose(self) -> None:
|
|
56
|
+
"""Close all underlying HTTP transports."""
|
|
57
|
+
await self.payers.aclose()
|
|
58
|
+
await self.claims.aclose()
|
|
59
|
+
|
|
60
|
+
async def __aenter__(self) -> Stedi:
|
|
61
|
+
return self
|
|
62
|
+
|
|
63
|
+
async def __aexit__(self, *exc_info: object) -> None:
|
|
64
|
+
await self.aclose()
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
__version__: str = "0.0.1"
|
|
68
|
+
|
|
69
|
+
__all__ = ["Stedi", "__version__", "claims", "payers"]
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"""Auto-generated by scripts/unified/generate.mjs from scripts/unified/manifest.json.
|
|
2
|
+
|
|
3
|
+
DO NOT EDIT. Regenerate via `just unified` (or `node scripts/unified/generate.mjs`).
|
|
4
|
+
"""
|
|
5
|
+
|
|
6
|
+
from __future__ import annotations
|
|
7
|
+
|
|
8
|
+
from stedi_claims import Claims as Claims
|
|
9
|
+
from stedi_payers import Payers as Payers
|
|
10
|
+
|
|
11
|
+
PRODUCTS: tuple[tuple[str, type], ...] = (
|
|
12
|
+
("claims", Claims),
|
|
13
|
+
("payers", Payers),
|
|
14
|
+
)
|
|
15
|
+
|
|
16
|
+
__all__ = [
|
|
17
|
+
"PRODUCTS",
|
|
18
|
+
"Claims",
|
|
19
|
+
"Payers",
|
|
20
|
+
]
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
"""Re-exports from ``stedi_claims``. ``from stedi.claims import ClaimsCms1500SubmissionInput`` works."""
|
|
2
|
+
|
|
3
|
+
from stedi_claims import (
|
|
4
|
+
Claims as Claims,
|
|
5
|
+
)
|
|
6
|
+
from stedi_claims import (
|
|
7
|
+
ClaimsCms1500SubmissionInput as ClaimsCms1500SubmissionInput,
|
|
8
|
+
)
|
|
9
|
+
from stedi_claims import (
|
|
10
|
+
ClaimsCms1500SubmissionOutput as ClaimsCms1500SubmissionOutput,
|
|
11
|
+
)
|
|
12
|
+
from stedi_claims import (
|
|
13
|
+
RetryStrategy as RetryStrategy,
|
|
14
|
+
)
|
|
15
|
+
from stedi_claims import (
|
|
16
|
+
SimpleRetryStrategy as SimpleRetryStrategy,
|
|
17
|
+
)
|
|
18
|
+
from stedi_claims.models import (
|
|
19
|
+
Address as Address,
|
|
20
|
+
)
|
|
21
|
+
from stedi_claims.models import (
|
|
22
|
+
Billing as Billing,
|
|
23
|
+
)
|
|
24
|
+
from stedi_claims.models import (
|
|
25
|
+
BillingProvider as BillingProvider,
|
|
26
|
+
)
|
|
27
|
+
from stedi_claims.models import (
|
|
28
|
+
Carrier as Carrier,
|
|
29
|
+
)
|
|
30
|
+
from stedi_claims.models import (
|
|
31
|
+
DatesOfService as DatesOfService,
|
|
32
|
+
)
|
|
33
|
+
from stedi_claims.models import (
|
|
34
|
+
Encounter as Encounter,
|
|
35
|
+
)
|
|
36
|
+
from stedi_claims.models import (
|
|
37
|
+
FederalTaxIdNumber as FederalTaxIdNumber,
|
|
38
|
+
)
|
|
39
|
+
from stedi_claims.models import (
|
|
40
|
+
Insured as Insured,
|
|
41
|
+
)
|
|
42
|
+
from stedi_claims.models import (
|
|
43
|
+
InsuredAddress as InsuredAddress,
|
|
44
|
+
)
|
|
45
|
+
from stedi_claims.models import (
|
|
46
|
+
InsuredDateOfBirthAndSex as InsuredDateOfBirthAndSex,
|
|
47
|
+
)
|
|
48
|
+
from stedi_claims.models import (
|
|
49
|
+
InsuredName as InsuredName,
|
|
50
|
+
)
|
|
51
|
+
from stedi_claims.models import (
|
|
52
|
+
OrganizationName as OrganizationName,
|
|
53
|
+
)
|
|
54
|
+
from stedi_claims.models import (
|
|
55
|
+
Patient as Patient,
|
|
56
|
+
)
|
|
57
|
+
from stedi_claims.models import (
|
|
58
|
+
PatientAddress as PatientAddress,
|
|
59
|
+
)
|
|
60
|
+
from stedi_claims.models import (
|
|
61
|
+
PatientDateOfBirthAndSex as PatientDateOfBirthAndSex,
|
|
62
|
+
)
|
|
63
|
+
from stedi_claims.models import (
|
|
64
|
+
PatientName as PatientName,
|
|
65
|
+
)
|
|
66
|
+
from stedi_claims.models import (
|
|
67
|
+
PersonName as PersonName,
|
|
68
|
+
)
|
|
69
|
+
from stedi_claims.models import (
|
|
70
|
+
ProceduresServicesOrSupplies as ProceduresServicesOrSupplies,
|
|
71
|
+
)
|
|
72
|
+
from stedi_claims.models import (
|
|
73
|
+
QualifiedNameOrganization as QualifiedNameOrganization,
|
|
74
|
+
)
|
|
75
|
+
from stedi_claims.models import (
|
|
76
|
+
QualifiedNamePerson as QualifiedNamePerson,
|
|
77
|
+
)
|
|
78
|
+
from stedi_claims.models import (
|
|
79
|
+
ServiceFacilityLocation as ServiceFacilityLocation,
|
|
80
|
+
)
|
|
81
|
+
from stedi_claims.models import (
|
|
82
|
+
ServiceLine as ServiceLine,
|
|
83
|
+
)
|
|
84
|
+
from stedi_claims.models import (
|
|
85
|
+
ServiceLineRenderingProvider as ServiceLineRenderingProvider,
|
|
86
|
+
)
|
|
87
|
+
from stedi_claims.models import (
|
|
88
|
+
Signature as Signature,
|
|
89
|
+
)
|
|
90
|
+
from stedi_claims.models import (
|
|
91
|
+
Submitter as Submitter,
|
|
92
|
+
)
|
|
93
|
+
|
|
94
|
+
__all__ = [
|
|
95
|
+
"Address",
|
|
96
|
+
"Billing",
|
|
97
|
+
"BillingProvider",
|
|
98
|
+
"Carrier",
|
|
99
|
+
"Claims",
|
|
100
|
+
"ClaimsCms1500SubmissionInput",
|
|
101
|
+
"ClaimsCms1500SubmissionOutput",
|
|
102
|
+
"DatesOfService",
|
|
103
|
+
"Encounter",
|
|
104
|
+
"FederalTaxIdNumber",
|
|
105
|
+
"Insured",
|
|
106
|
+
"InsuredAddress",
|
|
107
|
+
"InsuredDateOfBirthAndSex",
|
|
108
|
+
"InsuredName",
|
|
109
|
+
"OrganizationName",
|
|
110
|
+
"Patient",
|
|
111
|
+
"PatientAddress",
|
|
112
|
+
"PatientDateOfBirthAndSex",
|
|
113
|
+
"PatientName",
|
|
114
|
+
"PersonName",
|
|
115
|
+
"ProceduresServicesOrSupplies",
|
|
116
|
+
"QualifiedNameOrganization",
|
|
117
|
+
"QualifiedNamePerson",
|
|
118
|
+
"RetryStrategy",
|
|
119
|
+
"ServiceFacilityLocation",
|
|
120
|
+
"ServiceLine",
|
|
121
|
+
"ServiceLineRenderingProvider",
|
|
122
|
+
"Signature",
|
|
123
|
+
"SimpleRetryStrategy",
|
|
124
|
+
"Submitter",
|
|
125
|
+
]
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"""Re-exports from ``stedi_payers``. ``from stedi.payers import SearchPayersInput`` works."""
|
|
2
|
+
|
|
3
|
+
from stedi_payers import (
|
|
4
|
+
Payers as Payers,
|
|
5
|
+
)
|
|
6
|
+
from stedi_payers import (
|
|
7
|
+
RetryStrategy as RetryStrategy,
|
|
8
|
+
)
|
|
9
|
+
from stedi_payers import (
|
|
10
|
+
SearchPayersInput as SearchPayersInput,
|
|
11
|
+
)
|
|
12
|
+
from stedi_payers import (
|
|
13
|
+
SearchPayersOutput as SearchPayersOutput,
|
|
14
|
+
)
|
|
15
|
+
from stedi_payers import (
|
|
16
|
+
SimpleRetryStrategy as SimpleRetryStrategy,
|
|
17
|
+
)
|
|
18
|
+
|
|
19
|
+
__all__ = [
|
|
20
|
+
"Payers",
|
|
21
|
+
"RetryStrategy",
|
|
22
|
+
"SearchPayersInput",
|
|
23
|
+
"SearchPayersOutput",
|
|
24
|
+
"SimpleRetryStrategy",
|
|
25
|
+
]
|
|
File without changes
|