Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/codecaine-zz/python_std_examples

Python Standard Library by Example using AI
https://github.com/codecaine-zz/python_std_examples

documentation library llama3 ollama python3 standard standard-library stl

Last synced: 10 days ago
JSON representation

Python Standard Library by Example using AI

Awesome Lists containing this project

README

        

Python standard library code examples using AI

This application generates code examples for Python's standard library modules using AI. The code examples are generated using the qwen2.5-coder:3b model.

## How to Use

1. Ensure you have the necessary dependencies installed.
2. Make sure the `ollama` service is running.
3. Run the `main.py` script to generate the code examples.

4. The generated markdown files will be saved in the `standard_library_documents` directory.
5. . If files already exist, they will not be replaced or processed. You can delete the existing files and run the program again to regenerate them.
6. You can add more modules to the standard library dictionary to generate examples for additional modules.
7. **Generate HTML Version:** Run the `create_html_version.py` script to convert the generated markdown files into a single HTML document. This HTML file will be saved in the `html_version` folder and will include categorized links and a scroll-to-top button for easy navigation.
![Screenshot categories](screenshots/screenshot1.png)
![Screenshot modules](screenshots/screenshot2.png)
![Github markdown viewer](screenshots/screenshot3.png)

## Application Demo

Check out the demo of this application [here](https://codefreelance.net/apps/python_std_bible/).

### Development Notes

You can use Copilot edits to refactor the `standard_library_documents` to improve examples if needed.