synmax-api-python-client 4.4.0__py3-none-any.whl → 4.6.0__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.
- synmax/hyperion/v4/hyperion_client.pyi +2 -2
- synmax/hyperion/v4/openapi.yaml +213 -75
- synmax/leviaton/__init__.py +0 -0
- synmax/leviaton/v1/__init__.py +5 -0
- synmax/leviaton/v1/leviaton_client.py +36 -0
- synmax/leviaton/v1/leviaton_client.pyi +89 -0
- synmax/leviaton/v1/openapi.yaml +3707 -0
- {synmax_api_python_client-4.4.0.dist-info → synmax_api_python_client-4.6.0.dist-info}/METADATA +1 -1
- {synmax_api_python_client-4.4.0.dist-info → synmax_api_python_client-4.6.0.dist-info}/RECORD +12 -6
- test/ip_rate_example.py +61 -0
- {synmax_api_python_client-4.4.0.dist-info → synmax_api_python_client-4.6.0.dist-info}/WHEEL +0 -0
- {synmax_api_python_client-4.4.0.dist-info → synmax_api_python_client-4.6.0.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
from typing import Literal, Union
|
|
2
|
+
from synmax.openapi.client import Result
|
|
3
|
+
from datetime import date
|
|
4
|
+
class LeviatonApiClient:
|
|
5
|
+
def countries(self,ids: list[str] = ...,names: list[str] = ...,polygons: list[list[list[float]]] = ...,unrefcodes: list[str] = ...) -> Result:
|
|
6
|
+
"""Returns a list of ISO 3166 country names, ISO 3166 Alpha-2 country codes, and the countries polygons including their EEZ (except United States of America -> USA). Any of these values can be used to narrow down API requests on other endpoints."""
|
|
7
|
+
...
|
|
8
|
+
def forecast_run_at_timestamps(self) -> Result:
|
|
9
|
+
"""Returns the distinct timestamps and the IDs of all previous forecast runs"""
|
|
10
|
+
...
|
|
11
|
+
def healthcheck(self) -> Result:
|
|
12
|
+
"""Returns the health status of the API"""
|
|
13
|
+
...
|
|
14
|
+
def regions(self,ids: list[str] = ...,include_polygons: bool = ...,names: list[str] = ...,polygons: list[list[list[float]]] = ...) -> Result:
|
|
15
|
+
"""Returns a list of polygons commonly used regions in an LNG context. These polygons can be used to narrow down results on other endpoints. Example polygons are "JKTC"
|
|
16
|
+
"North West Europe", "Europe w/o Norway", "Europe w. Turkey", "North America",
|
|
17
|
+
"South America", "Middle East", "West Africa", "South East Asia", "South Asia",
|
|
18
|
+
"Asia w/o Middle East"
|
|
19
|
+
"""
|
|
20
|
+
...
|
|
21
|
+
def terminals(self,category: Literal['Liquefaction', 'Regasification'] = ...,countries: list[str] = ...,ids: list[str] = ...,names: list[str] = ...,polygons: list[list[list[float]]] = ...,regions: list[str] = ...,unrefcodes: list[str] = ...) -> Result:
|
|
22
|
+
"""Returns a list of detailed information about all liquefaction and regasification LNG terminals."""
|
|
23
|
+
...
|
|
24
|
+
def transactions(self,destination_countries: list[str] = ...,destination_country_codes: list[str] = ...,destination_polygons: list[list[list[float]]] = ...,destination_regions: list[str] = ...,destination_terminals: list[str] = ...,forecast_run_at: str = ...,from_timestamp: str = ...,imos: list[int] = ...,origin_countries: list[str] = ...,origin_country_codes: list[str] = ...,origin_polygons: list[list[list[float]]] = ...,origin_regions: list[str] = ...,origin_terminal_ids: list[str] = ...,origin_terminals: list[str] = ...,to_timestamp: str = ...,transaction_type: Literal['loading', 'offloading'] = ...) -> Result:
|
|
25
|
+
"""Returns a detailed list of historic and forecasted future transactions, including the volume, vessels, and terminals involved. The data is refreshed every hour."""
|
|
26
|
+
...
|
|
27
|
+
def transactions_details(self,destination_countries: list[str] = ...,destination_country_codes: list[str] = ...,destination_polygons: list[list[list[float]]] = ...,destination_regions: list[str] = ...,destination_terminals: list[str] = ...,forecast_run_at: str = ...,from_timestamp: str = ...,imos: list[int] = ...,origin_countries: list[str] = ...,origin_country_codes: list[str] = ...,origin_polygons: list[list[list[float]]] = ...,origin_regions: list[str] = ...,origin_terminal_ids: list[str] = ...,origin_terminals: list[str] = ...,to_timestamp: str = ...,transaction_type: Literal['loading', 'offloading'] = ...) -> Result:
|
|
28
|
+
"""Returns a list of transaction details with multi-step ahead predicted transactions incl. prediction scores. The data is refreshed every hour."""
|
|
29
|
+
...
|
|
30
|
+
def transactions_forecast(self,destination_countries: list[str] = ...,destination_country_codes: list[str] = ...,destination_polygons: list[list[list[float]]] = ...,destination_regions: list[str] = ...,destination_terminals: list[str] = ...,forecast_run_at: str = ...,imos: list[int] = ...,origin_countries: list[str] = ...,origin_country_codes: list[str] = ...,origin_polygons: list[list[list[float]]] = ...,origin_regions: list[str] = ...,origin_terminal_ids: list[str] = ...,origin_terminals: list[str] = ...,transaction_type: Literal['loading', 'offloading'] = ...) -> Result:
|
|
31
|
+
"""Returns a list of forecasted transactions, including the volume, vessels, and terminals involved. The forecasts are refreshed on an hourly basis."""
|
|
32
|
+
...
|
|
33
|
+
def transactions_forecast_details(self,destination_countries: list[str] = ...,destination_country_codes: list[str] = ...,destination_polygons: list[list[list[float]]] = ...,destination_regions: list[str] = ...,destination_terminals: list[str] = ...,forecast_run_at: str = ...,imos: list[int] = ...,origin_countries: list[str] = ...,origin_country_codes: list[str] = ...,origin_polygons: list[list[list[float]]] = ...,origin_regions: list[str] = ...,origin_terminal_ids: list[str] = ...,origin_terminals: list[str] = ...,transaction_type: Literal['loading', 'offloading'] = ...) -> Result:
|
|
34
|
+
"""Returns a list of forecasted transactions, including a detailed route prediction breakdown. The forecasts are refreshed on an hourly basis."""
|
|
35
|
+
...
|
|
36
|
+
def transactions_forecast_history(self,destination_countries: list[str] = ...,destination_country_codes: list[str] = ...,destination_polygons: list[list[list[float]]] = ...,destination_regions: list[str] = ...,destination_terminals: list[str] = ...,forecast_run_at: str = ...,imos: list[int] = ...,origin_countries: list[str] = ...,origin_country_codes: list[str] = ...,origin_polygons: list[list[list[float]]] = ...,origin_regions: list[str] = ...,origin_terminal_ids: list[str] = ...,origin_terminals: list[str] = ...,transaction_type: Literal['loading', 'offloading'] = ...) -> Result:
|
|
37
|
+
"""Returns historic versions of Leviaton's forecasted transactions, including the volume, vessels, and terminals involved. Fetch a *forecast_run_at_timestamp* using /forecast_run_at_timestamps endpoints and use that date to view a historic version of our forecasted transactions."""
|
|
38
|
+
...
|
|
39
|
+
def transactions_forecast_history_details(self,destination_countries: list[str] = ...,destination_country_codes: list[str] = ...,destination_polygons: list[list[list[float]]] = ...,destination_regions: list[str] = ...,destination_terminals: list[str] = ...,forecast_run_at: str = ...,imos: list[int] = ...,origin_countries: list[str] = ...,origin_country_codes: list[str] = ...,origin_polygons: list[list[list[float]]] = ...,origin_regions: list[str] = ...,origin_terminal_ids: list[str] = ...,origin_terminals: list[str] = ...,transaction_type: Literal['loading', 'offloading'] = ...) -> Result:
|
|
40
|
+
"""Returns a version of Leviaton's detailed history of forecasted transactions, including a detailed route prediction breakdown. Fetch a *forecast_run_at_timestamp* using /forecast_run_at_timestamps endpoints and use that date to view a historic version of our forecasted transactions."""
|
|
41
|
+
...
|
|
42
|
+
def transactions_history(self,destination_countries: list[str] = ...,destination_country_codes: list[str] = ...,destination_polygons: list[list[list[float]]] = ...,destination_regions: list[str] = ...,destination_terminals: list[str] = ...,forecast_run_at: str = ...,from_timestamp: str = ...,imos: list[int] = ...,origin_countries: list[str] = ...,origin_country_codes: list[str] = ...,origin_polygons: list[list[list[float]]] = ...,origin_regions: list[str] = ...,origin_terminal_ids: list[str] = ...,origin_terminals: list[str] = ...,to_timestamp: str = ...,transaction_type: Literal['loading', 'offloading'] = ...) -> Result:
|
|
43
|
+
"""Returns a history of transactions, including the volume, vessels, and terminals involved"""
|
|
44
|
+
...
|
|
45
|
+
def vessels(self,imos: list[int] = ...,mmsis: list[int] = ...,names: list[str] = ...,polygons: list[list[list[float]]] = ...) -> Result:
|
|
46
|
+
"""Returns detailed information about vessels, their position, and next most likely destination."""
|
|
47
|
+
...
|
|
48
|
+
def vessels_details(self,imos: list[int] = ...,mmsis: list[int] = ...,names: list[str] = ...,polygons: list[list[list[float]]] = ...) -> Result:
|
|
49
|
+
"""Returns detailed information about vessels, their position, and detailed predictions incl. prediction scores about their next destination."""
|
|
50
|
+
...
|
|
51
|
+
def vessels_history(self,from_timestamp: str = ...,imos: list[int] = ...,mmsis: list[int] = ...,names: list[str] = ...,polygons: list[list[list[float]]] = ...,to_timestamp: str = ...) -> Result:
|
|
52
|
+
"""Returns detailed information about vessel activity and their position history."""
|
|
53
|
+
...
|
|
54
|
+
def volume_flows(self,destination_countries: list[str] = ...,destination_country_codes: list[str] = ...,destination_polygons: list[list[list[float]]] = ...,destination_regions: list[str] = ...,destination_terminal_ids: list[str] = ...,destination_terminals: list[str] = ...,forecast_run_at: str = ...,from_timestamp: str = ...,origin_countries: list[str] = ...,origin_country_codes: list[str] = ...,origin_polygons: list[list[list[float]]] = ...,origin_regions: list[str] = ...,origin_terminal_ids: list[str] = ...,origin_terminals: list[str] = ...,to_timestamp: str = ...,transaction_type: Literal['loading', 'offloading'] = ...) -> Result:
|
|
55
|
+
"""Returns LNG volumes transferred to specified terminals or countries over a given time period.
|
|
56
|
+
The volume_flows endpoint calculates the LNG volume transferred to a set of destination terminals/countries (and optionally from a set of origin terminals/countries) for a given time range. For historical time periods this is simply the observed number of transactions that occurred at the destinations.
|
|
57
|
+
For future time periods, forecasted volumes are calculated. Forecasted volumes are calculated using the route_score_weighted_volume field from the transactions/forecast endpoint. The route_score_weighted_volume is the volume of a potential transaction multiplied by the likelihood of that transaction occurring. Forecast volumes are the sum of the route_score_weighted_volume for the destinations in the given time period. Note that this means partial transactions are included in the forecast volume. Uncertainties in the forecast volume are estimated using our uncertainty in the forecast transaction timestamp.
|
|
58
|
+
|
|
59
|
+
- Historical data:
|
|
60
|
+
|
|
61
|
+
- Shows actual observed transaction volumes.
|
|
62
|
+
|
|
63
|
+
- Forecasted data:
|
|
64
|
+
|
|
65
|
+
- Predicts future volumes based on:
|
|
66
|
+
|
|
67
|
+
- Potential vessel arrivals and their cargo volumes
|
|
68
|
+
- Probability of each arrival occurring
|
|
69
|
+
- Arrival time uncertainties
|
|
70
|
+
"""
|
|
71
|
+
...
|
|
72
|
+
def volume_flows_history(self,destination_countries: list[str] = ...,destination_country_codes: list[str] = ...,destination_polygons: list[list[list[float]]] = ...,destination_regions: list[str] = ...,destination_terminals: list[str] = ...,from_timestamp: str = ...,origin_countries: list[str] = ...,origin_country_codes: list[str] = ...,origin_polygons: list[list[list[float]]] = ...,origin_regions: list[str] = ...,origin_terminals: list[str] = ...,to_timestamp: str = ...,transaction_type: Literal['loading', 'offloading'] = ...) -> Result:
|
|
73
|
+
"""Returns historic versions of Leviaton's LNG volumes transferred to specified terminals or countries over a given time period.
|
|
74
|
+
The volume_flows endpoint calculates the LNG volume transferred to a set of destination terminals/countries (and optionally from a set of origin terminals/countries) for a given time range. For historical time periods this is simply the observed number of transactions that occurred at the destinations.
|
|
75
|
+
For future time periods, forecasted volumes are calculated. Forecasted volumes are calculated using the route_score_weighted_volume field from the transactions/forecast endpoint. The route_score_weighted_volume is the volume of a potential transaction multiplied by the likelihood of that transaction occurring. Forecast volumes are the sum of the route_score_weighted_volume for the destinations in the given time period. Note that this means partial transactions are included in the forecast volume. Uncertainties in the forecast volume are estimated using our uncertainty in the forecast transaction timestamp.
|
|
76
|
+
|
|
77
|
+
- Historical data:
|
|
78
|
+
|
|
79
|
+
- Shows actual observed transaction volumes.
|
|
80
|
+
|
|
81
|
+
- Forecasted data:
|
|
82
|
+
|
|
83
|
+
- Predicts future volumes based on:
|
|
84
|
+
|
|
85
|
+
- Potential vessel arrivals and their cargo volumes
|
|
86
|
+
- Probability of each arrival occurring
|
|
87
|
+
- Arrival time uncertainties
|
|
88
|
+
"""
|
|
89
|
+
...
|