{"id":44079406,"url":"https://github.com/pacificclimate/wps-tools","last_synced_at":"2026-02-08T08:34:30.498Z","repository":{"id":47714662,"uuid":"281237437","full_name":"pacificclimate/wps-tools","owner":"pacificclimate","description":"Modules used to create wps_processes","archived":false,"fork":false,"pushed_at":"2025-06-16T22:55:41.000Z","size":12021,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-06-16T23:31:09.660Z","etag":null,"topics":["actions","pipenv","pypi"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pacificclimate.png","metadata":{"files":{"readme":"README.md","changelog":"NEWS.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2020-07-20T22:21:22.000Z","updated_at":"2025-06-16T22:55:44.000Z","dependencies_parsed_at":"2025-04-01T00:21:22.322Z","dependency_job_id":"b8f8ebb5-a463-4af9-973a-943c786461c1","html_url":"https://github.com/pacificclimate/wps-tools","commit_stats":null,"previous_names":[],"tags_count":24,"template":false,"template_full_name":null,"purl":"pkg:github/pacificclimate/wps-tools","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pacificclimate%2Fwps-tools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pacificclimate%2Fwps-tools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pacificclimate%2Fwps-tools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pacificclimate%2Fwps-tools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pacificclimate","download_url":"https://codeload.github.com/pacificclimate/wps-tools/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pacificclimate%2Fwps-tools/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29225478,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-08T06:05:31.539Z","status":"ssl_error","status_checked_at":"2026-02-08T05:58:33.853Z","response_time":57,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["actions","pipenv","pypi"],"created_at":"2026-02-08T08:34:29.831Z","updated_at":"2026-02-08T08:34:30.490Z","avatar_url":"https://github.com/pacificclimate.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# wps-tools\n\n## Overview\n\nThe Web Processing Services (WPS) at PCIC, known as birds, are developed and tested using many common functions. The `wps-tools` repository was created to store these functions in a single place, mitigating redundant code across the birds, and to simplify the creation and testing of new WPS processes. Currently, this package is used in all the PCIC birds:\n  - [`thunderbird`](https://github.com/pacificclimate/thunderbird)\n  - [`osprey`](https://github.com/pacificclimate/osprey)\n  - [`sandpiper`](https://github.com/pacificclimate/sandpiper)\n  - [`chickadee`](https://github.com/pacificclimate/chickadee)\n  - [`quail`](https://github.com/pacificclimate/quail)\n\n## Structure\n\n### io.py\n\nThis module contains a collection of commonly used PyWPS inputs and outputs and are also mainly used in `wps_*.py` files.\n\n### testing.py\n\nThese functions help run a bird's `pytest` suite and are thus mainly used in `test_*.py` files.\n\n### utils.py\n\nThese functions gather PyWPS inputs, build PyWPS outputs, and handle logging information within a process's class file and are thus mainly used in `wps_*.py` files.\n\n## Installation as GitHub Repository\n\nClone the repo onto the target machine. Python installation should be done using the `poetry` tool. The required dependencies can be installed using \n\n```bash\npoetry install\n```\n\nThe additional R dependencies can be installed using\n```bash\npoetry install --extras \"r\"\n```\n\nThis also creates a virtual environment that can be activated using \n```bash\npoetry shell\n```\n\n## Installation and Usage as Package\n\nWhile in a different repository, the `wps-tools` package can be installed by executing\n\n```bash\npip install -i https://pypi.pacifcclimate.org/simple wps-tools[complete]\n```\n\nAfterwards, each function can be used in a `.py` file by importing it. For example, if one wishes to use the `log_handler` function from `utils.py`, they access it by writing\n\n```python\nfrom wps_tools.utils import log_handler\n```\n\n## Development\n\nOnce the repository is cloned and the required development packages are installed, one can add new functions or PyWPS i/o objects by writing them in one of the aforementioned three modules or a new one in the `wps_tools` directory. Each function should have a corresponding test in the `tests` directory.\n\n### Testing\n\nMore Python packages are required to run the tests and they can be installed by executing\n\n```bash\npoetry install --extras \"complete\"\n```\n\nThe entire test suite can then be run by executing\n\n```bash\npoetry run pytest\n```\n\nand one can specify desired test functions as optional arguments. For example, one can run `test_is_opendap_url` from `test_utils.py` by executing\n\n```bash\npoetry run pytest tests/test_utils.py::test_is_opendap_url\n```\n\n### Releasing\n\nTo create a versioned release:\n\n1. Increment `version` in `pyproject.toml`\n2. Summarize the changes from the last release in `NEWS.md`\n3. Commit these changes, then tag the release:\n\n  ```bash\ngit add pyproject.toml NEWS.md\ngit commit -m\"Bump to version x.x.x\"\ngit tag -a -m\"x.x.x\" x.x.x\ngit push --follow-tags\n  ```\n4. [Github Actions](https://github.com/pacificclimate/wps-tools/blob/master/.github/workflows/pypi-publish.yml) will automatically build and publish the package to our pypi server\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpacificclimate%2Fwps-tools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpacificclimate%2Fwps-tools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpacificclimate%2Fwps-tools/lists"}