Initial commit
This commit is contained in:
24
skills/python-uv-scripts/assets/templates/basic-script.py
Executable file
24
skills/python-uv-scripts/assets/templates/basic-script.py
Executable file
@@ -0,0 +1,24 @@
|
||||
#!/usr/bin/env -S uv run --script
|
||||
# /// script
|
||||
# requires-python = ">=3.11"
|
||||
# dependencies = []
|
||||
# ///
|
||||
"""
|
||||
Basic Python script template using uv.
|
||||
|
||||
This is a minimal working example showing the correct PEP 723 format.
|
||||
No external dependencies - uses only Python standard library.
|
||||
|
||||
Usage:
|
||||
python basic-script.py
|
||||
"""
|
||||
|
||||
def main():
|
||||
"""Main entry point for the script."""
|
||||
print("Hello from uv!")
|
||||
|
||||
# Your code here
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
Reference in New Issue
Block a user