dbconnect#

Basic database utilities for setting up and launching queries.

Also contains an extension for the SciScript-Python interface with CasJobs.

This module was NOT designed to be used directly by users or as a replacement for SciScript-Python. This module is used internally by AstroDB to optimize queries. It is highly recommended that you use that class for accessing the databases. For queries not related to AstroPath data please use the SciScript-Python.

dbconnect Classes#

CasJobsTask

Builds various CasJobs header formats and handles responses.

CasJobsUrllib3Client

Execute queries against CasJobs RESTAPI using urllib3.

SciBase

Authenticate to SciServer and query the AstroPath databases.

DirectDBConnection

Connect directly to an AstroPath SQL Server database to write tables.

dbconnect Functions#

_tls_context()

Build an SSL context trusting both the operating system store and certifi.

canonical_database_name(database)

Resolve a database name to the spelling it is registered under.

dbconnect Exceptions#

dbconnect Contents#

_DATABASES_BY_LOWER_NAME#