winlnks


Namewinlnks JSON
Version 0.2.2 PyPI version JSON
download
home_pageNone
SummaryWindows LNK File Parser and Creator
upload_time2024-10-04 11:12:49
maintainerNone
docs_urlNone
authorBIG
requires_pythonNone
licenseMIT
keywords lnk shortcut windows
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <h1 align="center"> WinLnks </h1><br>

<div align="center">
<img src="https://img.shields.io/badge/release-0.2.2-brightgray">  <img src="https://camo.githubusercontent.com/298c9cc02146ab7bc77e9fa31da10fd37891a216c5aecbd9037ea019ac43eba2/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f707974686f6e2d76332e362b2d626c75652e737667"> <img src="https://img.shields.io/badge/License-MIT-blue">  <img src="https://img.shields.io/badge/downloads-10k/Month-brightgreen">   <img src="https://camo.githubusercontent.com/87ddab2ef405aee70f76af73b8184fccbe88f9f3551c178af03018ac86db8bfc/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f636f6e747269627574696f6e732d77656c636f6d652d6f72616e67652e737667">
</div>
<br>

Python library for reading and writing Windows shortcut files (.lnk).  

This library can parse .lnk files and extract all relevant information from
them. Parsing a .lnk file yields a LNK object which can be altered and saved
again. Moreover, .lnk file can be created from scratch be creating a LNK
object, populating it with data and then saving it to a file. As that
process requires some knowledge about the internals of .lnk files, some
convenience functions are provided.


## CLI

Mainly tool has two basic commands.

#### Parse existed lnk file

```sh
winlnks parse [-h] filename [props [props ...]]

positional arguments:
  filename    lnk filename to read
  props       props path to read
 
optional arguments:
  -h, --help  show this help message and exit
```

#### Create new lnk file

```sh
usage: winlnks create [-h] [--target [TARGET]][--arguments [ARGUMENTS]] [--description [DESCRIPTION]] [--icon [ICON]]
                     [--icon-index [ICON_INDEX]] [--workdir [WORKDIR]] [--mode [{Maximized,Normal,Minimized}]]

optional arguments:
  -h, --help            show this help message and exit
  --target [TARGET], -t [TARGET]
			Target path
  --output [OUTPUT], -o [OUTPUT]
                        .lnk file path
  --arguments [ARGUMENTS], -a [ARGUMENTS]
                        additional arguments
  --description [DESCRIPTION], -d [DESCRIPTION]
                        description
  --icon [ICON], -i [ICON]
                        icon filename
  --icon-index [ICON_INDEX], -ii [ICON_INDEX]
                        icon index
  --workdir [WORKDIR], -w [WORKDIR]
                        working directory
  --mode [{Maximized,Normal,Minimized}], -m [{Maximized,Normal,Minimized}]
                        window mode
```

