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
{synmax_api_python_client-4.4.0.dist-info → synmax_api_python_client-4.6.0.dist-info}/RECORD
RENAMED
|
@@ -15,18 +15,24 @@ synmax/hyperion/process_api.py,sha256=y3sNiM2X_h-QVRRsrW4VmkABfGKxPqqZGMiYNrpRrK
|
|
|
15
15
|
synmax/hyperion/process_inputs.py,sha256=Dij1FTzdyv0yGvwQNYZ9yJTJ6vBf-9B4P2zmJeCo6UU,10796
|
|
16
16
|
synmax/hyperion/v4/__init__.py,sha256=VpXU-_FP836dXUDcUFYr-0y0-ZrSM8aCtGE97Z2qbS4,55
|
|
17
17
|
synmax/hyperion/v4/hyperion_client.py,sha256=Bc_wOLX_D7IRFnqzMBMJYqHDKbugWW3cNygoj_g7a5o,869
|
|
18
|
-
synmax/hyperion/v4/hyperion_client.pyi,sha256=
|
|
19
|
-
synmax/hyperion/v4/openapi.yaml,sha256=
|
|
18
|
+
synmax/hyperion/v4/hyperion_client.pyi,sha256=qjg_aXHVk7op9pCimGdCsP0-Bay3zcRjOPgK94lK5-0,8192
|
|
19
|
+
synmax/hyperion/v4/openapi.yaml,sha256=IzdHkZcRtduASgnYXY8Mjg6N1__6VLZmFIOT2pa-wLQ,57930
|
|
20
|
+
synmax/leviaton/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
21
|
+
synmax/leviaton/v1/__init__.py,sha256=UgUccQqpTDS0qB20AyHb1ZCdoJvgjeWK1ZbEg2b2I6Y,93
|
|
22
|
+
synmax/leviaton/v1/leviaton_client.py,sha256=DpSOeUQNUrXm_J068T23uOlyPL_m4keKVZ21GB0RnxY,917
|
|
23
|
+
synmax/leviaton/v1/leviaton_client.pyi,sha256=SbbRdd1Z10vxlGUq5xOT2GoYYj9PJ41nVFMFG2XN1OY,12085
|
|
24
|
+
synmax/leviaton/v1/openapi.yaml,sha256=AJHZ--ix-7XC_3-uk7mFXtIovTkRpH_rFo8AqaBtC-I,116258
|
|
20
25
|
synmax/openapi/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
21
26
|
synmax/openapi/client.py,sha256=fe6npo842Z_9ar2SX7wTFz9Y7Jv9vN03zTumpnb1y64,8600
|
|
22
27
|
synmax/openapi/utils.py,sha256=q6PsmUT0D58_AdOCM0ZNw1CrveiYVF4IQN4J6ticZ4Q,3689
|
|
23
28
|
synmax/theia/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
24
29
|
test/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
30
|
+
test/ip_rate_example.py,sha256=UQCrYDYH7mtFCet9xCJJNfT-3G5v_LKdeioEovSwVM4,1634
|
|
25
31
|
test/test_api_client.py,sha256=HFWCu_xBgqQXc9p6k6YmP2gVrdCFwuhoDVqlxpN1Yoc,4713
|
|
26
32
|
test/test_hyperion_client.py,sha256=aCb4bMBXWofa82MInXoU9tJ5wWsg5sBRv7B_CHvkrcg,1380
|
|
27
33
|
test/test_hyperion_e2e.py,sha256=BPhZH7eVQZSsFcvPdonKjmLahnfsLy37Z2DHp0LGeHc,6247
|
|
28
34
|
test/test_hyperion_helpers.py,sha256=R0G7oqKaoz6jLRACODJ1Cf2gA0gaMPQhOZRjKp4a6-s,2006
|
|
29
|
-
synmax_api_python_client-4.
|
|
30
|
-
synmax_api_python_client-4.
|
|
31
|
-
synmax_api_python_client-4.
|
|
32
|
-
synmax_api_python_client-4.
|
|
35
|
+
synmax_api_python_client-4.6.0.dist-info/METADATA,sha256=21v29ZddT52lJAwLbZ4WD5qG1Fe1golxI2h139y0qNI,4860
|
|
36
|
+
synmax_api_python_client-4.6.0.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
|
|
37
|
+
synmax_api_python_client-4.6.0.dist-info/top_level.txt,sha256=SAjmDfHlJzUmjoGCT1SnS4qGSLN_ZF-p58UN1yW5kB0,17
|
|
38
|
+
synmax_api_python_client-4.6.0.dist-info/RECORD,,
|
test/ip_rate_example.py
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import plotly.express as px
|
|
2
|
+
import plotly.figure_factory as ff
|
|
3
|
+
|
|
4
|
+
from synmax.hyperion import HyperionApiClient, ApiPayload, add_daily, get_fips
|
|
5
|
+
|
|
6
|
+
"""Install SynMax Python Client"""
|
|
7
|
+
|
|
8
|
+
# pip install --upgrade synmax-api-python-client
|
|
9
|
+
|
|
10
|
+
"""Install other Dependencies"""
|
|
11
|
+
|
|
12
|
+
# pip install plotly-geo plotly geopandas==0.8.1 pyshp shapely
|
|
13
|
+
|
|
14
|
+
"""Query the production data"""
|
|
15
|
+
|
|
16
|
+
access_token = "************************************"
|
|
17
|
+
client = HyperionApiClient(access_token=access_token)
|
|
18
|
+
|
|
19
|
+
payload = ApiPayload(
|
|
20
|
+
start_date="2021-01-01", end_date="2022-09-01", state_code="TX", production_month=2
|
|
21
|
+
)
|
|
22
|
+
df = client.production_by_well(payload)
|
|
23
|
+
# df.to_csv(r'C:\Users\eric\Desktop\TEMP\prod_ip.csv', index=False)
|
|
24
|
+
# df = pd.read_csv(r'C:\Users\eric\Desktop\TEMP\prod_ip.csv')
|
|
25
|
+
|
|
26
|
+
"""convert to mcf/d"""
|
|
27
|
+
df = add_daily(df)
|
|
28
|
+
|
|
29
|
+
"""examine county-level histograms"""
|
|
30
|
+
|
|
31
|
+
fig = px.histogram(df[df.county == "Midland"], x="gas_daily")
|
|
32
|
+
fig.show()
|
|
33
|
+
|
|
34
|
+
"""calculate average per county"""
|
|
35
|
+
|
|
36
|
+
county_df = (
|
|
37
|
+
df[["state_ab", "county", "gas_daily"]]
|
|
38
|
+
.groupby(["state_ab", "county"], as_index=False)
|
|
39
|
+
.mean()
|
|
40
|
+
)
|
|
41
|
+
|
|
42
|
+
"""Get FIPS code Lookup Table"""
|
|
43
|
+
|
|
44
|
+
fips_df = get_fips()
|
|
45
|
+
|
|
46
|
+
"""merge fips_df with county_df"""
|
|
47
|
+
county_df = county_df.merge(
|
|
48
|
+
fips_df[fips_df.state_ab == "TX"], how="right", on=["state_ab", "county"]
|
|
49
|
+
)
|
|
50
|
+
county_df["gas_daily"] = county_df["gas_daily"].fillna(0)
|
|
51
|
+
|
|
52
|
+
"""Create county map"""
|
|
53
|
+
|
|
54
|
+
fig = ff.create_choropleth(
|
|
55
|
+
fips=county_df.fips.tolist(),
|
|
56
|
+
values=county_df.gas_daily.tolist(),
|
|
57
|
+
county_outline={"color": "rgb(255,255,255)", "width": 0.5},
|
|
58
|
+
scope=["TX"],
|
|
59
|
+
binning_endpoints=[75, 125, 250, 500, 1000, 2000, 4000, 8000, 16000, 32000],
|
|
60
|
+
)
|
|
61
|
+
fig.show()
|
|
File without changes
|
{synmax_api_python_client-4.4.0.dist-info → synmax_api_python_client-4.6.0.dist-info}/top_level.txt
RENAMED
|
File without changes
|