Skip to main content

Package for parsing Microsoft Shell Link (.lnk) files

Project description

ShellLnk

Package for parsing Microsoft Shell Link (.lnk) files

This package consists of a parsing class shelllnk.ShellLnk. To use,

from shelllnk import ShellLnk
open(myfile, "rb") as fd:
   shell_link = ShellLnk.parse(fd)

You may want to read the Microsoft spec on shell links to understand the different parts of a shell link file. The file format doc is at https://msdn.microsoft.com/en-us/library/dd871305.aspx

The stuff that I use is ShellLnk.file_attributes and ShellLnk.device_name or ShellLnk.net_name and ShellLnk.common_base_path_suffix. The device name or net name tell you the drive letter or mount point and the suffix gives you the path after that.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

shelllnk-1.0.0.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

shelllnk-1.0.0-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

Details for the file shelllnk-1.0.0.tar.gz.

File metadata

  • Download URL: shelllnk-1.0.0.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.7.2

File hashes

Hashes for shelllnk-1.0.0.tar.gz
Algorithm Hash digest
SHA256 3343bc5f9f49739a198990bab8e9756b3629b6780aa32b714d2e6e9343c33eee
MD5 9f1adba336327654c274562d1f365025
BLAKE2b-256 4d7b34d815fb6776040c9ca48d960a278f3383a92596aa856fd3d77e85714fb6

See more details on using hashes here.

File details

Details for the file shelllnk-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: shelllnk-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 6.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.7.2

File hashes

Hashes for shelllnk-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ba8944582f1e857673bbb60fdbe3676c33631fda6422e3116efa404f2cbd4d9c
MD5 022f072bacb3ba722f41eaec1c1b8b86
BLAKE2b-256 99e2d8ced8af774d97574a8ba89eeeba0e5bebc6c38041158b3a8c7ba2b56f8a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page