invest.portfolio-weights Unreviewed
Each holding's share of a portfolio and its drift from a target weight, in basis points, from exact arithmetic.
portfolio_weights in Python2 capabilities
portfolio_weights in Pythonrebalance in Python