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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
daspython-3.0.0.tar.gz
(32.2 kB
view hashes)
Built Distribution
daspython-3.0.0-py3-none-any.whl
(32.6 kB
view hashes)
Close
Hashes for daspython-3.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dd947026d4666fd4946672be71abe31d9a73ac8cfd77229e837a02aa5a388b9d |
|
MD5 | 652f33d4260a4d7ba08df943481bc4b9 |
|
BLAKE2b-256 | bf51f1bebb6f611004f60e2cd1822177de5e8167c4e3919684466efb500afc17 |