offlinedatasci package

Submodules

offlinedatasci.cli module

offlinedatasci.cli.get_installer_function(selection, ods_dir)
offlinedatasci.cli.main()

offlinedatasci.main module

offlinedatasci.main.add_lesson_index_page(lesson_path)

Add a basic landing page for lessons

Uses the top-level directory name to group lessons into sections by source Then displays an unordered list of lessons within each source

offlinedatasci.main.download_all(ods_dir)

Download all installers, repositories, and lesson materials.

Each function will run even if others fail.

Keyword arguments: ods_dir – Directory to save installers and lesson materials

offlinedatasci.main.download_and_save_installer(latest_version_url, destination_path, progress)

Download and save installer in user given path.

Keyword arguments: latest_version_url – Link to download installer destination_path – Path to save installer progress – Rich Progress instance to add a task to

offlinedatasci.main.download_lessons(ods_dir)

Downloads the workshop lessons as rendered HTML. Keyword arguments: destination_path – Path to save rendered HTML lessons

offlinedatasci.main.download_python(ods_dir)

Download Python installers

Keyword arguments: ods_dir – Directory to save installers

offlinedatasci.main.download_python_packages(ods_dir, py_library_reqs=['matplotlib', 'notebook', 'numpy', 'pandas'])

Creating partial PyPI mirror of workshop libraries.

Keyword arguments: ods_dir – Directory to save partial Pypi mirror

offlinedatasci.main.download_r(ods_dir)

Download most recent version of R installer (mac and windows) from CRAN

Keyword arguments: destination_path – Path to save installers

offlinedatasci.main.download_r_macosx(r_current_version, ods_dir, progress)

Download the most recent version of R installer for MacOSX from CRAN.

Keyword arguments: r_current_version – The most recent version of R ods_dir – Directory to save R installers progress – Rich Progress instance to add a task to

offlinedatasci.main.download_r_packages(ods_dir, py_library_reqs=['tidyverse', 'RSQLite'], r_version=None)

Creating partial CRAN mirror of workshop libraries.

Keyword arguments: ods_dir – Directory to create CRAN mirror

offlinedatasci.main.download_r_windows(r_current_version, ods_dir, progress)

Download the most recent version of R installer for Windows from CRAN.

Keyword arguments: r_current_version – The most recent version of R ods_dir – Directory to save R installers progress – Rich Progress instance to add a task to

offlinedatasci.main.download_rstudio(ods_dir)

Download RStudio installers

offlinedatasci.main.find_r_current_version(url)

Determine the most recent version of R from CRAN

Keyword arguments: url – CRAN r-project URL

offlinedatasci.main.get_default_packages(package_type)
offlinedatasci.main.get_ods_dir(directory=PosixPath('/home/docs'))

Get path to save downloads, create if it does not exist.

Keyword arguments: directory – Path to save downloads (defaults to user home path)

offlinedatasci.main.get_python_version(minor_version='3.12')

Determine the Python version from the Python homepage.

offlinedatasci.main.package_selection(language, custom_package_list)
offlinedatasci.main.table_parse_version_info(row, oscolnum, hrefcolnum)

Parse and return software information from table.

Keyword arguments: row – Row from HTML table oscolnum – Number of column in which OS is found hrefcolnum – Number of column in which HREFs are found

offlinedatasci.main.try_except_functions(input, function)

Module contents