Skip to main content

Data acquisition tools for Wagnerds

Project description

WagsTAILS

Technology-Assisted Information Loading and Structure (TAILS) for Wagnerds.

This tool provides data acquisition and access utilities for several projects developed by the Wagner Lab.

Installation

Install from PyPI:

python3 -m pip install wags_tails

Usage

Data source classes provide a get_latest() method that acquires the most recent available data file and returns a pathlib.Path object with its location:

>>> from wags_tails.mondo import MondoData
>>> m = MondoData()
>>> m.get_latest(force_refresh=True)
Downloading mondo.owl: 100%|█████████████████| 171M/171M [00:28<00:00, 6.23MB/s]
PosixPath('/Users/genomicmedlab/.local/share/wags_tails/mondo/mondo_v2023-09-12.owl'), 'v2023-09-12'

Initialize the source class with the silent parameter set to True to suppress console output:

>>> from wags_tails.mondo import MondoData
>>> m = MondoData(silent=True)
>>> latest_file, version = m.get_latest(force_refresh=True)

Configuration

All data is stored within source-specific subdirectories of a designated WagsTails data directory. By default, this location is ~/.local/share/wags_tails/, but it can be configured by passing a Path directly to a data class on initialization, via the $WAGS_TAILS_DIR environment variable, or via XDG data environment variables.

Development

Check out the repository:

git clone https://github.com/GenomicMedLab/wags-tails
cd wags-tails

Create a developer environment, e.g. with virtualenv:

python3 -m virtualenv venv
source venv/bin/activate

Install dev and test dependencies, including pre-commit:

python3 -m pip install -e '.[dev,test]'
pre-commit install

Check style:

black . && ruff check --fix .

Run tests:

pytest

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

wags_tails-0.1.1.tar.gz (172.9 kB view details)

Uploaded Source

Built Distribution

wags_tails-0.1.1-py3-none-any.whl (28.3 kB view details)

Uploaded Python 3

File details

Details for the file wags_tails-0.1.1.tar.gz.

File metadata

  • Download URL: wags_tails-0.1.1.tar.gz
  • Upload date:
  • Size: 172.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for wags_tails-0.1.1.tar.gz
Algorithm Hash digest
SHA256 304e9aac49b98e355db1c59f1811fadc76b7bb654de2ee211337ee3aa7bb4dee
MD5 f21f7db7374b087ad3255338e0f9c1a7
BLAKE2b-256 3b9e2fccc8d406b0dd50798cd5a5689c71ee7ea9a53ddea74016aa87a84598c8

See more details on using hashes here.

File details

Details for the file wags_tails-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: wags_tails-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 28.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for wags_tails-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 70c8c5d57a9cb59b6e5b0f868746aad32bdd6753d38d99448f209acec4817c15
MD5 c6513e2c03f47c0abc1e12f6f39cca29
BLAKE2b-256 0af3e3adab2d884cf4b946b2f889b69f75964d25e0353274a8c0712333a6e4ec

See more details on using hashes here.

Supported by

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