Skip to main content

DAS api client.

Project description

Welcome to the DAS Python package

The Royal Netherlands Institute for Sea Research 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.11 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

    $ pip install -r .\requirements.txt

The best way to see how each method is used is visiting out automated test scripts page.

Authentication

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

Usage
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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

daspython-2.0.tar.gz (28.3 kB view hashes)

Uploaded Source

Built Distribution

daspython-2.0-py3-none-any.whl (29.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page