toyflow


Nametoyflow JSON
Version 0.4.1 PyPI version JSON
download
home_pagehttps://github.com/yujiepan-work/toyflow
SummaryLightweight flow execution tool.
upload_time2025-01-03 09:54:10
maintainerNone
docs_urlNone
authoryujiepan
requires_python>=3.8
licenseMIT license
keywords toyflow
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # toyflow

Lightweight flow execution tool.

Work in progress.

```bash
pip install git+https://github.com/yujiepan-work/toyflow.git
```

#### Usage
```python
from toyflow.launcher import Job, Launcher

jobs = []
for i in range(5):
    job = Job(
        cmd=["sleep", str(i), ";", "echo", str(i)],
        cwd=".",
        log_dir=f"./tmp/{i}",
        cuda_quantity=1,
        job_name=f'Job #{i}',
    )
    jobs.append(job)

Launcher(cuda_list=[0, 1], jobs=jobs).start()
```


#### Note
If you find the interface has changed, you can install the older version: 
```bash
pip install git+https://github.com/yujiepan-work/toyflow.git@v0.1.0
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/yujiepan-work/toyflow",
    "name": "toyflow",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": "toyflow",
    "author": "yujiepan",
    "author_email": "yujiepan@no-email.example.com",
    "download_url": null,
    "platform": null,
    "description": "# toyflow\n\nLightweight flow execution tool.\n\nWork in progress.\n\n```bash\npip install git+https://github.com/yujiepan-work/toyflow.git\n```\n\n#### Usage\n```python\nfrom toyflow.launcher import Job, Launcher\n\njobs = []\nfor i in range(5):\n    job = Job(\n        cmd=[\"sleep\", str(i), \";\", \"echo\", str(i)],\n        cwd=\".\",\n        log_dir=f\"./tmp/{i}\",\n        cuda_quantity=1,\n        job_name=f'Job #{i}',\n    )\n    jobs.append(job)\n\nLauncher(cuda_list=[0, 1], jobs=jobs).start()\n```\n\n\n#### Note\nIf you find the interface has changed, you can install the older version: \n```bash\npip install git+https://github.com/yujiepan-work/toyflow.git@v0.1.0\n```\n",
    "bugtrack_url": null,
    "license": "MIT license",
    "summary": "Lightweight flow execution tool.",
    "version": "0.4.1",
    "project_urls": {
        "Homepage": "https://github.com/yujiepan-work/toyflow"
    },
    "split_keywords": [
        "toyflow"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "0161a4b6228ff9b243609639b97d765373089a054f700cfdf10d96315da6c95a",
                "md5": "396ac05481eff86cdff3a7514f2a3855",
                "sha256": "056e6c4581db0877ca28650d61331a78b0bf7902b19e7e7c3040c1e1dfb6f55f"
            },
            "downloads": -1,
            "filename": "toyflow-0.4.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "396ac05481eff86cdff3a7514f2a3855",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 18105,
            "upload_time": "2025-01-03T09:54:10",
            "upload_time_iso_8601": "2025-01-03T09:54:10.901895Z",
            "url": "https://files.pythonhosted.org/packages/01/61/a4b6228ff9b243609639b97d765373089a054f700cfdf10d96315da6c95a/toyflow-0.4.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-01-03 09:54:10",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "yujiepan-work",
    "github_project": "toyflow",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "toyflow"
}
        
Elapsed time: 1.05659s