> For the complete documentation index, see [llms.txt](https://docs.autocontentapi.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.autocontentapi.com/code-samples/documents/python.md).

# Python

Python snippets that mirror the document scenario recipes, from creating a briefing document to setting its format and language and downloading it.

Run these Python snippets to mirror the [document scenario recipes](https://docs.autocontentapi.com/quick-start/documents/document-examples.md). See the [Python guide](https://docs.autocontentapi.com/code-samples/language-quickstarts/python.md) for setup details.

## Recipes

* [📝 Create a Briefing Document from Text](https://docs.autocontentapi.com/code-samples/documents/python/from-text.md)
* [🔗 Create a Briefing Document from a Website](https://docs.autocontentapi.com/code-samples/documents/python/from-website.md)
* [💡 Create a Briefing Document from a Topic Prompt](https://docs.autocontentapi.com/code-samples/documents/python/from-topic.md)
* [📄 Create a Briefing Document from a PDF Upload](https://docs.autocontentapi.com/code-samples/documents/python/from-pdf.md)
* [🌐 Set Document Format and Language](https://docs.autocontentapi.com/code-samples/documents/python/set-format-and-language.md)
* [📥 List, Fetch, and Download Documents](https://docs.autocontentapi.com/code-samples/documents/python/retrieve-and-download.md)

Prefer cURL? Jump back to the [quick-start examples](https://docs.autocontentapi.com/quick-start/documents/document-examples.md).
