Metadata-Version: 2.1
Name: daspython
Version: 1.4.1
Summary: DAS api client.
Author: Royal Netherlands Institute for Sea Research
Project-URL: Homepage, https://git.nioz.nl/ict-projects/das-python
Project-URL: Bug Tracker, https://git.nioz.nl/ict-projects/das-python/-/issues
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE

# Welcome to the DAS Python package

The [Royal Netherlands Institute for Sea Research](https://www.nioz.nl) has its data management system to help scientists archive and access their data. This tool is called: **Data Archive System (DAS)** and this package is its Python client.

_*NOTE: This package requires Python 3.8 and plus*_

# To install using pip

```
    $ pip install daspython
```

# To install this package locally use the following commands:

## Create a virtual environment first:

### Install virtualenv if not installed.
```
    $ pip install virtualenv
```

### Create the virtual enviroment
```
    $ virtualenv .venv
```

### Activate your virtual environment (for Windows)
```
    $ .\.venv\Scripts\activate.ps1   
```

### Deactivate your virtual environment (for Windows)
```
    $ deactivate
```


### Now install the dependencies

```powershell
    $ pip install -r .\requirements.txt
```

The best way to see how each method is used is visiting out [automated test scripts](https://git.nioz.nl/ict-projects/das-python/-/tree/master/tests) page.

# Authentication

Use this class to authenticate and keep your token that will be needed to use with all other service classes.

##### Usage

```python
from daspython.auth.authenticate import DasAuth

auth = DasAuth('DAS url', 'Your user name', 'Your password')

if (auth.authenticate()):
    print('You are connected ...')    
```

## Deploying this package:

```
$ pip install twine
```
### Install twine
```
twine upload dist/*
```
Than follow the instructions to publish/upload the distribution files to pypi.org
