ashrafee-dev / ashrafee-dev/scamshield-api
Share temporary audio-file handling
Open
Nobody has claimed this yet.
good first issue
- Dominant language
- Python
- Stars
- 3
- Forks
- 10
- Avg merge
- 14h 44m
- Merged PRs (30d)
- 9
Description
Goal
Remove duplicated temporary-file creation and cleanup logic from the HTTP and WebSocket paths.
Acceptance criteria
- Introduce a small helper only where it genuinely reduces duplication.
- Preserve the existing
/dev/shmbehavior and extension handling. - Keep cleanup guarantees clear and testable.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Locate the temporary-file creation and cleanup code in the HTTP and WebSocket paths, then compare how they handle /dev/shm and file extensions. Check any existing tests covering these paths before making a small shared helper only if it reduces duplication. Done means both paths preserve their current behavior and cleanup guarantees are covered clearly and testably.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- fastapi, python
- Domain
- api, backend
- Issue type
- Refactor
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 68/100