python-samples

Installation
SKILL.md

Python Samples

File Structure

Every sample file follows this order:

  1. PEP 723 inline script metadata (if external dependencies needed)
  2. Copyright header: # Copyright (c) Microsoft. All rights reserved.
  3. Required imports
  4. Module docstring: """This sample demonstrates..."""
  5. Helper functions
  6. Main function(s) demonstrating functionality
  7. Entry point: if __name__ == "__main__": asyncio.run(main())

External Dependencies

Use PEP 723 inline script metadata for external packages not in the dev environment:

Related skills
Installs
17
GitHub Stars
10.3K
First Seen
Mar 10, 2026