Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Path objects in response object #558

Open
1 of 8 tasks
huard opened this issue Dec 14, 2020 · 0 comments
Open
1 of 8 tasks

Support Path objects in response object #558

huard opened this issue Dec 14, 2020 · 0 comments

Comments

@huard
Copy link
Collaborator

huard commented Dec 14, 2020

Description

I would like to be able to do

from pathlib import Path
...
response.outputs["output_identifier"].file = Path(...)

in Process._handler. At the moment I need to convert Path objects to strings, otherwise an error is raised.

Environment

  • operating system:Ubuntu
  • Python version:3.6.11
  • PyWPS version: 4.2.2
  • source/distribution
  • git clone
  • Debian
  • PyPI
  • zip/tar.gz
  • other (please specify):
  • web server
  • Apache/mod_wsgi
  • CGI
  • other (please specify):
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant