Skip to main content

SDSS product for database management

Project description

sdssdb

Versions Documentation Status Test

SDSS product for database management.

Useful links

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)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sdssdb-1.1.0.tar.gz (177.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sdssdb-1.1.0-py3-none-any.whl (207.6 kB view details)

Uploaded Python 3

File details

Details for the file sdssdb-1.1.0.tar.gz.

File metadata

  • Download URL: sdssdb-1.1.0.tar.gz
  • Upload date:
  • Size: 177.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for sdssdb-1.1.0.tar.gz
Algorithm Hash digest
SHA256 ee34bbd780d5fff0b70dff06d9be65168d42097b1a3589a9ff10d41d035cc5e2
MD5 c68cda40d9eaf37d411d16e3fe0dc511
BLAKE2b-256 0bbf9217ebf336d689f8c5b2364830e415956ce9f09a25ea841265d28a38bf74

See more details on using hashes here.

Provenance

The following attestation bundles were made for sdssdb-1.1.0.tar.gz:

Publisher: release.yml on sdss/sdssdb

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sdssdb-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: sdssdb-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 207.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for sdssdb-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6d3b8de884da9c2b8201cae5b65f8f559e03c87e4ce35a9f8aa68d1836ebeaac
MD5 e154b5ce9c93447ecab5de87d4881dae
BLAKE2b-256 3d06a6a613db08a401abe459961306f65f62682cacaf9f9d65927847c4e414ea

See more details on using hashes here.

Provenance

The following attestation bundles were made for sdssdb-1.1.0-py3-none-any.whl:

Publisher: release.yml on sdss/sdssdb

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page