TART: Radio-telescope high-level HTTP interface
This module is used to communicate with the TART radio telescope. It listens on a port on localhost, and allows a web-based interface to communicate with the TART hardware.
For more information see the TART github repository
Authors
- Tim Molteno (tim@elec.ac.nz)
- Max Scheel (max@max.ac.nz)
- Tim Miller (milletf1@gmail.com)
Running The API Server
The API server is a flask app written in Python. This is run using the 'flask' command line tool on the telescope host (Raspberry Pi) that is installed as a dependency of this package. A shell script 'run_api.sh' should be created with the following contents:
#!/bin/bash
export LOGIN_PW=password
export FLASK_APP=tart_web_api.main
flask run
where 'password' is a secure password that can be used to log into the telescope web-application to configure your telescope.
Docker
We are now using to deployment using docker. There is a Dockerfile for this in the TART/software/docker/tart_web_api directory.
Twisted
twistd -n web --port 8080 --wsgi tart_web_api.app
Development work
If you are developing this package, this should be installed using
python3 setyp.py develop
in which case changes to the source-code will be immediately available to projects using it.
NEWS
- Version 0.1.8 Python3 compatability
Metadata
Release files for tart-web-api 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| tart_web_api-0.2.0.tar.gz | 18.4 kB | Details |
Release files / tart_web_api-0.2.0.tar.gz
| Download URL | tart_web_api-0.2.0.tar.gz |
|---|---|
| Size | 18.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
794f79e3e4cf5aae16409cb13012a13f1007528fd864a8f94656eb6ecaa4f76f
|
|
BLAKE2b-256 checksum How to use checksums |
450ecf81bec12f598af28104ec3cf1872e9073e78cc616d14f5e620ab086b7ad
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7
|