This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # uv local install script | |
| # Offline install for local uv.exe / uvx.exe / uvw.exe | |
| # Compatible with older Windows PowerShell | |
| $ErrorActionPreference = 'Stop' | |
| function Write-Info($msg) { | |
| Write-Host "[INFO] $msg" -ForegroundColor Cyan | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| """ | |
| Gitea SDK - 用于操作Gitea仓库Issue的Python工具包 | |
| 这个工具包提供了一个简单的接口来操作Gitea仓库中的Issue, | |
| 包括创建、获取、更新和删除Issue等功能。 | |
| """ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| import os | |
| import caldav | |
| import pytz | |
| from datetime import datetime, timedelta | |
| from dotenv import load_dotenv | |
| from icalendar import Calendar, Event, vText, vCalAddress | |
| import uuid |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Email Service</title> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <style> | |
| body { | |
| margin: 10px; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # it provide a send email in a async way and using pydantic to verify data | |
| from pydantic import BaseModel,Field | |
| from typing import List,Literal,Optional | |
| from email.mime.base import MIMEBase | |
| import aiosmtplib | |
| from email import encoders | |
| from email.mime.multipart import MIMEMultipart | |
| from email.mime.text import MIMEText | |
| from email.header import Header |