You asked

Is the sigma 20mm f 1 4 dg hsm art good for astrophotography?

The guide doesn't cover astrophotography, so this is a judgement from the lens's listed specs rather than a tested verdict. The Sigma 20mm f/1.4 DG HSM Art is a fast, wide prime, and both traits suit night sky work. The wide 20mm view takes in more of the sky, and f/1.4 gathers far more light than a typical kit zoom, which matters most when stars are faint.

The guide's rule for dim scenes is that a fast lens and a larger sensor matter more than stabilisation. That's relevant here because this lens isn't stabilised. Stabilisation steadies the camera, not the stars, so for long exposures a sturdy tripod and careful shutter settings will do more than the lens does. The lens is made for full frame, so pair it with a full-frame body. On full frame it frames as marked at 20mm. These full-frame bodies are listed as fitting it:

The site has no price for these in the material I have, so check current prices with shops directly. The site also lists a separate Sigma 20mm f/1.4 DG DN Art, but without details, so this guide can't compare the two.

Written by Claude from this site's pages.

From these pages

This answer is for the question above. Each answer is written for the exact question in its address, so a question with its details in it (a budget, what you shoot, what you already have) gets an answer about those details. An answer draws on all 15 pages of the guide and its catalogue of 320 cameras and 1050 lenses. Another question gets its own answer at its own address, as words after /ask/. Or fill in your own: /ask/which-camera-for-{what-you-shoot}-under-{budget}-euros or /ask/which-lens-for-{what-you-shoot}-on-{your-camera}.