#### Examples
```sh
py winlnks.py parse C:\Temp\calc.lnk
py winlnks.py create -t C:\windows\system32\calc.exe -o C:\Temp\calc.lnk              
winlnks create -h
winlnks p C:\Temp\calc.lnk
winlnks c --target C:\windows\system32\calc.exe --output C:\Temp\calc.lnk --mode Minimized --description "calc shortcut"          
```


            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "winlnks",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "lnk, shortcut, windows",
    "author": "BIG",
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/7c/fa/9fe5b21a97594a83079dba9c4c79bf9955113513d77b15620099ee891119/winlnks-0.2.2.tar.gz",
    "platform": null,
    "description": "<h1 align=\"center\"> WinLnks </h1><br>\r\n\r\n<div align=\"center\">\r\n<img src=\"https://img.shields.io/badge/release-0.2.2-brightgray\">  <img src=\"https://camo.githubusercontent.com/298c9cc02146ab7bc77e9fa31da10fd37891a216c5aecbd9037ea019ac43eba2/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f707974686f6e2d76332e362b2d626c75652e737667\"> <img src=\"https://img.shields.io/badge/License-MIT-blue\">  <img src=\"https://img.shields.io/badge/downloads-10k/Month-brightgreen\">   <img src=\"https://camo.githubusercontent.com/87ddab2ef405aee70f76af73b8184fccbe88f9f3551c178af03018ac86db8bfc/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f636f6e747269627574696f6e732d77656c636f6d652d6f72616e67652e737667\">\r\n</div>\r\n<br>\r\n\r\nPython library for reading and writing Windows shortcut files (.lnk).  \r\n\r\nThis library can parse .lnk files and extract all relevant information from\r\nthem. Parsing a .lnk file yields a LNK object which can be altered and saved\r\nagain. Moreover, .lnk file can be created from scratch be creating a LNK\r\nobject, populating it with data and then saving it to a file. As that\r\nprocess requires some knowledge about the internals of .lnk files, some\r\nconvenience functions are provided.\r\n\r\n\r\n## CLI\r\n\r\nMainly tool has two basic commands.\r\n\r\n#### Parse existed lnk file\r\n\r\n```sh\r\nwinlnks parse [-h] filename [props [props ...]]\r\n\r\npositional arguments:\r\n  filename    lnk filename to read\r\n  props       props path to read\r\n \r\noptional arguments:\r\n  -h, --help  show this help message and exit\r\n```\r\n\r\n#### Create new lnk file\r\n\r\n```sh\r\nusage: winlnks create [-h] [--target [TARGET]][--arguments [ARGUMENTS]] [--description [DESCRIPTION]] [--icon [ICON]]\r\n                     [--icon-index [ICON_INDEX]] [--workdir [WORKDIR]] [--mode [{Maximized,Normal,Minimized}]]\r\n\r\noptional arguments:\r\n  -h, --help            show this help message and exit\r\n  --target [TARGET], -t [TARGET]\r\n\t\t\tTarget path\r\n  --output [OUTPUT], -o [OUTPUT]\r\n                        .lnk file path\r\n  --arguments [ARGUMENTS], -a [ARGUMENTS]\r\n                        additional arguments\r\n  --description [DESCRIPTION], -d [DESCRIPTION]\r\n                        description\r\n  --icon [ICON], -i [ICON]\r\n                        icon filename\r\n  --icon-index [ICON_INDEX], -ii [ICON_INDEX]\r\n                        icon index\r\n  --workdir [WORKDIR], -w [WORKDIR]\r\n                        working directory\r\n  --mode [{Maximized,Normal,Minimized}], -m [{Maximized,Normal,Minimized}]\r\n                        window mode\r\n```\r\n\r\n#### Examples\r\n```sh\r\npy winlnks.py parse C:\\Temp\\calc.lnk\r\npy winlnks.py create -t C:\\windows\\system32\\calc.exe -o C:\\Temp\\calc.lnk              \r\nwinlnks create -h\r\nwinlnks p C:\\Temp\\calc.lnk\r\nwinlnks c --target C:\\windows\\system32\\calc.exe --output C:\\Temp\\calc.lnk --mode Minimized --description \"calc shortcut\"          \r\n```\r\n\r\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Windows LNK File Parser and Creator",
    "version": "0.2.2",
    "project_urls": null,
    "split_keywords": [
        "lnk",
        " shortcut",
        " windows"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "23c86e84e8a2a1c0fe7eda6cf37096cabb5ecb81f967d2697d2f0d5ceb20a867",
                "md5": "dd43e5c503ddfc99029e5f521389ab91",
                "sha256": "d15ac0dc990f8c3a362f536fc260351b27226aa5f5f1d03ede4484b893b42269"
            },
            "downloads": -1,
            "filename": "winlnks-0.2.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "dd43e5c503ddfc99029e5f521389ab91",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 19615,
            "upload_time": "2024-10-04T11:12:45",
            "upload_time_iso_8601": "2024-10-04T11:12:45.928815Z",
            "url": "https://files.pythonhosted.org/packages/23/c8/6e84e8a2a1c0fe7eda6cf37096cabb5ecb81f967d2697d2f0d5ceb20a867/winlnks-0.2.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "7cfa9fe5b21a97594a83079dba9c4c79bf9955113513d77b15620099ee891119",
                "md5": "5d37b58e0f7127334c2bd006eab4ad19",
                "sha256": "045f2b854bccc352311d562d09ef4a1f858ebb2992f293549e8ca1528eef8090"
            },
            "downloads": -1,
            "filename": "winlnks-0.2.2.tar.gz",
            "has_sig": false,
            "md5_digest": "5d37b58e0f7127334c2bd006eab4ad19",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 19444,
            "upload_time": "2024-10-04T11:12:49",
            "upload_time_iso_8601": "2024-10-04T11:12:49.411725Z",
            "url": "https://files.pythonhosted.org/packages/7c/fa/9fe5b21a97594a83079dba9c4c79bf9955113513d77b15620099ee891119/winlnks-0.2.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-10-04 11:12:49",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "winlnks"
}
        
BIG
Elapsed time: 0.91574s