The functionality outlined below, and much more, is implemented in Hodge diamond cutter, which can be used in Sage. If you use it for your research, please cite it using DOI.

Quick service announcement: as a crossover between Fanography and the Hodge diamond cutter I have now added the Hodge diamonds of Fano 3-folds. This is not that exciting, but it could be useful for some.