Skip to content

Commit

Permalink
Merge branch 'master' into 1212-update-python-docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jonahkaye committed Feb 13, 2024
2 parents 1f84f97 + f4d4674 commit cbf2fe9
Show file tree
Hide file tree
Showing 140 changed files with 5,917 additions and 366 deletions.
29 changes: 25 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@

# Metriport Python Library

[![pypi](https://img.shields.io/pypi/v/fern-metriport.svg)](https://pypi.python.org/pypi/fern-metriport)
[![fern shield](https://img.shields.io/badge/%F0%9F%8C%BF-SDK%20generated%20by%20Fern-brightgreen)](https://github.com/fern-api/fern)
[![fern shield](https://img.shields.io/badge/%F0%9F%8C%BF-SDK%20generated%20by%20Fern-brightgreen)](https://buildwithfern.com/?utm_source=metriport/metriport-python/readme)

## Documentation

Expand All @@ -13,9 +12,9 @@ API reference documentation is available [here](https://docs.metriport.com/home/
Add this dependency to your project's build file:

```bash
pip install fern-metriport
pip install metriport
# or
poetry add fern-metriport
poetry add metriport
```

## Usage
Expand Down Expand Up @@ -117,3 +116,25 @@ This SDK is in beta, and there may be breaking changes between versions without
While we value open-source contributions to this SDK, this library is generated programmatically. Additions made directly to this library would have to be moved over to our generation code, otherwise they would be overwritten upon the next generated release. Feel free to open a PR as a proof of concept, but know that we will not be able to merge it as-is. We suggest opening an issue first to discuss with us!

On the other hand, contributions to the README are always very welcome!

##

```
,▄,
▄▓███▌
▄▀╙ ▀▓▀ ²▄
▄└ ╙▌
,▀ ╨▄
▌ ║
,▓██▄ ╔███▄
╙███▌ ▀███▀
▀▄
▀╗▄ ,▄
'╙▀▀▀▀▀╙''
by Metriport Inc.
```
26 changes: 13 additions & 13 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "metriport"
version = "8.0.0-alpha1"
version = "8.0.0-beta"
description = ""
readme = "README.md"
authors = []
Expand Down
4 changes: 2 additions & 2 deletions src/metriport/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This file was auto-generated by Fern from our API Definition.

from .resources import Address, UsState, commons, medical
from .resources import Address, UsState, commons, fhir, medical
from .environment import MetriportEnvironment

__all__ = ["Address", "MetriportEnvironment", "UsState", "commons", "medical"]
__all__ = ["Address", "MetriportEnvironment", "UsState", "commons", "fhir", "medical"]
2 changes: 1 addition & 1 deletion src/metriport/core/client_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def get_headers(self) -> typing.Dict[str, str]:
headers: typing.Dict[str, str] = {
"X-Fern-Language": "Python",
"X-Fern-SDK-Name": "metriport",
"X-Fern-SDK-Version": "8.0.0-alpha1",
"X-Fern-SDK-Version": "8.0.0-beta",
}
headers["X-API-Key"] = self.api_key
return headers
Expand Down
4 changes: 2 additions & 2 deletions src/metriport/resources/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This file was auto-generated by Fern from our API Definition.

from . import commons, medical
from . import commons, fhir, medical
from .commons import Address, UsState

__all__ = ["Address", "UsState", "commons", "medical"]
__all__ = ["Address", "UsState", "commons", "fhir", "medical"]
2 changes: 1 addition & 1 deletion src/metriport/resources/commons/types/address.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class Address(pydantic.BaseModel):
city: str = pydantic.Field(description="The city.")
state: UsState = pydantic.Field(description="The 2 letter state acronym, for example `CA`")
zip: str = pydantic.Field(description="Zip must be a string consisting of 5 numbers.")
country: str = pydantic.Field(description="Defaults to “USA”")
country: typing.Optional[str] = pydantic.Field(description="Defaults to “USA”")

def json(self, **kwargs: typing.Any) -> str:
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
Expand Down
183 changes: 183 additions & 0 deletions src/metriport/resources/fhir/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,183 @@
# This file was auto-generated by Fern from our API Definition.

from .types import (
Address,
AddressType,
AddressUse,
Age,
AgeComparator,
Annotation,
Attachment,
Base64Binary,
BaseResource,
Bundle,
BundleEntry,
BundleLink,
BundleRequest,
BundleRequestMethod,
BundleResponse,
BundleSearch,
BundleSearchMode,
BundleType,
Canonical,
Code,
CodeableConcept,
Coding,
ContactDetail,
ContactPoint,
ContactPointSystem,
ContactPointUse,
Contributor,
ContributorType,
Count,
CountComparator,
DataRequirement,
DataRequirementCodeFilter,
DataRequirementDateFilter,
DataRequirementSort,
DataRequirementSortDirection,
DateTime,
Decimal,
Distance,
DistanceComparator,
DocumentReference,
DocumentReferenceContent,
DocumentReferenceContext,
DocumentReferenceRelatesTo,
DocumentReferenceRelatesToCode,
DocumentReferenceStatus,
Dosage,
DosageDoseAndRate,
Duration,
DurationComparator,
Expression,
ExpressionLanguage,
Extension,
HumanName,
HumanNameUse,
Id,
Identifier,
IdentifierUse,
Instant,
Markdown,
Meta,
Money,
Narrative,
NarrativeStatus,
ParameterDefinition,
Period,
PositiveInt,
Quantity,
QuantityComparator,
Range,
Ratio,
Reference,
RelatedArtifact,
RelatedArtifactType,
SampledData,
Signature,
Time,
Timing,
TimingRepeat,
TimingRepeatDurationUnit,
TimingRepeatPeriodUnit,
TimingRepeatWhenItem,
TriggerDefinition,
TriggerDefinitionType,
UnsignedInt,
Uri,
Url,
UsageContext,
Xhtml,
)

__all__ = [
"Address",
"AddressType",
"AddressUse",
"Age",
"AgeComparator",
"Annotation",
"Attachment",
"Base64Binary",
"BaseResource",
"Bundle",
"BundleEntry",
"BundleLink",
"BundleRequest",
"BundleRequestMethod",
"BundleResponse",
"BundleSearch",
"BundleSearchMode",
"BundleType",
"Canonical",
"Code",
"CodeableConcept",
"Coding",
"ContactDetail",
"ContactPoint",
"ContactPointSystem",
"ContactPointUse",
"Contributor",
"ContributorType",
"Count",
"CountComparator",
"DataRequirement",
"DataRequirementCodeFilter",
"DataRequirementDateFilter",
"DataRequirementSort",
"DataRequirementSortDirection",
"DateTime",
"Decimal",
"Distance",
"DistanceComparator",
"DocumentReference",
"DocumentReferenceContent",
"DocumentReferenceContext",
"DocumentReferenceRelatesTo",
"DocumentReferenceRelatesToCode",
"DocumentReferenceStatus",
"Dosage",
"DosageDoseAndRate",
"Duration",
"DurationComparator",
"Expression",
"ExpressionLanguage",
"Extension",
"HumanName",
"HumanNameUse",
"Id",
"Identifier",
"IdentifierUse",
"Instant",
"Markdown",
"Meta",
"Money",
"Narrative",
"NarrativeStatus",
"ParameterDefinition",
"Period",
"PositiveInt",
"Quantity",
"QuantityComparator",
"Range",
"Ratio",
"Reference",
"RelatedArtifact",
"RelatedArtifactType",
"SampledData",
"Signature",
"Time",
"Timing",
"TimingRepeat",
"TimingRepeatDurationUnit",
"TimingRepeatPeriodUnit",
"TimingRepeatWhenItem",
"TriggerDefinition",
"TriggerDefinitionType",
"UnsignedInt",
"Uri",
"Url",
"UsageContext",
"Xhtml",
]
Loading

0 comments on commit cbf2fe9

Please sign in to comment.