User Guide¶
How to¶
The ocean-data-parser can be used different ways:
-
Python Import
from ocean_data_parser.parsers import ...
Installation¶
Install the github development version via pip. You can also install a specific branch, tag or hash by following the present examples:
Integration within a project¶
We recommmand fixing the ocean_data_parser
used within your project since this
package api is still subject to change over the future versions.
You can achieve that either:
- with
pip
by generating arequirement.txt
- (recommanded) with
poetry
by creating apyproject.toml
andpoetry.lock
file.
mkdir my_project
cd my_project
# initialize poetry package
poetry init
# add package via instruction
# or with the following command once the pyproject.toml is generated
poetry add git+https://github.com/cioos-siooc/ocean-data-parser.git
# install packages in local environment.
poetry install
# A new file pyproject.toml should be generated with a poetry.lock file
# which list the specific version of each package installed.