Name | pywps JSON |
Version |
4.6.0
JSON |
| download |
home_page | https://pywps.org |
Summary | PyWPS is an implementation of the Web Processing Service standard from the Open Geospatial Consortium. PyWPS is written in Python. |
upload_time | 2023-11-03 11:34:30 |
maintainer | Jachym Cepicky |
docs_url | None |
author | Jachym Cepicky |
requires_python | >=3.8,<4 |
license | MIT |
keywords |
pywps
wps
ogc
processing
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# PyWPS
PyWPS is an implementation of the Web Processing Service standard from
the Open Geospatial Consortium. PyWPS is written in Python.
[![Documentation Status](https://img.shields.io/badge/docs-latest-brightgreen.svg)](https://pywps.readthedocs.io/en/latest/?badge=latest)
[![Build Status](https://github.com/geopython/pywps/actions/workflows/main.yml/badge.svg)](https://github.com/geopython/pywps/actions/workflows/main.yml)
[![Coverage Status](https://coveralls.io/repos/github/geopython/pywps/badge.svg?branch=main)](https://coveralls.io/github/geopython/pywps?branch=main)
[![PyPI](https://img.shields.io/pypi/dm/pywps.svg)](https://pypi.org/project/pywps/)
[![GitHub license](https://img.shields.io/github/license/geopython/pywps.svg)]()
[![Join the chat at https://gitter.im/geopython/pywps](https://badges.gitter.im/geopython/pywps.svg)](https://gitter.im/geopython/pywps?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
# License
As of PyWPS 4.0.0, PyWPS is released under an
[MIT](https://en.wikipedia.org/wiki/MIT_License) license
(see [LICENSE.txt](LICENSE.txt)).
# Dependencies
See [requirements.txt](requirements.txt) file
# Run tests
```bash
pip install -r requirements-dev.txt
# run unit tests
python -m pytest tests
# run code coverage
python -m coverage run --source=pywps -m unittest tests
python -m coverage report -m
```
# Run web application
## Example service
Clone the example service after having installed PyWPS:
```bash
git clone git://github.com/geopython/pywps-flask.git pywps-flask
cd pywps-flask
python demo.py
```
## Apache configuration
1. Enable WSGI extension
2. Add configuration:
```apache
WSGIDaemonProcess pywps user=user group=group processes=2 threads=5
WSGIScriptAlias /pywps /path/to/www/htdocs/wps/pywps.wsgi
<Directory /path/to/www/htdocs/wps/>
WSGIProcessGroup group
WSGIApplicationGroup %{GLOBAL}
Order deny,allow
Allow from all
</Directory>
```
3. Create wsgi file:
```python
#!/usr/bin/env python3
import sys
sys.path.append('/path/to/src/pywps/')
import pywps
from pywps.app import Service, WPS, Process
def pr1():
"""This is the execute method of the process
"""
pass
application = Service(processes=[Process(pr1)])
```
4. Run via web browser
`http://localhost/pywps/?service=WPS&request=GetCapabilities&version=1.0.0`
5. Run in command line:
```bash
curl 'http://localhost/pywps/?service=WPS&request=GetCapabilities&version=1.0.0'
```
# Issues
On Windows PyWPS does not support multiprocessing which is used when making
requests storing the response document and updating the status to displaying
to the user the progression of a process.
Raw data
{
"_id": null,
"home_page": "https://pywps.org",
"name": "pywps",
"maintainer": "Jachym Cepicky",
"docs_url": null,
"requires_python": ">=3.8,<4",
"maintainer_email": "jachym.cepicky@gmail.com",
"keywords": "PyWPS WPS OGC processing",
"author": "Jachym Cepicky",
"author_email": "jachym.cepicky@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/a1/46/f5b7db41b7b91cac382c0e74800bef9ee5a2b3262bc3d1e33c91d0d50439/pywps-4.6.0.tar.gz",
"platform": "all",
"description": "# PyWPS\n\nPyWPS is an implementation of the Web Processing Service standard from\nthe Open Geospatial Consortium. PyWPS is written in Python.\n\n[![Documentation Status](https://img.shields.io/badge/docs-latest-brightgreen.svg)](https://pywps.readthedocs.io/en/latest/?badge=latest)\n[![Build Status](https://github.com/geopython/pywps/actions/workflows/main.yml/badge.svg)](https://github.com/geopython/pywps/actions/workflows/main.yml)\n[![Coverage Status](https://coveralls.io/repos/github/geopython/pywps/badge.svg?branch=main)](https://coveralls.io/github/geopython/pywps?branch=main)\n[![PyPI](https://img.shields.io/pypi/dm/pywps.svg)](https://pypi.org/project/pywps/)\n[![GitHub license](https://img.shields.io/github/license/geopython/pywps.svg)]()\n\n[![Join the chat at https://gitter.im/geopython/pywps](https://badges.gitter.im/geopython/pywps.svg)](https://gitter.im/geopython/pywps?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)\n\n# License\n\nAs of PyWPS 4.0.0, PyWPS is released under an\n[MIT](https://en.wikipedia.org/wiki/MIT_License) license\n(see [LICENSE.txt](LICENSE.txt)).\n\n# Dependencies\n\nSee [requirements.txt](requirements.txt) file\n\n# Run tests\n\n```bash\npip install -r requirements-dev.txt\n# run unit tests\npython -m pytest tests\n# run code coverage\npython -m coverage run --source=pywps -m unittest tests\npython -m coverage report -m\n```\n\n# Run web application\n\n## Example service\n\nClone the example service after having installed PyWPS:\n\n```bash\ngit clone git://github.com/geopython/pywps-flask.git pywps-flask\ncd pywps-flask\npython demo.py\n```\n\n## Apache configuration\n\n1. Enable WSGI extension\n\n2. Add configuration:\n\n ```apache\n WSGIDaemonProcess pywps user=user group=group processes=2 threads=5\n WSGIScriptAlias /pywps /path/to/www/htdocs/wps/pywps.wsgi\n\n <Directory /path/to/www/htdocs/wps/>\n WSGIProcessGroup group\n WSGIApplicationGroup %{GLOBAL}\n Order deny,allow\n Allow from all\n </Directory>\n ```\n\n3. Create wsgi file:\n\n ```python\n #!/usr/bin/env python3\n import sys\n sys.path.append('/path/to/src/pywps/')\n\n import pywps\n from pywps.app import Service, WPS, Process\n\n def pr1():\n \"\"\"This is the execute method of the process\n \"\"\"\n pass\n\n\n application = Service(processes=[Process(pr1)])\n ```\n\n4. Run via web browser\n\n `http://localhost/pywps/?service=WPS&request=GetCapabilities&version=1.0.0`\n\n5. Run in command line:\n\n ```bash\n curl 'http://localhost/pywps/?service=WPS&request=GetCapabilities&version=1.0.0'\n ```\n\n\n# Issues\n\nOn Windows PyWPS does not support multiprocessing which is used when making\nrequests storing the response document and updating the status to displaying\nto the user the progression of a process.",
"bugtrack_url": null,
"license": "MIT",
"summary": "PyWPS is an implementation of the Web Processing Service standard from the Open Geospatial Consortium. PyWPS is written in Python.",
"version": "4.6.0",
"project_urls": {
"Download": "https://github.com/geopython/pywps",
"Homepage": "https://pywps.org"
},
"split_keywords": [
"pywps",
"wps",
"ogc",
"processing"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "a146f5b7db41b7b91cac382c0e74800bef9ee5a2b3262bc3d1e33c91d0d50439",
"md5": "2ef07fca8df5af8f9eb6f4309c149165",
"sha256": "3260099d22f16eb55b1e33219af1eb2976a508dac3a1a0e06a6318c8947dd01d"
},
"downloads": -1,
"filename": "pywps-4.6.0.tar.gz",
"has_sig": false,
"md5_digest": "2ef07fca8df5af8f9eb6f4309c149165",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8,<4",
"size": 86177,
"upload_time": "2023-11-03T11:34:30",
"upload_time_iso_8601": "2023-11-03T11:34:30.014897Z",
"url": "https://files.pythonhosted.org/packages/a1/46/f5b7db41b7b91cac382c0e74800bef9ee5a2b3262bc3d1e33c91d0d50439/pywps-4.6.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-11-03 11:34:30",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "geopython",
"github_project": "pywps",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"requirements": [],
"tox": true,
"lcname": "pywps"
}