Go lang has a feature, that has a name "struct tags".
https://github.com/golang/go/wiki/Well-known-struct-tags
Does python have something similar to it?
I mean that I want to say python somehow that if I'm using my class in json unmarshalling that it should be filled using one names, and if it's data from db reading that names could be a little bit different.
Go example:
struct test {
TestField int64 `json:"test_int" db:"TestInt"`
}