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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

daspython-4.0.4-py3-none-any.whl (34.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: daspython-4.0.4.tar.gz
  • Upload date:
  • Size: 34.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for daspython-4.0.4.tar.gz
Algorithm Hash digest
SHA256 60c579e085b8929f4a511d295d5b37c137c0e26351d121ee98910ea2a6b3d572
MD5 6f7ccfaf967ef23f9b2c528564ec9b10
BLAKE2b-256 a9b103c237fde819d7e42992ac33dfbe5ad8c9bd4fd04cee5a306fd7012685f3

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for daspython-4.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 eddb6187399cb095ba37e14c4f7b15f9277ebebfe5d2f3047cd9c7feb4f210a2
MD5 5ef3e278a1f81cfd6c095640ef28cfb9
BLAKE2b-256 1bd8f0e8e9671de18d9caa0f3bb0b5da3a91a00c9684928b6289c571082b1972

See more details on using hashes here.

Supported by

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