Metadata-Version: 2.1
Name: ocean-spark-connect
Version: 0.3.1
Summary: Spark Connect adapter for Ocean Spark
Author: Sigmar Stefansson
Author-email: sigmar@netapp.com
Requires-Python: >=3.9,<4.0
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Requires-Dist: googleapis-common-protos (>=1.60.0,<2.0.0)
Requires-Dist: grpcio (>=1.57.0,<2.0.0)
Requires-Dist: grpcio-status (>=1.57.0,<2.0.0)
Requires-Dist: pandas (>=2.0.3,<3.0.0)
Requires-Dist: pyarrow (>=13.0.0,<14.0.0)
Requires-Dist: pyspark (>=3.5.0,<4.0.0)
Requires-Dist: websockets (>=11.0.3,<12.0.0)
Description-Content-Type: text/markdown

## Wrapper to create Spark Connect session for Spark Applications in Ocean

```
from ocean_spark_connect.ocean_spark_session import OceanSparkSession

spark = OceanSparkSession.Builder().cluster_id("osc-cluster").appid("appid").profile("default").getOrCreate()
spark.sql("select random()").show()
spark.stop()
```

### Options for OceanSparkSession.Builder with and without default values

In addition to the existing SparkSession.Builder option, the following options are available:

* token
* profile
* appid
* account_id
* cluster_id
* host = "api.spotinst.io"
* port = "15002"
* bind_address = "0.0.0.0"
