You asked
Ttartisan af 27mm f 2 8 vs viltrox af 27mm f 1 2 pro?
The two lenses are both 27mm prime autofocus lenses for APS-C cameras, and both mount on Sony E, Fujifilm X and Nikon Z. The difference is the aperture, and that changes how they behave.
The Viltrox AF 27mm f/1.2 Pro is the one to choose for low light and moving subjects. At f/1.2 it gathers far more light than the TTArtisan, and on APS-C it gives about the background blur of f/1.8 on full frame. That helps with indoor events, pets, children and portraits with a soft background. The trade-off is that it is the bigger, more expensive optic of the two, and it has no stabilisation, so in dim light you rely on fast shutter speeds for sharp subject detail.
The TTArtisan AF 27mm f/2.8 is a tiny autofocus pancake, which makes it the better pick for daylight shooting, street, travel and carrying a camera all day. At f/2.8 it gives about the depth of field of f/4.2 on full frame, so it keeps more of the scene sharp and blurs backgrounds less. In good light that is rarely a problem, and the size is its main appeal.
Both lenses frame the same, like 40mm on full frame, so the choice comes down to light and size. For how the aperture maps onto background blur, see aperture and depth of field. Check each lens page for its current price, since prices change and this answer doesn't quote them.
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}.