Skip to main content
2025 Python Packaging Survey is now live!  Take the survey now

read/write .webloc files

Project description

Install

$ [sudo] pip install webloc

Functions

function description
webloc.read(path) return webloc url
webloc.write(path, url) write url to webloc file

CLI

usage description
python -m webloc [url] read/write webloc url

Examples

>>> import webloc
>>> webloc.write("path.webloc","https://www.google.com/")
>>> webloc.read("path.webloc")
'https://www.google.com/'
$ python -m webloc "path.webloc" "https://www.github.com/"
$ python -m webloc "path.webloc"
https://www.github.com/

readme-md - README.md generator

Supported by

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