{"id":28277,"library":"spright","title":"spright","description":"Bayesian radius-density-mass relation for small planets, using a hierarchical Bayesian model to infer interior composition from observed mass and radius. Current version 25.6.3, released monthly.","status":"active","version":"25.6.3","language":"python","source_language":"en","source_url":"https://github.com/ExoWorlds/spright","tags":["astronomy","exoplanets","bayesian","interior-composition","radius-density"],"install":[{"cmd":"pip install spright","lang":"bash","label":"Install from PyPI"}],"dependencies":[],"imports":[{"note":"","wrong":"","symbol":"SPRight","correct":"from spright import SPRight"}],"quickstart":{"code":"from spright import SPRight\n\n# Initialize the model\nmodel = SPRight()\n\n# Evaluate the posterior for a given radius and mass (Earth units)\nradius = 1.5  # R_earth\nmass = 3.0    # M_earth\n\n# Get posterior samples of core mass fraction and water mass fraction\nsamples = model.predict(mass, radius)\nprint(samples)\n","lang":"python","description":"Quickstart: initialize SPRight, then call predict with mass and radius in Earth units to obtain posterior samples."},"warnings":[{"fix":"Remove config argument; set parameters via environment variables or the new SPRightConfig object if needed.","message":"SPRight no longer supports direct instantiation with a config dictionary; use the default constructor.","severity":"breaking","affected_versions":">=25.0.0"},{"fix":"Replace calls to spright.mcmc with SPRight().predict().","message":"The function 'spright.mcmc' has been deprecated in favor of the class-based API.","severity":"deprecated","affected_versions":">=24.5.0"},{"fix":"Convert masses and radii to Earth units before calling predict.","message":"Mass and radius must be in Earth units (M_earth, R_earth); using SI units will produce incorrect results.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"search_vec":"'25.6.3':27 'astronomi':30 'bayesian':2,14,32 'composit':19,35 'current':25 'densiti':5,38 'exoplanet':31 'hierarch':13 'infer':17 'interior':18,34 'interior-composit':33 'mass':6,22 'model':15 'month':29 'observ':21 'planet':10 'radius':4,24,37 'radius-dens':36 'radius-density-mass':3 'relat':7 'releas':28 'small':9 'spright':1 'use':11 'version':26","created_at":"2026-05-09T05:54:39.537341+00:00","updated_at":"2026-05-09T05:54:39.537341+00:00","problems":{"verify_error":"/tmp/tmpwuno5m3i/venv/lib/python3.12/site-packages/pytransit/models/general.py:47: SyntaxWarning: invalid escape sequence '\\m'\n  .. math:: I(\\mu) = I(1) (1 - \\sum_{n=1}^N u_n(1-\\mu^n) )\n/tmp/tmpwuno5m3i/venv/lib/python3.12/site-packages/pytransit/lpf/lpf.py:502: SyntaxWarning: invalid escape sequenc"},"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":"","cli_version":null,"type":"library","homepage":"https://spright.readthedocs.io","github":"https://github.com/hpparvi/spright","docs":null,"changelog":null,"pypi":"https://pypi.org/project/spright/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["ai-ml","data"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"install_fail","verified_at":"2026-06-29","last_verified":"2026-06-29","next_check":"2026-07-09","install_tag":null}}