$ pip install mmtf-pythonThen you'll get the the latest version of a mmtf python module from the Python Packaging Index.
from mmtf import fetch # Get the data for 4CUP decoded_data = fetch("4CUP") # Print the number of chains print("PDB Code: " +str(decoded_data.structure_id)+" has "+str(decoded_data.num_chains)+" chains")Refer to API documentation for more information.