Skip to main content
Archived

This project has been archived by its maintainers, and is no longer receiving any updates.

Python client for the serval-dna REST-interface

Provides a client to interact with serval-dna's REST-interface in python

Functionality

The following REST-functionality is supported:

  • Keyring
  • Rhizome
  • MeshMS
  • MeshMB
  • Route

For documentation on the specific endpoints, please consult The serval-dna documentation

Dependencies

Up to v0.4, the code is compatible with both Python 2.7 & 3.4+. As of v0.5, you will need Python 3.6+

The only external runtime-dependency is requests. This should be automatically installed by pip based on the package metadata.

Development dependencies are the following:

Automatic format checking is done using black and pre-commit.

In order to run the tests, you will need hypothesis, pytest, and pytest-cov for coverage-reports.

To install all dependencies (both runtime and development/testing) run pip install -r requirements.txt

Installation

As of v0.4, releases are uploaded to PyPi, so you can just install it by name

pip install pyserval

Development

In order to have reasonably well formatted code, a format-checking pre-commit hook is supplied. The tool used for checking/reformatting is black. Note that the hook itself does not do any reformatting, it merely informs you that a file is not properly formatted. You need to do the reformatting yourself using black $FILEPATH.

The tests require you to have the servald binary from serval-dna installed and available in your $PATH. In order to have a consistent testing enviroment, /tmp/pyserval-tests/ will be used as the $SERVALINSTANCE_PATH.

  1. Clone Project
  2. Install project to python-path
    • You might want to use a virtualenv
    • You might also want to do an editable install with pip install -e .
  3. Install development dependencies with pip install -r requirements.txt
  4. Install git pre-commit hook with pre-commit install
  5. For testing: In the project root run pytest --cov=pyserval

Metadata

Release files for pyserval 0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyserval 0.5
File Size Uploaded
pyserval-0.5.tar.gz 26.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyserval 0.5
File Interpreter ABI Platform
pyserval-0.5-py3-none-any.whl Python 3 none any Details

Total release size: 60.1 kB

Release files / pyserval-0.5.tar.gz

Download URL pyserval-0.5.tar.gz
Size 26.4 kB
Tags Source
SHA-256 checksum
How to use checksums
6c00f4fd63485e40e2babc769451a5f4bbcc8a39f469a2b5be5f3f252afe331f
BLAKE2b-256 checksum
How to use checksums
9af86109dbe5a21f3c68fdc277cdb033562a99270d304d5d5fd2ad53ca2afff0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.8.1

Release files / pyserval-0.5-py3-none-any.whl

Download URL pyserval-0.5-py3-none-any.whl
Size 33.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e6e0c91618ff0e93815d9687303f487ddffd54a6a75073bcaa38b410b9baa443
BLAKE2b-256 checksum
How to use checksums
0f1a8f61f1158ff0326bb259917521ff2d8d59030899ce0d5bb7946c305566bd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.8.1

Release history Release notifications | RSS feed

This release

0.5 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page