Check Boto3 Version

You can always use dir function to know all the properties and methods of object.

dir(boto3)

['DEFAULT_SESSION', 'NullHandler', 'Session', '__author__', '__builtins__', '__cached__', '__doc__', '__file__', '__loader__', '__name__', '__package__', '__path__', '__spec__', '__version__', '_get_default_session', 'client', 'docs', 'exceptions', 'logging', 'resource', 'resources', 'session', 'set_stream_logger', 'setup_default_session', 'utils']

From this output you can see __version__.

boto3.__version__

I know this is late but you can also use:

pip show boto3


Try using .__version__ or .version

PEP 8 standard is to use the __version__ attribute for this, however it is worth noting that some modules implement version instead.

Tags:

Python