sedbuilder
The sedbuilder package implements a Python interface to the ASI Space Science Data Center's SED Builder REST API.
Overview
This package provides programmatic access to multi-wavelength spectral energy distribution (SED) data from catalogs, surveys, and archival observations across the electromagnetic spectrum. It is based on SED Builder, a software developed at the ASI-SSDC to produce and display the SED data over the web.
Installation
pip install ssdc-sedbuilder
Quick Start
You can fetch data by querying a source name or its coordinates.
from sedbuilder import get_data
# By coordinates
response = get_data(ra=244.9795, dec=-15.64022)
# By name
response = get_data(name="Sco X-1")
# Access data in different formats
table = response.to_astropy() # Astropy Table
data_dict = response.to_dict() # Python dictionary
jt = response.to_jetset(z=0.034) # Jetset table
json_str = response.to_json() # JSON string
df = response.to_pandas() # Pandas DataFrame (requires pandas)
# Find where data come from
first_reference = response.datasets[0].reference
refs = response.references()
When calling get_data by name, resolve_name queries the SSDC server — which checks SSDC, SIMBAD, and NED — falling back to the CDS Sesame resolver via astropy if no match is found.
from sedbuilder import resolve_name
(ra, dec), db = resolve_name("Crab Nebula")
Resolving a source name takes time. We suggest querying on coordinates when available.
Development
# install with development dependencies
git clone https://github.com/peppedilillo/sedbuilder.git
cd sedbuilder
pip install -e ".[dev,docs]"
# or with uv
uv sync --extra dev --extra docs
# routes queries to test server (requires internal network)
source dev.env
# install linter pre-commit hooks
pre-commit install
# runs tests
pytest
# runs smoke tests against the live server
pytest --smoke
# serve and build documentation
mkdocs serve
mkdocs build
For more, see documentation.
Requests
Need a new feature? Don't hesitate to ask in our discussion section.
Documentation
Check out our API reference.
Metadata
Release files for ssdc-sedbuilder 3.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ssdc_sedbuilder-3.0.0.tar.gz | 446.5 kB | Without provenance | Details for ssdc_sedbuilder-3.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ssdc_sedbuilder-3.0.0-py3-none-any.whl | Python 3 | none | any | Details for ssdc_sedbuilder-3.0.0-py3-none-any.whl |
Total release size: 484.8 kB
Release files / ssdc_sedbuilder-3.0.0.tar.gz
| Download URL | ssdc_sedbuilder-3.0.0.tar.gz |
|---|---|
| Size | 446.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
eb4075f276dea7e80cd21495c0ce56a6b8814a69e107bb029b054a3ebfd1304e
|
|
BLAKE2b-256 checksum How to use checksums |
081f27c8a064029ecd063cfe766abf2cd36ea533955231212956055fe08fa886
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-httpx/0.27.0
|
Release files / ssdc_sedbuilder-3.0.0-py3-none-any.whl
| Download URL | ssdc_sedbuilder-3.0.0-py3-none-any.whl |
|---|---|
| Size | 38.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2fa731e46fe26513512a3e852ffaec528400200997cff6467e10a576a47f5127
|
|
BLAKE2b-256 checksum How to use checksums |
d618bfce24528013f34416a282eda9adf94e1e804248da991345ad84b1736b16
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-httpx/0.27.0
|
Security for ssdc-sedbuilder 3.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.