feat: Add Windows platform support
Open
Nobody has claimed this yet.
duplicate
- Dominant language
- Python
- Stars
- 5.6k
- Forks
- 1.2k
- Avg merge
- 1d 21h
- Merged PRs (30d)
- 16
Description
Description
Currently, Nettacker does not support Windows. When running on Windows,
the tool immediately exits with an error:
"Unfortunately, this version of the software can only run on Linux/darwin"
Root Cause
Two issues prevent Windows support:
uvloopis a hard dependency incore/lib/http.pybut it is a Linux/Mac only packagewin32andcygwinare not in the allowed platforms list incore/app.pyos.geteuid()is called directly which does not exist on Windows
Proposed Fix
- Make
uvloopimport optional with a try/except fallback - Add
win32andcygwinto supported platforms - Use
hasattr(os, 'geteuid')before callingos.geteuid()
Environment
- OS: Windows 11
- Python: 3.13.5
- Nettacker version: 0.4.0
Contributor guide
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
Start with core/lib/http.py and core/app.py, then trace the platform checks and the direct os.geteuid() call described in the issue. Verify the proposed compatibility changes on Windows 11 with Python 3.13.5; done means Nettacker no longer exits for Windows and can run without uvloop.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- operating-systems, security
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 50/100