Skip to main content

帮助flask框架中将普通HTML文档转义为url-for的文档

Project description

url_for_Int v2.2.3

简介

新版内容

2.2.3 增加日志框显示转义日志,覆盖原文件会弹出提示框 2.2.2 修复了增加文件、文件夹、删除文件的listbox的bug。


使用方法

API

函数及类

  • int_main 主函数

    • 输入:origin_text原始字符
    • 返回:x:str处理后的字符
  • file_catcher :导入文件处理

    • 输入:origin_file, to_path, prefix, if_pre
    • to_path默认为None,表示生成于原文件目录。若指定目录,则会加入pre_folder
    • prefix默认为"int_"
    • if_pre默认为False。若为True,则文件目录加上pre_folder
    • 返回:bool值,表示是否成功
  • GUI :用户界面

    • GUI是一个继承了tk.Tk的窗口类

教程

  • 安装:pip install url_for_int
  • 导入库:from url_for_int import start_gui, file_catcher, int_main
  • 启用GUI界面:start_gui() 或直接运行 __init__.py 文件
  • 转义一个文件
    • 转录到当前文件夹:file_catcher("test.html")
    • 转录到指定文件夹:file_catcher("test.html", "D:/test")
    • 转录并覆盖原文件:file_catcher("test.html", prefix="")
    • 转录并指定前缀:file_catcher("test.html", prefix="xxx-")
    • 转录并增加pre_folder:file_catcher("test.html", "D:/test", if_pre=True)
  • 转义一串字符
    content = "xxx"
    after = int_main(content)
    

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

url_for_int-2.2.3.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

url_for_int-2.2.3-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

Details for the file url_for_int-2.2.3.tar.gz.

File metadata

  • Download URL: url_for_int-2.2.3.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.5

File hashes

Hashes for url_for_int-2.2.3.tar.gz
Algorithm Hash digest
SHA256 433388e0abd88e1b57afbbc15f9c37f465712070f27946c0b516362fdacdca19
MD5 c6535a8aca525aa48a5dfc32e88ba069
BLAKE2b-256 67967734badbf805a17b9ab2297783148be7308025e5917a08f50a5e847a6106

See more details on using hashes here.

File details

Details for the file url_for_int-2.2.3-py3-none-any.whl.

File metadata

  • Download URL: url_for_int-2.2.3-py3-none-any.whl
  • Upload date:
  • Size: 6.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.5

File hashes

Hashes for url_for_int-2.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 7d4cdb735cd88908f97b17d468103833c0c2a7d429adf9c7f955502d81c82fb8
MD5 08ba0aad344c6d712ecf671b5531cf28
BLAKE2b-256 455fb73f9c9546778c77f396c04fa063c671329dd8ac0f0271345b2a12b26406

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