Metadata-Version: 2.3
Name: odp-sdk
Version: 0.27.24
Summary: ODP Python SDK
License: MIT
Author: Thomas Li Fredriksen
Author-email: thomas.fredriksen@oceandata.earth
Requires-Python: >=3.9.5,<4.0.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Requires-Dist: cryptography (>=44.0.1,<45.0.0)
Requires-Dist: geojson (>=3.1.0,<4.0.0)
Requires-Dist: jsonschema (>=4.21.1,<5.0.0)
Requires-Dist: msal (>=1.24.1,<2.0.0)
Requires-Dist: msal-extensions (>=1.1.0,<2.0.0)
Requires-Dist: pandas (>=2.1.4,<3.0.0)
Requires-Dist: pyarrow (>=18.1.0,<19.0.0)
Requires-Dist: pyjwt (>=2.6.0,<3.0.0)
Requires-Dist: pystac (>=1.10.1,<2.0.0)
Requires-Dist: shapely (>=2.0.7,<3.0.0)
Requires-Dist: validators (>=0.28.3,<0.29.0)
Description-Content-Type: text/markdown

<a href="https://www.oceandata.earth/">
    <img src="assets/ODP-SDK.png" alt="ODP SDK logo" title="ODP" align="right" height="100" />
</a>


# ODP Python SDK

Connect to the Ocean Data Platform with Python through the Python SDK. Download queried ocean data easily and efficiently into data frames, for easy exploring and further processing in your data science project.

## Documentation

[https://docs.hubocean.earth/sdk/](https://docs.hubocean.earth/sdk/)

## Installation

Use the package manager [pip](https://pip.pypa.io/en/stable/) to install the Ocean Data Platform Python SDK.

```bash
pip3 install odp_sdk
```
 
## Usage

*Note: Accessing the Ocean Data Platform requires an authorized account. Contact ODP to require one.*

```python
from odp.client import OdpClient

client = OdpClient()

for item in client.catalog.list():
    print(item)
```

Examples can be found in /examples. 


## Testing in Python Notebook
1. Build the Package Locally
```
cd python_sdk
poetry build
```

2. Create a python notebook and test the package
- Building a python vitual environment locally will help you avoid conflicts with other versions of this package.

3. Install the Package Locally from the dist folder
```
pip install dist/<your-package-name>-<version>-py3-none-any.whl
```

To install in editable mode:
```
pip install -e dist/<your-package-name>-<version>-py3-none-any.whl
```

4. Test the new functionalities pointing to PR, Dev or Prod

5. Uninstall the package
```
pip uninstall -y dist/<your-package-name>-<version>-py3-none-any.whl
```



