Microdata-Parsing Microservice
Project description
mdgt is a microservice which parses microdata. mdgt is still in the initial design and development phase.
Quick Instructions
Command Line Output: python -m mdgt [options] [provider] [query]
[provider] The name of the provider, must be in /providers/
[query] The query the provider will use to obtain output
Options: * –console, -c: Output to stdout in a readable format (default) * –config, -f: Path to configuration file to use * –json, -j: Output to stdout as json * –providers, -p: Output to stdout a list of available providers * –provider-dir, -pd: Define a different providers directory
RESTful Web Server: python -m mdgt -w [port(optional)]
This starts a WSGI-compliant web server at the specified port (default 8181). The api is invoked with http://domain:port/provider/query, or http://domain:port/providers (for a list of available providers).
Configuration file structure
It is possible to use an optional configuration file by using the –config/- f flag or placing a file called mdgt.conf in the current working directory. It can have the following values:
`conf console = true|false json = true|false provider-dir = path/to/dir `
Note that command-line arguments will override those present in the configuration file.
Development instructions
Windows: Use the handy win_init.ps1 script to set up the virtual environment and install dependencies to it. PyPI doesn’t have 64-bit binaries for lxml, so the whl file is included and installed from the script.
Linux/Mac users: Set up a virtual environment with python -m venv venv, activate it, then install the dependencies with pip install requirements.txt.
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 Distributions
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 mdgt-0.1.0.zip.
File metadata
- Download URL: mdgt-0.1.0.zip
- Upload date:
- Size: 10.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dde8be38315b770017dbb1d4aae013f92be04dd8cdad6e541d846a96c6050cdc
|
|
| MD5 |
2301a99ee9f659daac2b28cd8af32f0d
|
|
| BLAKE2b-256 |
e80f3969479115b59e53e84f63938a051b9337d111059ffc6f5274c9901efeb0
|
File details
Details for the file mdgt-0.1.0-py3.5.egg.
File metadata
- Download URL: mdgt-0.1.0-py3.5.egg
- Upload date:
- Size: 14.6 kB
- Tags: Egg
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
adac385bfec672d62dbbd47ec683744b290f1741259ee6e61b3bbac8f270a096
|
|
| MD5 |
165b49465600ca8920adc4b748c8e143
|
|
| BLAKE2b-256 |
d4dcc0e40bf23871fc7023c04f1f25d3afb2de43a393a4729eb68ea6c383a4fa
|
File details
Details for the file mdgt-0.1.0-py3-none-any.whl.
File metadata
- Download URL: mdgt-0.1.0-py3-none-any.whl
- Upload date:
- Size: 10.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
269aaf71bfacca61c5af742787f8d7e647d1e15361b63570a1c4fea5e4531b4a
|
|
| MD5 |
76019e13c9510f9de76e9b4044b54ea5
|
|
| BLAKE2b-256 |
75c0d9895c8e901af22429c35ccd93cc921da05fde725ee222e2401d2d8aa3b9
|