Web server for `marker`
Project description
Marker-Web
This is a Flask-backend and Vue.js frontend for the marker library. The
Try it out with dummy data! (Mobile friendly too)
Running marker-web spins up a local server and hosts the frontend so you can use the marking utilities with a GUI. The layout makes it trivial to package this as a standalone app if needed.
Disclaimer: This is still in development. There most definitely are UI quirks and missing features. If you find any, please open an Issue on GitHub and let me know!
How to install
There are 2 ways to install this marker.
Using PIP
This is by far the recommended way of installing this utility. Simply run:
pip install marker-web
Build from source
Alternatively, if you want to develop, you will need to build from source:
git clone https://github.com/mustafaquraish/marker-web
cd marker-web
python setup.py install
How to use
Locally
In it's simplest form, you can start up the server with:
$ marker-web
You can also pass in the same arguments as marker CLI.
Currently, if either:
- Your configuration file is not is not
assgn_dir/config.yml, or - Your
src_diris not the same asassgn_dir
Then you must pass in the correct arguments when running marker-web. Otherwise, the interface provides a little file explorer which lets you pick assgn_dir (and can infer the other two arguments)
By default, anyone else logged in on the machine can access the endpoints. To prevent this, you can run in authenticated mode with:
$ marker-web --auth
This will print out a random token which needs to be entered in the frontend to be able to access any information. A link is also print out with the token embedded in it, so you can just open that URL in your browser.
By default, the server runs on port 6275. You can specify an alternate port using:
$ marker-web --port PORT
Remote (Experimental)
Note: This requires the remote machine to have marker-web installed, and for you to have SSH access to it.
If you want to run the marker on a remote machine, but show the frontend on your local browser, this can be done via port-forwarding over SSH. For full flexibility, you want to do this manually. However, if you are fine with some defaults, you can run:
$ marker-web --remote HOST
which is approximately the same as running:
$ ssh -L PORT:localhost:PORT HOST marker-web --auth
For the features available to you in the GUI, you should read through the documentation for the marker CLI. Most things should be self-explanatory.
Development notes:
- The
frontenddirectory contains the Vue frontend - The
marker_webdirectory contains the marker_server - The
extradirectory contains some files to build a standalone app (on MacOS at least)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file marker_web-1.1.2-py3-none-any.whl.
File metadata
- Download URL: marker_web-1.1.2-py3-none-any.whl
- Upload date:
- Size: 1.2 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/54.2.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.9.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
151633ea021657774bd26e59bc0871f9f3b3bc82c142b011c00f6325ab2a8a8b
|
|
| MD5 |
0d4acbd85e3e49081014ca9d42265813
|
|
| BLAKE2b-256 |
b1efaba99a234b44e78d5248e1ada704de0e867d593c41d9dabe5ab5b7094435
|