Āpastamba Dharmasūtra is a Sanskrit text and one of the oldest Dharma-related texts of Hinduism that have survived into the modern age from the 1st-millennium BCE. It is one of three extant Dharmasutras texts from the Taittiriya school of Krishna Yajurveda, the other two being Baudhayana Dharmasutra and Hiranyakesin Dharmasutra.
The Gautama Dharmasutra is part of Apastamba Kalpasutra collection, along with Apastamba Shrautasutra and Apastamba Grihyasutra. It is one of the best preserved ancient texts on Dharma.
The text is notable for its broad minded and liberal views on women and all social classes. It is also notable for mentioning and citing views of ten ancient experts on Dharma, which has led scholars to conclude that there existed a rich genre of Dharmasutras text in ancient India before this text was composed.
Next the teacher's conduct towards his pupil.
Loving him like a son and totally devoted to him,
the teacher should impart knowledge to him,
without holding anything back,
with respect to any of the Laws.
Except in emergency, moreover,
he should not employ a pupil,
for purposes to the detriment of the pupil's studies.
The Dharmasutra is attributed to Apastamba, the founder of a Shakha (Vedic school) of Yajurveda. According to the Hindu tradition, Apastamba was the student of Baudhayana, and himself had a student named Hiranyakesin. Each of the three founded a Vedic school, and each of their schools produced a collection of literature within the Krishna Yajurveda tradition, one that included separate Kalpasutra compilations. They were founders of their traditions, but it is unclear if they authored the Dharmasutras. It is, states Patrick Olivelle, possible that the Apastamba Dharmasutra is ascribed to Apastamba, but actually composed by others in his school.
The Apastamba tradition may be from south India, possibly near where modern Andhra Pradesh is between Godavari and Krishna rivers, but this is not certain. The verse 2.17.17 of the Apastamba Dharmasutra mentions a practice of "northerners" but it in unclear what "north" means in the context it is used. Further, the ancient grammarian Panini refers to it too, who is generally placed in northwest Indian subcontinent. Olivelle states that the three Taittiriya school Dharmasutras mention practices of north and south, but never clarify how far north or south they are referring to, but placing Dharmasutras in the southern Indian peninsula implies that Brahmanical ideas had established themselves or emerged in the south by the 1st millennium BCE. According to Olivelle, the Yajurveda schools may have been in what is north India today, and the Apastamba Dharmasutra may have been composed in north India, rather than south. In contrast, Robert Lingat states that epigraphical evidence such as the Pallava inscriptions confirm that Apastamba tradition existed in South India, in ancient times, in parts of what became Madras Presidency in the colonial British India.