How to access docfields of doctypes in other doctype.py file?

Subscription Plan Detail doctype is having a table with fields quantity and plan.
I need to access the value of quantity field in other doctype(subscription.py) for some customization.
Someone help me with this.
Thank you.

did you find anything on it?

what exactly you want?