main
Main FastAPI app for serving downloads.
run_in_process(fn, *args, **kwargs)
async
#
Helper to run in background
Source code in src/sdss_explorer/server/main.py
57 58 59 60 61 62 |
|
start_filter(uid, release, datatype, dataset, **kwargs)
async
#
Starts a filtering job
Source code in src/sdss_explorer/server/main.py
65 66 67 68 69 70 71 72 73 74 75 76 77 78 |
|
status_all()
async
#
Get all job statuses
Source code in src/sdss_explorer/server/main.py
142 143 144 145 |
|
status_handler(uid)
async
#
Status check endpoint
Source code in src/sdss_explorer/server/main.py
136 137 138 139 |
|
task_handler(background_tasks, release, datatype, dataset, name='A', expression='', carton='', mapper='', flags='', crossmatch='', cmtype='gaia_dr3', combotype='AND', invert=False)
async
#
Task handler endpoint
Note
You can't have this kwargs overload because it needs to know the properties.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
release
|
str
|
data release to hit |
required |
datatype
|
str
|
datatype, star or visit |
required |
dataset
|
str
|
specific dataset |
required |
name
|
str
|
name of subset, used in export |
'A'
|
expression
|
str
|
custom filter expression |
''
|
carton
|
str
|
list of cartons |
''
|
mapper
|
str
|
list of selected mappers |
''
|
flags
|
str
|
list of flags |
''
|
crossmatch
|
str
|
crossmatch multiline string |
''
|
cmtype
|
str
|
crossmatch identifier type to search for |
'gaia_dr3'
|
combotype
|
str
|
how to combine filters. unused. |
'AND'
|
invert
|
bool
|
whether to invert filters. unused. |
False
|
Source code in src/sdss_explorer/server/main.py
81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 |
|