A Python library and tools for the DaSCH Service Platform
Project description
DSP-TOOLS - DaSCH Service Platform Tools
dsp-tools is a command line tool that helps you interact with the DaSCH Service Platform API.
Go to Full Documentation
Information for developers
There is a Makefile
for all the following tasks (and more). Type make
to print the available targets.
Install from source
To install from source run:
python3 setup.py install
Install the requirements
To install the requirements run:
pip3 install -r requirements.txt
To generate a requirements file (usually requirements.txt), that you commit with your project, run:
pip3 freeze > requirements.txt
Testing
Please note that testing requires launching the complete DSP API stack which is based on docker images. Therefore, we recommend installing the docker desktop client.
To run the complete test suite:
make test
Code style
When contributing to the project please make sure you use the same code style rules as we do. We use
autopep8 and mypy. The configuration is defined
in pyproject.toml
in the root directory of the project.
[tool.autopep8]
max_line_length = 180
experimental = true
[tool.mypy]
ignore_missing_imports = true
follow_imports = "silent"
show_column_numbers = true
strict = true
You can use the configuration with autopep8 --global-config pyproject.toml [file path]
and mypy --config-file pyproject.toml [file path]
.
If you are using PyCharm we recommend installing autopep8 as external tool. You can then use it with right-click on the
file > External Tools
> autopep8
to reformat files in-place. Due to compatibility issues with VSCode, the argument
--in-place=true
can not be declared in the pyproject.toml
and needs to be passed to the external tool in the PyCharm settings.
mypy is available as plugin.
In VSCode, both mypy and autopep8 can be set up as default linter and formatter through the python extension.
For formatting Markdown files (*.md) we use the default styling configuration provided by PyCharm.
Publishing
Publishing is automated with GitHub Actions and should not be done manually. Please follow the
Pull Request Guidelines. If done
correctly, when merging a pull request into main
, the release-please
action will create or update a pull request for
a release. This pull request will follow semantic versioning and update the change log. Once all desired features are
merged, the release can be executed by merging this release pull request into main
. This will trigger actions that
create a release on GitHub, on PyPI and the docs.
Please ensure you have only one pull request per feature.
Publishing manually
Publishing is automated with GitHub Actions and should not be done manually. If you still need to do it, follow the steps below.
Generate the distribution package. Make sure you have the latest versions of setuptools
and wheel
installed:
python3 -m pip install --upgrade pip setuptools wheel
python3 setup.py sdist bdist_wheel
You can install the package locally from the dist:
python3 -m pip ./dist/some_name.whl
Upload package works also with make
:
make dist
make upload
For local development:
python3 setup.py develop
Contributing to the documentation
The documentation is a collection of markdown files in the docs
folder.
After updates of the files, build and check the result with the following commands:
make docs-build
make docs-serve
To update the changes to the official documentation pages run:
make docs-publish
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
Built Distribution
File details
Details for the file dsp-tools-1.8.0.tar.gz
.
File metadata
- Download URL: dsp-tools-1.8.0.tar.gz
- Upload date:
- Size: 90.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.5.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f3fce7d09162d7a5ca7df20f46ed9824fba887929579fed04ad956403ff62723 |
|
MD5 | 82ac0ae8095f5a32450ccd7bc769798c |
|
BLAKE2b-256 | 6c31dd8dbbb429b5a6eb779814b43ef250401246054cc7bbeb0e11de9333cf4c |
File details
Details for the file dsp_tools-1.8.0-py3-none-any.whl
.
File metadata
- Download URL: dsp_tools-1.8.0-py3-none-any.whl
- Upload date:
- Size: 108.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.5.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 60c16975fef3e7549b1aa78b8738f427b9916af29379933f47a0fad663d67a41 |
|
MD5 | 03bd4fb770262f320956441b83a0e873 |
|
BLAKE2b-256 | 389506c7a19a9537e95a9795d3ae831aea3024ebcb37dfbed4962a2748dfea8f |