MCPcopy Create free account
hub / github.com/github/awesome-copilot / gen_readme

Function gen_readme

skills/python-pypi-package-builder/scripts/scaffold.py:655–700  ·  view source on GitHub ↗
(name: str, mod: str)

Source from the content-addressed store, hash-verified

653
654
655def gen_readme(name: str, mod: str) -> str:
656 return f'''\
657# {name}
658
659> One-line description — what it does and why it's useful.
660
661[![PyPI version](https://badge.fury.io/py/{name}.svg)](https://pypi.org/project/{name}/)
662[![Python Versions](https://img.shields.io/pypi/pyversions/{name})](https://pypi.org/project/{name}/)
663[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)
664
665## Installation
666
667```bash
668pip install {name}
669```
670
671## Quick Start
672
673```python
674from {mod} import YourClient
675
676client = YourClient(api_key="sk-...")
677result = client.process({{"input": "value"}})
678print(result)
679```
680
681## Configuration
682
683| Parameter | Type | Default | Description |
684|---|---|---|---|
685| api_key | str | required | Authentication credential |
686| timeout | int | 30 | Request timeout in seconds |
687| retries | int | 3 | Number of retry attempts |
688
689## Contributing
690
691See [CONTRIBUTING.md](./CONTRIBUTING.md)
692
693## Changelog
694
695See [CHANGELOG.md](./CHANGELOG.md)
696
697## License
698
699MIT — see [LICENSE](./LICENSE)
700'''
701
702
703def gen_setup_py() -> str:

Callers 1

scaffoldFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected