jwstapipy


Namejwstapipy JSON
Version 0.0.1 PyPI version JSON
download
home_pagehttps://github.com/malinkinsa/jwstapipy
SummarySimple async python library for access to data from jwstapi.com
upload_time2022-12-01 22:27:15
maintainer
docs_urlNone
authorSergey Malinkin
requires_python
licenseMIT
keywords jwstapi space telescope james webb
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # JWSTapipy
[![CodeQL](https://github.com/malinkinsa/jwstapipy/actions/workflows/codeql-analysis.yml/badge.svg?branch=master)](https://github.com/malinkinsa/jwstapipy/actions/workflows/codeql-analysis.yml)
![PyPI - Downloads](https://img.shields.io/pypi/dm/jwstapipy)
![PyPI](https://img.shields.io/pypi/v/jwstapipy)

![PyPI - Python Version](https://img.shields.io/pypi/pyversions/jwstapipy)

Simple python library for access to data from jwstapi.com

- [JWSTapipy](#jwstapipy)
  - [Description](#description)
  - [Get JWSTapipy](#get-jwstapipy)
  - [Examples](#Examples)
    - [Get list of programs](#get-list-of-programs)
    - [Get part of program data by ID](#get-part-of-program-data-by-id)

## Description
JWSTapipy is a simple python library to work with data provided by the site [https://jwstapi.com/](https://jwstapi.com/)
The site provides James Webb Space Telescope data. Data is sourced from MAST, processed and exposed through API.

## Get JWSTapipy
```python
pip install jwstapipy
```

## Examples
### Get list of programs
```python
import asyncio
import jwstapipy

async def main(api_key):
    jwst = JwstAPI(api_key)
    
    programs = await jwst.get_programs_list()
    print(programs)

if __name__ == "__main__":
    asyncio.run(main('api_key'))
```

### Get part of program data by ID
```python
import asyncio
import jwstapipy

async def main(api_key):
    jwst = JwstAPI(api_key)
    
    program_data = await jwst.get_program_data(program_id=2731, first_page=1, last_page=2)
    print(program_data)

if __name__ == "__main__":
    asyncio.run(main('api_key'))
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/malinkinsa/jwstapipy",
    "name": "jwstapipy",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "jwstapi space telescope james webb",
    "author": "Sergey Malinkin",
    "author_email": "malinkinsa@yandex.ru",
    "download_url": "https://files.pythonhosted.org/packages/32/ca/65cd8fcfa6551acac6b0e51e7ee381de04f3161e46e2d4a86df778464b79/jwstapipy-0.0.1.tar.gz",
    "platform": null,
    "description": "# JWSTapipy\n[![CodeQL](https://github.com/malinkinsa/jwstapipy/actions/workflows/codeql-analysis.yml/badge.svg?branch=master)](https://github.com/malinkinsa/jwstapipy/actions/workflows/codeql-analysis.yml)\n![PyPI - Downloads](https://img.shields.io/pypi/dm/jwstapipy)\n![PyPI](https://img.shields.io/pypi/v/jwstapipy)\n\n![PyPI - Python Version](https://img.shields.io/pypi/pyversions/jwstapipy)\n\nSimple python library for access to data from jwstapi.com\n\n- [JWSTapipy](#jwstapipy)\n  - [Description](#description)\n  - [Get JWSTapipy](#get-jwstapipy)\n  - [Examples](#Examples)\n    - [Get list of programs](#get-list-of-programs)\n    - [Get part of program data by ID](#get-part-of-program-data-by-id)\n\n## Description\nJWSTapipy is a simple python library to work with data provided by the site [https://jwstapi.com/](https://jwstapi.com/)\nThe site provides James Webb Space Telescope data. Data is sourced from MAST, processed and exposed through API.\n\n## Get JWSTapipy\n```python\npip install jwstapipy\n```\n\n## Examples\n### Get list of programs\n```python\nimport asyncio\nimport jwstapipy\n\nasync def main(api_key):\n    jwst = JwstAPI(api_key)\n    \n    programs = await jwst.get_programs_list()\n    print(programs)\n\nif __name__ == \"__main__\":\n    asyncio.run(main('api_key'))\n```\n\n### Get part of program data by ID\n```python\nimport asyncio\nimport jwstapipy\n\nasync def main(api_key):\n    jwst = JwstAPI(api_key)\n    \n    program_data = await jwst.get_program_data(program_id=2731, first_page=1, last_page=2)\n    print(program_data)\n\nif __name__ == \"__main__\":\n    asyncio.run(main('api_key'))\n```\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Simple async python library for access to data from jwstapi.com",
    "version": "0.0.1",
    "split_keywords": [
        "jwstapi",
        "space",
        "telescope",
        "james",
        "webb"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "2a26986b14b39ff6771353de328927aa",
                "sha256": "2cf393e02c183ca3e7cc5e96bdcc29f1ff3a5b6a8928f6d4d2eb383b25ade9ed"
            },
            "downloads": -1,
            "filename": "jwstapipy-0.0.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "2a26986b14b39ff6771353de328927aa",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 4333,
            "upload_time": "2022-12-01T22:27:13",
            "upload_time_iso_8601": "2022-12-01T22:27:13.715799Z",
            "url": "https://files.pythonhosted.org/packages/3a/7a/0c7df1d8e3222b6d1d464c982f0705945a43d7210f8d0d31a6999766cf40/jwstapipy-0.0.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "md5": "d60219eaac31644efa49f3c3dc204279",
                "sha256": "422be38b03c7c1607852caa5cbb12e619e6377328e5f96a56fc6aa5ea6196b7a"
            },
            "downloads": -1,
            "filename": "jwstapipy-0.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "d60219eaac31644efa49f3c3dc204279",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 3959,
            "upload_time": "2022-12-01T22:27:15",
            "upload_time_iso_8601": "2022-12-01T22:27:15.207186Z",
            "url": "https://files.pythonhosted.org/packages/32/ca/65cd8fcfa6551acac6b0e51e7ee381de04f3161e46e2d4a86df778464b79/jwstapipy-0.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2022-12-01 22:27:15",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "malinkinsa",
    "github_project": "jwstapipy",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "jwstapipy"
}
        
Elapsed time: 0.14427s