Skip to main content

Django app to provide vscode icons for web application.

Project description

vscode-icons

Django app to provide vscode icons for web application.

Please refer to original author for more detail.

Installation

Following command will help to install the package.

pip install vscode-icons

Setup

  1. Add the app to setting.py file in INSTALLED_APPS section.
INSTALLED_APPS = [
    ...
    'vscode_icons',
]

Usage

from vscode_icons.vscode import VSCodeIcons

vsi = VSCodeIcons()

# Getting file path
file_name = 'image.png'
file_icon_path = vsi.findFileIcon(file_name)
print(f'File Icon:\t {file_icon_path}')

# Getting directory path
dir_name = 'Documents'
dir_icon_path = vsi.findDirectoryIcon(dir_name)
print(f'Directory Icon:\t {dir_icon_path}')

Output

File Icon:       vscode_icons/icons/file_type_image.svg
Directory Icon:  vscode_icons/icons/default_folder.svg

Author

Tahir Rafique

Releases

Date Version Summary
15-Jun-23 v1.0.0 Initial build

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

vscode-icons-1.0.0.tar.gz (1.4 MB view details)

Uploaded Source

Built Distribution

vscode_icons-1.0.0-py3-none-any.whl (2.0 MB view details)

Uploaded Python 3

File details

Details for the file vscode-icons-1.0.0.tar.gz.

File metadata

  • Download URL: vscode-icons-1.0.0.tar.gz
  • Upload date:
  • Size: 1.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for vscode-icons-1.0.0.tar.gz
Algorithm Hash digest
SHA256 57d0aa7a9e82d801b5fa316f7e6b50075909d7837f8be5b6e59ac82b90366957
MD5 7b76b5d4e069bcd2af8c2eba237ad932
BLAKE2b-256 f358b1986a48ea8038c11161e3df8fa34354bc58dbba1c294c80551dc45be4d1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for vscode_icons-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d7d70fea83abfe3a8f048240323d3c4bbc783260a4f1caba22ca57b6b0eb508a
MD5 c5c779b58cadf84e20dc2d987bedd3cd
BLAKE2b-256 4505676d446fd3f1a50ac845f4576145440278ee2fa85fd0159c4192d23b34e2

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