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 ...')    

Unit Tests

python -m unittest tests/test_something.py

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-4.0.2.tar.gz (33.9 kB view details)

Uploaded Source

Built Distribution

daspython-4.0.2-py3-none-any.whl (33.9 kB view details)

Uploaded Python 3

File details

Details for the file daspython-4.0.2.tar.gz.

File metadata

  • Download URL: daspython-4.0.2.tar.gz
  • Upload date:
  • Size: 33.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for daspython-4.0.2.tar.gz
Algorithm Hash digest
SHA256 7e603ec56eabc031954f5b94c8ec70f53e1ccb6a223813794342f0a47421a885
MD5 6fdbc93d45a8332e0631fac6a8e23273
BLAKE2b-256 0d37d81f3093e565b778be459d2c8b630b974b37fd98dac7c2e00c387a540fbb

See more details on using hashes here.

File details

Details for the file daspython-4.0.2-py3-none-any.whl.

File metadata

  • Download URL: daspython-4.0.2-py3-none-any.whl
  • Upload date:
  • Size: 33.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for daspython-4.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 404997eee9d967a4d754a2a03133d245eabe7c93cb24369516d08edf0c0165a2
MD5 3b0864273a5cddfec745545aeb6e8197
BLAKE2b-256 735bac9e1dd049a6dcf42d245536a717ad796604203fef8e535090d15868ca83

See more details on using hashes here.

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