Skip to main content

A Software Metric for Python Language

  • Conference paper
Computational Science and Its Applications – ICCSA 2010 (ICCSA 2010)

Part of the book series: Lecture Notes in Computer Science ((LNTCS,volume 6017))

Included in the following conference series:

Abstract

There are many metrics for evaluating the quality of codes written in different programming languages. However, no efforts have been done to propose metrics for Python, which is an important and useful language especially for the software development for the embedded systems. In this present work, we are trying to investigate all the factors, which are responsible for increasing the complexity of code written in Python language. Accordingly, we have proposed a unified metric for this language. Practical applicability of the metric is demonstrated on a case study.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 84.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 109.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. Costagliola, G., Tortora, G.: Class points: An approach for the size Estimation of Object-oriented systems. IEEE Transactions on Software Engineering 31(1), 52–74 (2005)

    Article  Google Scholar 

  2. Misra, S., Akman, I.: Weighted Class Complexity: A Measure of Complexity for Object Oriented Systems. Journal of Information Science and Engineering 24, 1689–1708 (2008)

    Google Scholar 

  3. Chidamber, S.R., Kermer, C.F.: A Metric Suite for object oriented design. IEEE Transacations Software Engineering SE-6, 476–493 (1994)

    Article  Google Scholar 

  4. http://www.Python.org/about/success/carmanah/

  5. Lutz, M.: Learning Python, 4th edn., Ebook, Safari Books Online, O’Reilly Media, Sebastopol (2009)

    Google Scholar 

  6. Fenton, N.E., Pfleeger, S.L.: Software Metrics: A Rigorous and Practical Approach, 2nd Revised edn. PWS Publishing, Boston (1997)

    Google Scholar 

  7. Bird, S., Klein, E., Loper, E.: Natural Language Processing with Python, 1st edn., Ebook, Safari Books Online, O’Reilly Media, Sebastopol (2009)

    MATH  Google Scholar 

  8. Gift, N., Jones, J.M.: Python for Unix and Linux System Administration, 1st edn., Ebook, Safari Books Online, O’Reilly Media, Sebastopol (August 2008)

    Google Scholar 

  9. Model, M.L., Tisdall, J.: Bioinformatics Programming Using Python, 1st ed., Ebook, Safari Books Online. O’Reilly Media, Sebastopol (2009)

    Google Scholar 

  10. Python Programming Language, http://www.Python.org/ cited 04.10.2009

  11. Lutz, M.: Programming Python, 3rd ed., Ebook, Safari Books Online. O’Reilly Media (2006)

    Google Scholar 

  12. Misra, S., Akman, I.: Unified Complexity Metric: A measure of Complexity. In: Proc. of National Academy of Sciences Section A, 2010 (in press)

    Google Scholar 

  13. Basci, D., Misra, S.: Data Complexity Metrics for Web-Services. Advances in Electrical and Computer Engineering 9(2), 9–15 (2009)

    Article  Google Scholar 

  14. Basci, D., Misra, S.: Measuring and Evaluating a Design Complexity Metric for XML Schema Documents. Journal of Information Science and Engineering, 1415–1425 (September 2009)

    Google Scholar 

  15. Wang, Y., Shao, J.: A New Measure of Software Complexity Based on Cognitive Weights. Can. J. Elec. Comput. Engg., 69–74 (2003)

    Google Scholar 

  16. SciPy.in 2009, http://scipy.in/ cited 16.10.2009

  17. Rupy 2009. http://rupy.eu/ cited 10.11.2009

  18. FrontRangePythoneersUc 2009, http://wiki.python.org/moin/FrontRangePythoneersUc09 cited 05.10.2009

  19. Confoo.Ca Web Techno Conference, http://www.confoo.ca/en cited 14.11.2009

  20. Kushwaha, D.S., Misra, A.K.: Improved Cognitive Information Complexity Measure: A Metric That Establishes Program Comprehension Effort. SIGSOFT Software Engineering Notes 31(5) 1–7 (2006)

    Google Scholar 

  21. DMH2000 C/Java/Python/Ruby, http://www.dmh2000.com/cjpr/ , cited 15.10.2009

  22. Neuroscience – Brain vs. Computer, http://faculty.washington.edu/chudler/bvc.html , cited 17.10.2009.

  23. Computer vs. The Brain, http://library.thinkquest.org/C001501/the_saga/sim.htm , cited 17.10.2009

  24. Basci, D., Misra, S.: Entropy metric for XML DTD documents. SIGSOFT Softw. Eng. Notes 33(4), 1–6 (2008)

    Article  Google Scholar 

  25. Python Code Complexity Metrics and Tools available from: http://agiletesting.blogspot.com/2008/03/Python-code-complexity-metrics-and.html

  26. Pythius Homepage, http://pythius.sourceforge.net/ , cited 03.10.2009)

  27. Python Dependency Graphs, http://furius.ca/snakefood/ , cited 08.11.2009

  28. Measuring Cyclomatic Complexity of Python Code http://www.traceback.org/2008/03/31/measuring-cyclomatic-complexity-of-Python-code/

  29. PyMetrics, http://sourceforge.net/projects/pymetrics/ , cited 21.09.2009

  30. Shinyama, Y.: http://www.unixuser.org/~euske/python/index.html , cited 06.10.2009

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2010 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Misra, S., Cafer, F. (2010). A Software Metric for Python Language. In: Taniar, D., Gervasi, O., Murgante, B., Pardede, E., Apduhan, B.O. (eds) Computational Science and Its Applications – ICCSA 2010. ICCSA 2010. Lecture Notes in Computer Science, vol 6017. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-642-12165-4_24

Download citation

  • DOI: https://doi.org/10.1007/978-3-642-12165-4_24

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-642-12164-7

  • Online ISBN: 978-3-642-12165-4

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics