Update 2025-10-31

update 2025-10-08

chore: update readme

Update 2025-10-09

Update 2025-10-15

Update 2025-10-22

Update 2025-10-31
This commit is contained in:
2025-10-08 19:54:46 +03:00
parent f7194a919e
commit f5c52bcc9d
65 changed files with 1052 additions and 1721 deletions

91
snippets/python.lua Normal file
View File

@@ -0,0 +1,91 @@
---@diagnostic disable: undefined-global
return {
s(
"logger",
fmt(
[[
import logging
logger = logging.getLogger(__name__)
]],
{}
)
),
s(
"dbg",
fmt(
[[
logger.debug({})
]],
{
i(0),
}
)
),
s(
"info",
fmt(
[[
logger.info({})
]],
{
i(0),
}
)
),
s(
"warn",
fmt(
[[
logger.warning({})
]],
{
i(0),
}
)
),
s(
"err",
fmt(
[[
logger.error({})
]],
{
i(0),
}
)
),
s(
"exc",
fmt(
[[
logger.exception({})
]],
{
i(0),
}
)
),
s(
"crit",
fmt(
[[
logger.critical({})
]],
{
i(0),
}
)
),
s(
"fatal",
fmt(
[[
logger.fatal({})
]],
{
i(0),
}
)
),
}, {}