sectxtlib parses and validates security.txt files as specified in RFC 9116.
Best have a look at the documentation for examples.