Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

sdssdb

Package Overview
Dependencies
Maintainers
3
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sdssdb

SDSS product for database management

pipPyPI
Version
1.0.0
Maintainers
3

sdssdb

Versions Documentation Status Test

SDSS product for database management.

Installation

To install sdssdb for regular usage, from PyPi,

pip install sdssdb

Developer Install

git clone https://github.com/sdss/sdssdb
cd sdssdb
uv sync --python 3.12 --locked

This only installs the dependencies needed to run the code. For development, you can install extra dependencies needed for building docs or running tests with the --all-groups keyword.

uv sync --all-groups --python=3.12 --locked

If you don't have uv installed, you can install directly with pip:

git clone https://github.com/sdss/sdssdb
cd sdssdb
pip install -e .

Building Sphinx Docs locally

Within the sdssdb directory, run

sdss docs.build

To have the docs autobuild and watch for changes, use nox. To build and run the local docs server, run

nox

This will start a local docs server on a random port. You should see something like,

[sphinx-autobuild] Serving on http://127.0.0.1:54429
[sphinx-autobuild] Waiting to detect changes...

It should open the site automatically in a new browser window. If 127.0.0.1:[port] fails to load, try localhost:[port].

How to use


    >>> from sdssdb.peewee.sdss5db import catalogdb
    >>> targets = catalogdb.GaiaDR2Source.select().where(catalogdb.GaiaDR2Source.phot_g_mean_mag < 15)

Keywords

astronomy

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts