Skip to main content
Test Coverage Latest release BSD-3 clause license PyPI - Python Version

tsgettoolbox_cdec - Quick Guide

The ‘tsgettoolbox_cdec’ is a plugin-in for ‘tsgettoolbox’ that supplies a command line interface and Python library to get time-series data from the California Data Exchange Center (CDEC). The tsgettoolbox_cdec will work with Python and 3.10+.

Documentation

Reference documentation is at tsgettoolbox CDEC API.

Installation

At the command line:

$ pip install tsgettoolbox_cdec

OR

$ conda install -c conda-forge tsgettoolbox_cdec

Usage Summary - Command Line

Just run ‘tsgettoolbox –help’ to get a list of subcommands. To get detailed help for a particular sub-command, for instance ‘coops’, type ‘tsgettoolbox coops –help’.

Sub-command

Spatial Extent

Time Extent

Type

Time Interval

Description

cdec

US/CA

varies

station

E,H,D,M

California Department of Water Resources

Time Interval Code

Description

E

Event

T

Minute

H

Hourly

D

Daily

M

Monthly

A

Annual

Usage Summary - Python Library

To use the tsgettoolbox in a project:

from tsgettoolbox import tsgettoolbox
df = tsgettoolbox.cdec("PRA", start_date="2000-01-01", end_date="2000-02-01")
print(df.head())

Refer to the API Documentation at tsgettoolbox CDEC API.

Usage Summary - Command Line

tsgettoolbox cdec –start_date 2000-01-01 –end_date 2000-02-01 “PRA” > output.csv

Refer to the command line documentation at tsgettoolbox CLI.

Development

Development is managed on bitbucket or github. https://bitbucket.org/timcera/tsgettoolbox_cdec/overview. https://github.com/timcera/tsgettoolbox_cdec

Metadata

Release files for tsgettoolbox-cdec 27.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tsgettoolbox-cdec 27.0.1
File Size Uploaded Provenance Actions
tsgettoolbox_cdec-27.0.1.tar.gz 14.2 kB With provenance Details for tsgettoolbox_cdec-27.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for tsgettoolbox-cdec 27.0.1
File Interpreter ABI Platform Actions
tsgettoolbox_cdec-27.0.1-py3-none-any.whl Python 3 none any Details for tsgettoolbox_cdec-27.0.1-py3-none-any.whl

Total release size: 22.9 kB

Release files / tsgettoolbox_cdec-27.0.1.tar.gz

Download URL tsgettoolbox_cdec-27.0.1.tar.gz
Size 14.2 kB
Tags Source
SHA-256 checksum
How to use checksums
d624a5d43907bb7da672ed5b50011690169dbddb26942d75206557f6d7406d52
BLAKE2b-256 checksum
How to use checksums
73ee455ec2ad9279323c25e9f25c1642e7dba686da07ada7907ea52474f32706
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 14, 2026.

Transparency log

Release files / tsgettoolbox_cdec-27.0.1-py3-none-any.whl

Download URL tsgettoolbox_cdec-27.0.1-py3-none-any.whl
Size 8.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
37282375323b76149359a00a98567fcec1263fdd9f12224d13ff5af5558a2fd5
BLAKE2b-256 checksum
How to use checksums
a62fc6ebe9f5308383e0587aa86a865c1f7cec5bdca5617e3e4d08a1805713fb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 14, 2026.

Transparency log

Security for tsgettoolbox-cdec 27.0.1

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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for tsgettoolbox_cdec-27.0.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 14, 2026.

Transparency log

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.

Release history Release notifications | RSS feed

This release

27.0.1 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page