We establish both sufficient and necessary conditions for weighted Hardy inequalities in metric spaces in terms of Assouad (co)dimensions. Our sufficient conditions in the case where the complement is thin are new even in Euclidean spaces, while in the case of a thick complement we give new formulations for previously known sufficient conditions which reveal a natural duality between these two cases. Our necessary conditions are rather straight-forward generalizations from the unweighted case… Expand