Skip to main content

sinfo prints version information for loaded modules in the current session, Python, and the OS.

Project description


sinfo prints version information for loaded modules in the current session, Python, and the OS. It is designed as a minimum measure to increase reproducibility and provides similar information as sessionInfo in R. The name is shortened to encourage regular usage through reduced typing =)


sinfo can be installed via either pip or conda (Not yet uploaded). It does not rely on either package manager to check the version numbers. Its only dependency is stdlib_list, to distinguish between standard library and third party modules.


sinfo is versatile and particularly useful when conducting exploratory data analysis in Jupyter Notebooks. Listing the version numbers of all loaded modules in the last cell of a Notebook is a simple way to ensure a minimum level of reproducibility that requires little additional effort. This practice is useful when revisiting code and when sharing code with colleagues. sinfo is meant to complement more robust practices such as frozen virtual environments, containers and binder Notebooks. The default behavior is to only print modules from outside the standard library.

import math
import numpy
import pandas
import natsort
# Exploratory data analysis goes here...
# The last code cell of a Notebook.
import sinfo


natsort         5.3.3
numpy           1.15.2
pandas          0.23.4
Python 3.6.8 |Anaconda custom (64-bit)| (default, Dec 30 2018, 01:22:34) [GCC 7.3.0]
Session information updated at 2019-02-03 02:31

math is omitted since it is in the standard library, but can be included by specifying print_std_lib=True. See the docstring for full parameter info.


sinfo started as minor modifications of py_session, and as it grew it became convenient to create a new package. sinfo was built with the help of information provided in stackoverflow answers and existing similar packages, including

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for sinfo, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size sinfo-0.1.1.tar.gz (21.0 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page