Skip to main content

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

Metadata

Release files for jwstapipy 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for jwstapipy 0.0.1
File Size Uploaded
jwstapipy-0.0.1.tar.gz 4.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for jwstapipy 0.0.1
File Interpreter ABI Platform
jwstapipy-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 8.3 kB

Release files / jwstapipy-0.0.1.tar.gz

Download URL jwstapipy-0.0.1.tar.gz
Size 4.0 kB
Tags Source
SHA-256 checksum
How to use checksums
422be38b03c7c1607852caa5cbb12e619e6377328e5f96a56fc6aa5ea6196b7a
BLAKE2b-256 checksum
How to use checksums
32ca65cd8fcfa6551acac6b0e51e7ee381de04f3161e46e2d4a86df778464b79
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.15

Release files / jwstapipy-0.0.1-py3-none-any.whl

Download URL jwstapipy-0.0.1-py3-none-any.whl
Size 4.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2cf393e02c183ca3e7cc5e96bdcc29f1ff3a5b6a8928f6d4d2eb383b25ade9ed
BLAKE2b-256 checksum
How to use checksums
3a7a0c7df1d8e3222b6d1d464c982f0705945a43d7210f8d0d31a6999766cf40
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.15

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page