Advertisement
Python253

pyVersion.py

Mar 6th, 2018
286
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.07 KB | None | 0 0
  1. #!/usr/bin/env python3.2.2
  2. ## -*- coding: utf-8 -*-
  3. # Detailed Version Information In Only 2 Lines Of Python.
  4.  
  5. __file_name__ = 'pyVersion.py'
  6. __author__ = 'Dan Evans'
  7. __copyright__ = 'Copyright 2012©, Coding With Py'
  8. __credits__ = 'Dan Evans'
  9. __dct_url__ = 'http://purl.org/dc/terms/'
  10. __license__ = 'Creative Commons'
  11. __rel_url__ = 'http://creativecommons.org/licenses/by-nc/4.0/'
  12. __version__ = 'CC-by-nc/4.0/'
  13. __maintainer__ = 'Dan(Python253)Evans'
  14. __email__ = 'Python253@gmail.com'
  15.  
  16. print('\n','','pyVersion.py is licensed under',
  17.     'The Creative Commons Attribution-NonCommercial 4.0 International License',
  18.     '\n'*2,'File Name: '+__file_name__,'\n','Author: '+__author__,
  19.     '\n','Copyright: '+__copyright__,'\n','Credits: '+__credits__,
  20.     '\n','DCT URL: ','\n',__dct_url__,'\n','License: '+__license__,
  21.     '\n','Release URL: ','\n',__rel_url__,'\n','Version: '+__version__,
  22.     '\n','Maintainer: '+__maintainer__,'\n','Email: '+__email__,'\n')
  23. # The Script
  24. import sys as s
  25. print("Python version:",(s.version),("Version info:"),(s.version_info))
  26. # End
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement