vsoneliner


Namevsoneliner JSON
Version 0.0.2.post1 PyPI version JSON
download
home_pageNone
SummaryCommandline program for creating Python script for VSPipe
upload_time2024-12-27 08:49:52
maintainerNone
docs_urlNone
authorNone
requires_python>=3
licenseNone
keywords vapoursynth
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # vsoneliner

vsoneliner generates VapourSynth script file for VSPipe from commandline. It is for the situation where only the simplest VapourSynth script is needed, and where writing and keeping a script file becomes cumbersome.  

Install vsoneliner:  
```sh
python -m pip install vsoneliner
```

An Example of using vsoneliner using [fish shell](https://fishshell.com/):  
```fish
INPUT=(realpath "input.mkv") vspipe (python -m vsoneliner "import mvsfunc as mvf" "r\"$INPUT\" |> core.lsmas.LWLibavSource |> mvf.Depth\$(depth=10) |> .set_output()") -c y4m - | x264 --demuxer y4m --output "output.mkv" -
```
Excerpt:  
```
python -m vsoneliner "import mvsfunc as mvf" "r\"$INPUT\" |> core.lsmas.LWLibavSource |> mvf.Depth\$(depth=10) |> .set_output()"
```

* Each positional argument to vsoneliner corresponds to one line in the resulting Python script. In this example, we have two lines: `import mvsfunc as mvf` and `r"INPUT" |> core.lsmas.LWLibavSource |> mvf.Depth$(depth=10) |> .set_output()`.  
* vsoneliner by default imports `from vapoursynth import core` and `import vapoursynth as vs`, but any additional imports have to be written manually, such as `import mvsfunc as mvf` in the example.  
* vsoneliner accepts [Coconut](https://coconut-lang.org/) language in the commandline. Coconut language's syntax is a strict superset of Python, which means if you don't want to learn it, you can write vanilla Python code and it will work just fine. Here in this example, `r"INPUT" |> core.lsmas.LWLibavSource |> mvf.Depth$(depth=10) |> .set_output()` transpiles to `mvf.Depth(core.lsmas.LWLibavSource(r"INPUT"), depth=10).set_output()`.  
* vsoneliner saves the commands to a Python file with `.vpy` file extension and then print the path to the file to stdout before exiting. Use `$()` in a POSIX shell to feed this file to vspipe. vsoneliner also accepts `--verbose` argument, with which vsoneliner will also print the path to the file to stderr.  

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "vsoneliner",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3",
    "maintainer_email": null,
    "keywords": "VapourSynth",
    "author": null,
    "author_email": "Akatsumekusa <Akatsumekusa@protonmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/d9/80/14e44b05260f33cbb3d100536ff23eeccbc7c07548093b83a31dbfd2a579/vsoneliner-0.0.2.post1.tar.gz",
    "platform": null,
    "description": "# vsoneliner\n\nvsoneliner generates VapourSynth script file for VSPipe from commandline. It is for the situation where only the simplest VapourSynth script is needed, and where writing and keeping a script file becomes cumbersome.  \n\nInstall vsoneliner:  \n```sh\npython -m pip install vsoneliner\n```\n\nAn Example of using vsoneliner using [fish shell](https://fishshell.com/):  \n```fish\nINPUT=(realpath \"input.mkv\") vspipe (python -m vsoneliner \"import mvsfunc as mvf\" \"r\\\"$INPUT\\\" |> core.lsmas.LWLibavSource |> mvf.Depth\\$(depth=10) |> .set_output()\") -c y4m - | x264 --demuxer y4m --output \"output.mkv\" -\n```\nExcerpt:  \n```\npython -m vsoneliner \"import mvsfunc as mvf\" \"r\\\"$INPUT\\\" |> core.lsmas.LWLibavSource |> mvf.Depth\\$(depth=10) |> .set_output()\"\n```\n\n* Each positional argument to vsoneliner corresponds to one line in the resulting Python script. In this example, we have two lines: `import mvsfunc as mvf` and `r\"INPUT\" |> core.lsmas.LWLibavSource |> mvf.Depth$(depth=10) |> .set_output()`.  \n* vsoneliner by default imports `from vapoursynth import core` and `import vapoursynth as vs`, but any additional imports have to be written manually, such as `import mvsfunc as mvf` in the example.  \n* vsoneliner accepts [Coconut](https://coconut-lang.org/) language in the commandline. Coconut language's syntax is a strict superset of Python, which means if you don't want to learn it, you can write vanilla Python code and it will work just fine. Here in this example, `r\"INPUT\" |> core.lsmas.LWLibavSource |> mvf.Depth$(depth=10) |> .set_output()` transpiles to `mvf.Depth(core.lsmas.LWLibavSource(r\"INPUT\"), depth=10).set_output()`.  \n* vsoneliner saves the commands to a Python file with `.vpy` file extension and then print the path to the file to stdout before exiting. Use `$()` in a POSIX shell to feed this file to vspipe. vsoneliner also accepts `--verbose` argument, with which vsoneliner will also print the path to the file to stderr.  \n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Commandline program for creating Python script for VSPipe",
    "version": "0.0.2.post1",
    "project_urls": {
        "Documentation": "https://github.com/Akatmks/vsoneliner",
        "Issues": "https://github.com/Akatmks/vsoneliner/issues",
        "Source": "https://github.com/Akatmks/vsoneliner"
    },
    "split_keywords": [
        "vapoursynth"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "ecb35201970596959fc82fb3ab920addb32ec388b37898f53caa30b4e589aa8f",
                "md5": "22bdcc7ab5d34690ed5cfe231c459929",
                "sha256": "728c35ea0f1b2f2f96948b60b87de6274f21710cccecd6ad0790301fb86833e6"
            },
            "downloads": -1,
            "filename": "vsoneliner-0.0.2.post1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "22bdcc7ab5d34690ed5cfe231c459929",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3",
            "size": 5854,
            "upload_time": "2024-12-27T08:49:49",
            "upload_time_iso_8601": "2024-12-27T08:49:49.944677Z",
            "url": "https://files.pythonhosted.org/packages/ec/b3/5201970596959fc82fb3ab920addb32ec388b37898f53caa30b4e589aa8f/vsoneliner-0.0.2.post1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d98014e44b05260f33cbb3d100536ff23eeccbc7c07548093b83a31dbfd2a579",
                "md5": "1f7d0e06a85db84ba04ab8b3a34a62cf",
                "sha256": "6bf8c08927379ead0373c633fbdfeb77c62f769be73c363577814d436befdf7f"
            },
            "downloads": -1,
            "filename": "vsoneliner-0.0.2.post1.tar.gz",
            "has_sig": false,
            "md5_digest": "1f7d0e06a85db84ba04ab8b3a34a62cf",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3",
            "size": 3128,
            "upload_time": "2024-12-27T08:49:52",
            "upload_time_iso_8601": "2024-12-27T08:49:52.043439Z",
            "url": "https://files.pythonhosted.org/packages/d9/80/14e44b05260f33cbb3d100536ff23eeccbc7c07548093b83a31dbfd2a579/vsoneliner-0.0.2.post1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-12-27 08:49:52",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Akatmks",
    "github_project": "vsoneliner",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "vsoneliner"
}
        
Elapsed time: 0.35563s