For c/c++ you can still try to check the old cccc

  
      

      github.com
  

  
    

sarnold/cccc 2


  Source code counter and metrics tool for C++, C, and Java

  

  
    
    
  

  


For python you need to check for individual GitHub projects, if maintained and popular enought to trust the implementation.