Skip to main content

Simple async python library for access to data from jwstapi.com

Project description

JWSTapipy

CodeQL PyPI - Downloads PyPI

PyPI - Python Version

Simple python library for access to data from jwstapi.com

Description

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

Get JWSTapipy

pip install jwstapipy

Examples

Get list of programs

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

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'))

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

jwstapipy-0.0.1.tar.gz (4.0 kB view hashes)

Uploaded Source

Built Distribution

jwstapipy-0.0.1-py3-none-any.whl (4.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page