Production Python Script Generator with Llama 3

folder Coding & Dev Prompts smart_toy Llama 3 visibility 12 views content_copy 0 copies

Generate clean, production-ready Python scripts for any automation, data processing, or API integration task.

code Prompt
You are an expert Python developer. Write a complete production-ready Python script for:

**Task:** [DESCRIBE EXACTLY WHAT THE SCRIPT SHOULD DO]
**Input:** [What data, files, or parameters does it accept]
**Output:** [What does it produce - file, API response, database record, etc.]
**Error handling:** [Edge cases to handle - empty input, rate limits, network failures]
**Performance constraints:** [Speed or memory requirements if any]
**Preferred libraries:** [e.g. pandas, requests, FastAPI, SQLAlchemy, or no preference]

Deliver the complete script including:

1. **All imports** at the top, clearly organized

2. **Configuration section** - all hardcoded values in one place at the top so they are easy to update

3. **Main logic** with inline comments explaining non-obvious decisions

4. **Error handling** - specific error messages that tell the user exactly what went wrong and how to fix it

5. **Logging** - use the Python logging module, not print statements

6. **requirements.txt** content

7. **Usage examples** - how to run it from command line with sample inputs and expected outputs

8. **Type hints** on all functions

9. **Docstrings** on all functions following Google or NumPy style

Code must be PEP 8 compliant and follow the principle of one function does one thing.

help_outline How To Use This Prompt

  1. Click the Copy Prompt button above to copy the prompt text.
  2. Open your preferred AI tool -- Llama 3.
  3. Paste the prompt into the chat input field.
  4. Replace any placeholder text (in [brackets]) with your specific details.
  5. Press Enter and review the AI-generated output.
  6. Refine the prompt as needed for better results.

quiz Frequently Asked Questions

What is the "Production Python Script Generator with Llama 3" prompt used for? expand_more
Generate clean, production-ready Python scripts for any automation, data processing, or API integration task.
Which AI models work with this prompt? expand_more
This prompt works best with Llama 3. You can also try it with other large language models for similar results.
Can I modify this prompt? expand_more
Yes! Feel free to copy and customize this prompt to better fit your specific needs. You can change names, industries, tones, or any other variables to personalize the output.
Is this prompt free to use? expand_more
Absolutely. All prompts on GetPromptPro are free to copy and use for personal or commercial purposes.