gplates-ws-proxy


Namegplates-ws-proxy JSON
Version 0.1.2 PyPI version JSON
download
home_pageNone
SummaryGPlates Web Service Python client/proxy
upload_time2024-07-22 04:51:11
maintainerNone
docs_urlNone
authorNone
requires_python>=3.9
licenseMIT License Copyright (c) 2023 michaelchin Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords gplates restful web service plate tectonics
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # GPlates Web Service Python Client/Proxy

# ⛔⛔⛔

The gplates-ws-proxy is deprecated⚠️⚠️⚠️Use [gwspy](https://pypi.org/project/gwspy/) instead⚠️⚠️⚠️

# ⛔⛔⛔

This Python package allows users to access [GPlates Web Service](https://gwsdoc.gplates.org/) more easily via simple Python programming interface.

### Installation

`pip install gplates-ws-proxy`

### How to use

The following Python code reconstructs three locations to 100Ma with Muller2019 reconstruction model.

```python
  # pip install gplates-ws-proxy shapely
  import shapely
  from gplates_ws_proxy import PlateModel, reconstruct_shapely_points

  lats = [50, 10, 50]
  lons = [-100, 160, 100]
  points = [shapely.Point(x, y) for x, y in zip(lons, lats)]

  model = PlateModel("Muller2019")
  paleo_points = reconstruct_shapely_points(model, points, 100)
  print(paleo_points)
```

### GPlates Web Service server

By default, https://gws.gplates.org is used. You can use .env file to specify your service URL. Alternertively, you can `export GWS_URL=https://your-service-url` in a terminal.

See [env.template](src/gplates_ws_proxy/env.template) and [setup GWS server with Docker](https://github.com/GPlates/gplates-web-service/tree/master/docker#-quick-start).

### Dependencies

- [requests](https://pypi.org/project/requests/)
- [shapely](https://pypi.org/project/shapely/)

### API reference

API reference can be found at https://michaelchin.github.io/gplates-python-proxy/.

### Examples

👉 [reconstruct_shapely_points.py](https://github.com/michaelchin/gplates-python-proxy/blob/main/examples/reconstruct_shapely_points.py)

The red dots are present-day locations. The blue dots are paleo-locations at 100Ma.

![reconstruct_shapely_points](https://raw.githubusercontent.com/michaelchin/gplates-python-proxy/main//examples/output/reconstruct_shapely_points.png)

👉 [plot_subduction_zones.py](https://github.com/michaelchin/gplates-python-proxy/blob/main/examples/plot_subduction_zones.py)

![plot_subduction_zones](https://raw.githubusercontent.com/michaelchin/gplates-python-proxy/main/examples/output/plot_subduction_zones.png)

👉 [plot_topological_plate_polygons.py](https://github.com/michaelchin/gplates-python-proxy/blob/main/examples/plot_topological_plate_polygons.py)

![plot_topological_plate_polygons](https://raw.githubusercontent.com/michaelchin/gplates-python-proxy/main/examples/output/plot_topological_plate_polygons.png)

[All Examples](https://github.com/michaelchin/gplates-python-proxy/blob/main/examples/readme.md)

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "gplates-ws-proxy",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": null,
    "keywords": "GPlates, RESTful, Web Service, Plate Tectonics",
    "author": null,
    "author_email": "Michael Chin <michael.chin@sydney.edu.au>",
    "download_url": "https://files.pythonhosted.org/packages/31/e9/629beec43e2d5d9786bf41cb15e55d062d079fb56dcf34887d91a58f4396/gplates_ws_proxy-0.1.2.tar.gz",
    "platform": null,
    "description": "# GPlates Web Service Python Client/Proxy\n\n# \u26d4\u26d4\u26d4\n\nThe gplates-ws-proxy is deprecated\u26a0\ufe0f\u26a0\ufe0f\u26a0\ufe0fUse [gwspy](https://pypi.org/project/gwspy/) instead\u26a0\ufe0f\u26a0\ufe0f\u26a0\ufe0f\n\n# \u26d4\u26d4\u26d4\n\nThis Python package allows users to access [GPlates Web Service](https://gwsdoc.gplates.org/) more easily via simple Python programming interface.\n\n### Installation\n\n`pip install gplates-ws-proxy`\n\n### How to use\n\nThe following Python code reconstructs three locations to 100Ma with Muller2019 reconstruction model.\n\n```python\n  # pip install gplates-ws-proxy shapely\n  import shapely\n  from gplates_ws_proxy import PlateModel, reconstruct_shapely_points\n\n  lats = [50, 10, 50]\n  lons = [-100, 160, 100]\n  points = [shapely.Point(x, y) for x, y in zip(lons, lats)]\n\n  model = PlateModel(\"Muller2019\")\n  paleo_points = reconstruct_shapely_points(model, points, 100)\n  print(paleo_points)\n```\n\n### GPlates Web Service server\n\nBy default, https://gws.gplates.org is used. You can use .env file to specify your service URL. Alternertively, you can `export GWS_URL=https://your-service-url` in a terminal.\n\nSee [env.template](src/gplates_ws_proxy/env.template) and [setup GWS server with Docker](https://github.com/GPlates/gplates-web-service/tree/master/docker#-quick-start).\n\n### Dependencies\n\n- [requests](https://pypi.org/project/requests/)\n- [shapely](https://pypi.org/project/shapely/)\n\n### API reference\n\nAPI reference can be found at https://michaelchin.github.io/gplates-python-proxy/.\n\n### Examples\n\n\ud83d\udc49 [reconstruct_shapely_points.py](https://github.com/michaelchin/gplates-python-proxy/blob/main/examples/reconstruct_shapely_points.py)\n\nThe red dots are present-day locations. The blue dots are paleo-locations at 100Ma.\n\n![reconstruct_shapely_points](https://raw.githubusercontent.com/michaelchin/gplates-python-proxy/main//examples/output/reconstruct_shapely_points.png)\n\n\ud83d\udc49 [plot_subduction_zones.py](https://github.com/michaelchin/gplates-python-proxy/blob/main/examples/plot_subduction_zones.py)\n\n![plot_subduction_zones](https://raw.githubusercontent.com/michaelchin/gplates-python-proxy/main/examples/output/plot_subduction_zones.png)\n\n\ud83d\udc49 [plot_topological_plate_polygons.py](https://github.com/michaelchin/gplates-python-proxy/blob/main/examples/plot_topological_plate_polygons.py)\n\n![plot_topological_plate_polygons](https://raw.githubusercontent.com/michaelchin/gplates-python-proxy/main/examples/output/plot_topological_plate_polygons.png)\n\n[All Examples](https://github.com/michaelchin/gplates-python-proxy/blob/main/examples/readme.md)\n",
    "bugtrack_url": null,
    "license": "MIT License  Copyright (c) 2023 michaelchin  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.  THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ",
    "summary": "GPlates Web Service Python client/proxy",
    "version": "0.1.2",
    "project_urls": {
        "Homepage": "https://github.com/michaelchin/gplates-python-proxy"
    },
    "split_keywords": [
        "gplates",
        " restful",
        " web service",
        " plate tectonics"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a98afba8127fbddab19f3c0a2f19d20384208e5939f824bb47220563b8687e60",
                "md5": "61a460c5cfe2568a7ee3549c4832f3db",
                "sha256": "fcc83ec26d99ff0bcb6e23192bedc8d8944b929e27e5349a6a294bfa97588af8"
            },
            "downloads": -1,
            "filename": "gplates_ws_proxy-0.1.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "61a460c5cfe2568a7ee3549c4832f3db",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 462338,
            "upload_time": "2024-07-22T04:51:08",
            "upload_time_iso_8601": "2024-07-22T04:51:08.622424Z",
            "url": "https://files.pythonhosted.org/packages/a9/8a/fba8127fbddab19f3c0a2f19d20384208e5939f824bb47220563b8687e60/gplates_ws_proxy-0.1.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "31e9629beec43e2d5d9786bf41cb15e55d062d079fb56dcf34887d91a58f4396",
                "md5": "4d8dc69313f4154b6b3008625593c60c",
                "sha256": "1371b804ffc886e8b2524f4f67669def83f4ce6929e372782241091f0bf70350"
            },
            "downloads": -1,
            "filename": "gplates_ws_proxy-0.1.2.tar.gz",
            "has_sig": false,
            "md5_digest": "4d8dc69313f4154b6b3008625593c60c",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 455164,
            "upload_time": "2024-07-22T04:51:11",
            "upload_time_iso_8601": "2024-07-22T04:51:11.482431Z",
            "url": "https://files.pythonhosted.org/packages/31/e9/629beec43e2d5d9786bf41cb15e55d062d079fb56dcf34887d91a58f4396/gplates_ws_proxy-0.1.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-07-22 04:51:11",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "michaelchin",
    "github_project": "gplates-python-proxy",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [],
    "lcname": "gplates-ws-proxy"
}
        
Elapsed time: 0.30288s