Setup and Installation
Installation
timescale is available for download from the GitHub repository, the Python Package Index (pypi), and from conda-forge.
The simplest installation for most users will likely be using conda or mamba:
conda install -c conda-forge timescale
conda installed versions of timescale can be upgraded to the latest stable release:
conda update timescale
Development Install
To use the development repository, please fork timescale into your own account and then clone onto your system:
git clone https://github.com/pyTMD/timescale.git
timescale can then be installed within the package directory using pip:
python3 -m pip install --user .
The development version of timescale can also be installed directly from GitHub using pip:
python3 -m pip install --user git+https://github.com/pyTMD/timescale.git
Package Management with pixi
Alternatively pixi can be used to create a streamlined environment after cloning the repository:
pixi install
pixi maintains isolated environments for each project, allowing for different versions of timescale and its dependencies to be used without conflict.
The pixi.lock file within the repository defines the required packages and versions for the environment.
pixi can also create shells for running programs within the environment:
pixi shell
To see the available tasks within the timescale workspace:
pixi task list
Task Description
auto-docs Create documentation with sphinx and live-reload over a browser
clean-docs Remove build artifacts and rebuild the documentation with sphinx
docs Create documentation with sphinx
export-env Export workspace to a conda environment file
lint Run flake8 to check for compilation errors
test Run the pytest suite
Note
pixi is under active development and may change in future releases
Verifying Installation
import timescale
print(f"timescale version: {timescale.__version__}")
timescale version: 0.1.3