Skip to main content

Data acquisition tools for Wagnerds

Project description

Wags-TAILS

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

image image image Actions status

This tool provides data acquisition and access utilities for several projects developed by the Wagner Lab. It designates a storage location in user-space where external data files can be saved, and provides methods to download and update them when available.

It is currently used in:


Documentation · Installation · Usage · API reference


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.obo: 100%|█████████████████| 171M/171M [00:28<00:00, 6.23MB/s]
PosixPath('/Users/genomicmedlab/.local/share/wags_tails/mondo/mondo_v2023-09-12.obo'), '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.


Feedback and contributing

We welcome bug reports, feature requests, and code contributions from users and interested collaborators. The documentation contains guidance for submitting feedback and contributing new code.

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.3.tar.gz (186.1 kB view details)

Uploaded Source

Built Distribution

wags_tails-0.1.3-py3-none-any.whl (32.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: wags_tails-0.1.3.tar.gz
  • Upload date:
  • Size: 186.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for wags_tails-0.1.3.tar.gz
Algorithm Hash digest
SHA256 05aca5ff8110d674dafadae1f69632ecd5585d1f3766841bc0f41980c115318a
MD5 bf58fe687e99d181c71eb7c3d9b2b3a1
BLAKE2b-256 9a0a2beb6741ccfb7ada4c51bb90e1674ff00af1adb1db008accac8dac21a424

See more details on using hashes here.

File details

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

File metadata

  • Download URL: wags_tails-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 32.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for wags_tails-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 5690ae00ead2083fbb0a567b052d06ddafce48dddf9c7b9bcef829d05f40a2b0
MD5 fb11686232c7679b3cd1cf1b3743fc1e
BLAKE2b-256 feede43449ffff40e8a50a9bc30b4d8c4835415bf448676732dc520c07f0e03c

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