Skip to main content

Set image as an icon of the target folder

Project description

f-icon

Set Folder Icons.

Installation

Use the package manager pip to install f-icon.

pip install f-icon

Usage

Parameters

f-icon [OPTIONS] [--] IMAGE

Options:

-h, --help                       Print this help text and exit
-f, --folder                     Path to the folder that will have its icon changed. 
                                 It is ignored if the input is a text file.
-p, --placement                  Path to the folder where to keep generated icons. 
                                 By default, they are stored inside the folder with a changed icon.
                                 Used only on Windows.
-r, --relative                   If the icon is located in another folder, 
                                 it forces the path to be relative, 
                                 and it gets ignored if the drive for both locations is different.
                                 USed only on windows
-v, --verbose                    Print various debugging information

Direct

import f_icon

# generate icon

image = "Path to the image."
folder = "Path to the folder" # is optional if the image is already in the folder that will use it
placement = "Path to the ico file" # is optional if icon stays in the folder. Ignored on macOS
relative = True # is placement set as relative path to the folder or direct path. Ignored on macOS
debug = False # display print() messages during work
f_icon.create_icon(image, folder, placement, relative, debug)

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT

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

f-icon-0.0.4.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

f_icon-0.0.4-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

Details for the file f-icon-0.0.4.tar.gz.

File metadata

  • Download URL: f-icon-0.0.4.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.10.12

File hashes

Hashes for f-icon-0.0.4.tar.gz
Algorithm Hash digest
SHA256 42da94c4966a21fbb7b23475b15099fbb7a036c2d3fcc2fe9bf381c633ce236c
MD5 f42aa47000627122fcb0be3937d92de9
BLAKE2b-256 6d92832ebf61935706a37e2f0f8161a93ff28db31f3233406405d828c7c570dc

See more details on using hashes here.

File details

Details for the file f_icon-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: f_icon-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 8.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.10.12

File hashes

Hashes for f_icon-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 db6c840eb2a1ec8b9c8728a79897a8aa5bd3f61ba6446765c71856a735fb67c9
MD5 e36a7b4f53617712746db5c8041fed49
BLAKE2b-256 458347145ed02610f69caf2419ac6fafb9e93d9b95ec8b293a9b6145fc6bf1b7

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