python-trio / python-trio/trio

[Question] What is the best way to create temp files and directories?

Open
#1,931 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
7.3k
Forks
431
Avg merge
2d 17h
Merged PRs (30d)
6

Description

Normally I would use tempfile module.
But I was wondering if there's an async (trio compatible) alternative.

Thanks in advance

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue mentions Python's tempfile module and asks whether Trio has an async-compatible alternative. Start by reviewing the tempfile documentation and Trio's documented file-I/O guidance; done would be a clear answer identifying the recommended approach, or a scoped feature request if no suitable alternative exists.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Feature
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.