Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,39 @@ stormdb-python

__NB! Help with documentation and examples needed!__

Command line utility: `submit_to_cluster`
-----------------------------------------
Install with [uv](https://docs.astral.sh/uv/) by calling

``` bash
uv tool install "stormdb @ https://github.com/meeg-cfin/stormdb-python.git"
```

which creates symlinks in your `~/.local/bin` that lets you use `submit_to_cluster`

```
usage: submit_to_cluster [-h] [-n N_THREADS] [-q QUEUE] [-m TOTAL_MEMORY] [-p PROJECT] [-w WORKING_DIR] [--noclean] exec_cmd

positional arguments:
exec_cmd Full command to execute, in quotes (")

options:
-h, --help show this help message and exit
-n N_THREADS, --n_threads N_THREADS
Number of threads to run per process.
-q QUEUE, --queue QUEUE
Name of queue to submit to
-m TOTAL_MEMORY, --total_memory TOTAL_MEMORY
Total amount of memory to request (max 1 thread). Format: M=megabytes, G=gigabytes (e.g. 30G). See docstring of
`ClusterJob` for details!
-p PROJECT, --project PROJECT
Name of project (or set MINDLABPROJ)
-w WORKING_DIR, --working_dir WORKING_DIR
Working directory for the job (default: cwd)
--noclean Do not clean up the qsub submission script.
```


Submodule: access
-----------------

Expand Down
10 changes: 10 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[project]
name = "stormdb"
version = "0.7.dev0"
description = "Tools for accessing StormDb @ CFIN"
readme = "README.md"
requires-python = ">=3.11"
dependencies = [
"requests",
"six",
]