Skip to main content

Housekeeper

Housekeeper tests Coverage Status CodeFactor Code style: black

Store, tag, fetch, and archive files with ease 🗃

Housekeeper is a tool that aims to provide:

  • a backend for storing versioned bundles of files
  • different interfaces (Python, CLI, REST) for fetching files based on tags
  • a way to backup and retrieve bundles from long-term storage

Installation

Housekeeper written in Python 3.6+ and is available on the Python Package Index (PyPI).

poetry install

If you would like to install the latest development version:

git clone https://github.com/Clinical-Genomics/housekeeper
cd housekeeper
poetry install

Contributing

Housekeeper is using GitHub flow branching model as described in our development manual.

Documentation

Command line interface

Config file

Housekeeper supports a basic YAML config. The following options are supported:

---
database: mysql+pymysql://userName:passWord@domain.com/database
root: /path/to/root/dir

The root option is used to store files within the Housekeeper context.

Command: init

Setup (or reset) the database. It will simply setup all the tables in the database. You can reset an existing database by using the --reset option.

housekeeper --database "sqlite:///hk.sqlite3" init
Success! New tables: bundle, file, file_tag_link, tag, version

Command: include

Include (hard-link) all files of an existing bundle version into Housekeeper and the root path.

housekeeper myBundle

This will only work if the bundle only has a single version which can be "imported". If you want to import a specific version of a bundle you can use the --version option.

Command: delete files

Delete files that are not on disk anymore like his: housekeeper delete files --tag fastq --notondisk

Remove all bam files before a certain date: housekeeper delete files --tag bam --before 2017-06-15

Remove fastq files from a flowcell: housekeeper delete files --tag fastq --tag H0HKKALXX

It'll always ask for confirmation, unless you add --yes: housekeeper delete files --bundle sillyfish --yes

If you do not provide a --tag or --bundle, essentially deleting everything, the function will not let you do that.

Download files

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

Source Distribution

housekeeper-4.13.17.tar.gz (45.1 kB view details)

Uploaded Source

Built Distribution

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

housekeeper-4.13.17-py3-none-any.whl (34.8 kB view details)

Uploaded Python 3

File details

Details for the file housekeeper-4.13.17.tar.gz.

File metadata

  • Download URL: housekeeper-4.13.17.tar.gz
  • Upload date:
  • Size: 45.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.4.1 CPython/3.12.13 Linux/6.17.0-1022-azure

File hashes

Hashes for housekeeper-4.13.17.tar.gz
Algorithm Hash digest
SHA256 8bd613437cf15c54e64778a933caa47a7c75b842b2cfc30e61582f0d2a1bc38c
MD5 58664561985440aa4b1538535cf62f1e
BLAKE2b-256 db2a59ddb0d3917f5797869d899fc4fc3c97f7b5076ed97a1ac88fcfbe1cf24e

See more details on using hashes here.

File details

Details for the file housekeeper-4.13.17-py3-none-any.whl.

File metadata

  • Download URL: housekeeper-4.13.17-py3-none-any.whl
  • Upload date:
  • Size: 34.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.4.1 CPython/3.12.13 Linux/6.17.0-1022-azure

File hashes

Hashes for housekeeper-4.13.17-py3-none-any.whl
Algorithm Hash digest
SHA256 9cd072534b696dec76c4e826a781a6f489e784b148e8820693c6795c2d38b953
MD5 9e1e6b785e749b801e2b41cf123accc9
BLAKE2b-256 880b1eea70aeff3ec51a78f19d571608d92b8361cbedc8cbda34877f88cda277

See more details on using hashes here.

Release history Release notifications | RSS feed

4.13.18

2 files

This release

4.13.17 This release

2 files

4.13.16

2 files

4.13.15

2 files

4.13.14

2 files

4.13.13

2 files

4.13.12

2 files

4.13.11

2 files

4.13.10

2 files

4.13.9

2 files

4.13.8

2 files

4.13.7

2 files

4.13.6

2 files

4.13.5

2 files

4.13.2

2 files

4.13.1

2 files

4.13.0

2 files

4.12.0

2 files

4.11.5

2 files

4.11.4

2 files

4.11.3

2 files

4.11.2

2 files

4.11.1

2 files

4.11.0

2 files

4.10.17

2 files

4.10.16

2 files

4.10.15

2 files

4.10.14

2 files

4.10.13

2 files

4.10.12

2 files

4.10.11

2 files

4.10.10

2 files

4.10.9

2 files

4.10.8

2 files

4.10.7

2 files

4.10.6

2 files

4.10.5

2 files

4.10.4

2 files

4.10.3

2 files

4.10.2

2 files

4.10.1

2 files

4.10.0

2 files

4.8.21

2 files

4.8.20

2 files

4.8.19

2 files

4.8.18

2 files

4.8.17

2 files

4.8.16

2 files

4.8.15

2 files

4.8.14

2 files

4.8.13

2 files

4.8.12

2 files

4.8.11

2 files

4.8.10

2 files

4.8.8

2 files

4.8.7

2 files

4.8.6

2 files

4.8.5

2 files

4.8.4

2 files

4.8.3

2 files

4.8.2

2 files

4.8.1

2 files

4.8.0

2 files

4.7.2

2 files

4.7.1

2 files

4.7.0

2 files

4.6.0

2 files

4.5.0

2 files

4.4.0

2 files

4.3.0

2 files

4.2.1

2 files

4.2.0

2 files

4.1.1

2 files

4.1.0

2 files

4.0.1

2 files

4.0.0

2 files

3.2.7

2 files

3.2.1

2 files

3.2.0

2 files

3.1.0

2 files

3.0.1

2 files

3.0.0

2 files

2.7.5

2 files

2.6.1

1 file

2.6.0

1 file

2.5.0

1 file

2.4.0

1 file

2.3.0

1 file

2.2.9

1 file

2.2.8

1 file

2.2.7

1 file

2.2.6

1 file

2.2.5

1 file

2.2.4

1 file

2.2.3

1 file

2.2.2

1 file

2.2.1

1 file

2.2.0

1 file

2.0.0

2 files

1.2.0

1 file

1.0.0

1 file

1.0.0b1

0.0.1

2 files

Supported by

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