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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file jwstapipy-0.0.1.tar.gz.

File metadata

  • Download URL: jwstapipy-0.0.1.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.15

File hashes

Hashes for jwstapipy-0.0.1.tar.gz
Algorithm Hash digest
SHA256 422be38b03c7c1607852caa5cbb12e619e6377328e5f96a56fc6aa5ea6196b7a
MD5 d60219eaac31644efa49f3c3dc204279
BLAKE2b-256 32ca65cd8fcfa6551acac6b0e51e7ee381de04f3161e46e2d4a86df778464b79

See more details on using hashes here.

File details

Details for the file jwstapipy-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: jwstapipy-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.15

File hashes

Hashes for jwstapipy-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2cf393e02c183ca3e7cc5e96bdcc29f1ff3a5b6a8928f6d4d2eb383b25ade9ed
MD5 2a26986b14b39ff6771353de328927aa
BLAKE2b-256 3a7a0c7df1d8e3222b6d1d464c982f0705945a43d7210f8d0d31a6999766cf40

See more details on using hashes here.

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