wgpu-native-installer


Namewgpu-native-installer JSON
Version 0.0.1 PyPI version JSON
download
home_pageNone
SummaryInstall wgpu-native
upload_time2024-05-04 09:03:36
maintainerNone
docs_urlNone
authorAsher Jingkong Chen
requires_python>=3.8
licenseMIT License Copyright (c) 2024 Asher Jingkong Chen Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords wgpu installer cli
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # wgpu-native-installer

> Install wgpu-native

[![PyPI](https://img.shields.io/pypi/v/wgpu-native-installer?style=for-the-badge&logo=pypi&logoColor=white)](https://pypi.org/project/wgpu-native-installer/)
[![PyPI](https://img.shields.io/pypi/pyversions/wgpu-native-installer?style=for-the-badge&logo=python&logoColor=white)](https://pypi.org/project/wgpu-native-installer/)

## Introduction

Install the GitHub assets from [gfx-rs/wgpu-native](https://github.com/gfx-rs/wgpu-native).

The installer has additional options to customize the installation.

## Installation

Choose one of the following methods:

1. Install the package from PyPI:

   Website [link](https://pypi.org/project/wgpu-native-installer/)

   ```shell
   pip install wgpu-native-installer
   ```

2. Install the package from GitHub:

   Website [link](https://github.com/AsherJingkongChen/wgpu-native-installer/releases/latest)

   ```shell
   curl -LO $ASSET_URL_ends_with_whl
   pip install *.whl
   ```

## Usage

Choose one of the following methods. It depends on your requirements.

1. Download the artifacts of wgpu-native on your machine:

   ```shell
   python -m wgpu_native_installer -v
   ls -l
   # c++ -L. -lwgpu_native ....
   ```

2. Import the CLI as a package:

    ```python
    from asyncio import run
    from wgpu_native_installer import main as install_wgpu_native

    if __name__ == "__main__":
        run(install_wgpu_native(["-vv", "--library", "dynamic", "static"]))
    ```

    ```python
    from asyncio import run
    from wgpu_native_installer.github_release import parse_release_latest

    async def amain():
        release = await parse_release_latest("pytorch", "pytorch")
        asset = release.search_assets(r".*\.tar\.gz")[0]
        async for _ in asset.download("pytorch-latest.tar.gz", show_progress=True):
            pass

    if __name__ == "__main__":
        run(amain())
    ```

3. Clone the repository and reuse the codes you like:

   ```shell
   git clone https://github.com/AsherJingkongChen/wgpu-native-installer.git
   ```

## Details

### Goals

As one of my Python package templates, it should be TSPC-compliant.

- Tested
- Simple
- Performant
- Customizable

## License

[MIT](./LICENSE)

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "wgpu-native-installer",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": "wgpu, installer, cli",
    "author": "Asher Jingkong Chen",
    "author_email": null,
    "download_url": null,
    "platform": null,
    "description": "# wgpu-native-installer\n\n> Install wgpu-native\n\n[![PyPI](https://img.shields.io/pypi/v/wgpu-native-installer?style=for-the-badge&logo=pypi&logoColor=white)](https://pypi.org/project/wgpu-native-installer/)\n[![PyPI](https://img.shields.io/pypi/pyversions/wgpu-native-installer?style=for-the-badge&logo=python&logoColor=white)](https://pypi.org/project/wgpu-native-installer/)\n\n## Introduction\n\nInstall the GitHub assets from [gfx-rs/wgpu-native](https://github.com/gfx-rs/wgpu-native).\n\nThe installer has additional options to customize the installation.\n\n## Installation\n\nChoose one of the following methods:\n\n1. Install the package from PyPI:\n\n   Website [link](https://pypi.org/project/wgpu-native-installer/)\n\n   ```shell\n   pip install wgpu-native-installer\n   ```\n\n2. Install the package from GitHub:\n\n   Website [link](https://github.com/AsherJingkongChen/wgpu-native-installer/releases/latest)\n\n   ```shell\n   curl -LO $ASSET_URL_ends_with_whl\n   pip install *.whl\n   ```\n\n## Usage\n\nChoose one of the following methods. It depends on your requirements.\n\n1. Download the artifacts of wgpu-native on your machine:\n\n   ```shell\n   python -m wgpu_native_installer -v\n   ls -l\n   # c++ -L. -lwgpu_native ....\n   ```\n\n2. Import the CLI as a package:\n\n    ```python\n    from asyncio import run\n    from wgpu_native_installer import main as install_wgpu_native\n\n    if __name__ == \"__main__\":\n        run(install_wgpu_native([\"-vv\", \"--library\", \"dynamic\", \"static\"]))\n    ```\n\n    ```python\n    from asyncio import run\n    from wgpu_native_installer.github_release import parse_release_latest\n\n    async def amain():\n        release = await parse_release_latest(\"pytorch\", \"pytorch\")\n        asset = release.search_assets(r\".*\\.tar\\.gz\")[0]\n        async for _ in asset.download(\"pytorch-latest.tar.gz\", show_progress=True):\n            pass\n\n    if __name__ == \"__main__\":\n        run(amain())\n    ```\n\n3. Clone the repository and reuse the codes you like:\n\n   ```shell\n   git clone https://github.com/AsherJingkongChen/wgpu-native-installer.git\n   ```\n\n## Details\n\n### Goals\n\nAs one of my Python package templates, it should be TSPC-compliant.\n\n- Tested\n- Simple\n- Performant\n- Customizable\n\n## License\n\n[MIT](./LICENSE)\n",
    "bugtrack_url": null,
    "license": "MIT License  Copyright (c) 2024 Asher Jingkong Chen  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.  THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ",
    "summary": "Install wgpu-native",
    "version": "0.0.1",
    "project_urls": {
        "Homepage": "https://github.com/AsherJingkongChen/wgpu-native-installer",
        "Repository": "https://github.com/AsherJingkongChen/wgpu-native-installer.git"
    },
    "split_keywords": [
        "wgpu",
        " installer",
        " cli"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "97228bc08f0e510159ac075555cfe6c74456d560b42b7eb1cea4fd48d4904f16",
                "md5": "c8779ee346a3b9b26be4e0137d133f57",
                "sha256": "9dd3f3035e0f55bf851de3b6dd4d3dbfa0dbbb3559230ed515bc1d2dfa323531"
            },
            "downloads": -1,
            "filename": "wgpu_native_installer-0.0.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "c8779ee346a3b9b26be4e0137d133f57",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 16903,
            "upload_time": "2024-05-04T09:03:36",
            "upload_time_iso_8601": "2024-05-04T09:03:36.750732Z",
            "url": "https://files.pythonhosted.org/packages/97/22/8bc08f0e510159ac075555cfe6c74456d560b42b7eb1cea4fd48d4904f16/wgpu_native_installer-0.0.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-05-04 09:03:36",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "AsherJingkongChen",
    "github_project": "wgpu-native-installer",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "wgpu-native-installer"
}
        
Elapsed time: 0.53083s