{"id":19264295,"url":"https://github.com/cphyc/batch_generator","last_synced_at":"2026-06-23T10:31:26.440Z","repository":{"id":74150423,"uuid":"128414403","full_name":"cphyc/batch_generator","owner":"cphyc","description":null,"archived":false,"fork":false,"pushed_at":"2018-04-06T16:48:29.000Z","size":26,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-23T19:15:18.927Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cphyc.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-04-06T15:43:06.000Z","updated_at":"2018-04-06T16:48:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"7ee10df3-bfe4-4b20-beee-a42d80db17f6","html_url":"https://github.com/cphyc/batch_generator","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cphyc/batch_generator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cphyc%2Fbatch_generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cphyc%2Fbatch_generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cphyc%2Fbatch_generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cphyc%2Fbatch_generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cphyc","download_url":"https://codeload.github.com/cphyc/batch_generator/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cphyc%2Fbatch_generator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34686725,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-23T02:00:07.161Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-09T19:40:42.801Z","updated_at":"2026-06-23T10:31:26.423Z","avatar_url":"https://github.com/cphyc.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Batch generator\n\nThis utility helps creating and submitting jobs on clusters. It also provides a unified interface to some popular job schedular (qsub and slurm).\n\n## Install\n\n```bash\ngit clone https://github.com/cphyc/batch_generator.git\npip install .\n```\n\n## Usage\n\nTo get a rough idea of how to use the utility, use\n```\nbatch --help\n```\nor send me an email.\n\n## Templates\n\nThe utility helps creating jobs using templates. Template are bash files with placeholders: the utility helps to fill the placeholders for you!\nTemplates should be stored in `~/.local/share/batch_generator/` on Linux systems and be valid bash files.\n\nPlaceholders have the following syntax:\n```\n{{name:type|Description}}\n{{name:type|Description|default value}}\n{{valid python code}}\n```\nThe type should be a valid python type (e.g. `int`, `str`, `float`).\n\n### Note about expressions\nIn the last case, the expression will be evaluated by Python providing the previously entered values.\n\n### Example\nHere is a (very) simple template for the qsub system:\n```\n#PBS -l nodes={{nodes:int|Number of nodes|1}}:ppn={{ppn:int|Number of process per node|16}}\n\necho Running on {{nodes*ppn}}.\n```\nIf you run `batch`:\n```\n$ batch g\nNumber of nodes [1]: 2\nNumber of process per node [16]: 32\n$ cat job.sh\n#PBS -l nodes=2:ppn=32\n\necho Running on 64 nodes.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcphyc%2Fbatch_generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcphyc%2Fbatch_generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcphyc%2Fbatch_generator/lists"}