Skip to main content

Applied Biostats Helper

A Python package that simplifies environment setup for the Applied Biostats course, particularly for Google Colab notebooks. This package replaces complex setup blocks with a single function call.

Features

  • One-line environment setup for Colab and local Jupyter notebooks
  • Automatic dependency management (installs otter-grader if needed)
  • Seamless test file downloading from GitHub repositories
  • Environment detection (automatically detects Colab vs local)
  • Clean error handling and user feedback

Installation

From GitHub (Recommended for testing)

pip install git+https://github.com/DamLabResources/applied-biostats-helper.git.

From PyPI (when published)

pip install applied-biostats-helper

Local Development

git clone https://github.com/DamLabResources/applied-biostats-helper.git
cd applied-biostats-helper
pip install -e .
```## Quick Start

### Before (Complex setup block)

```python
# Setting up the Colab environment. DO NOT EDIT!
import os
import warnings
warnings.filterwarnings("ignore")

try:
    import otter
except ImportError:
    ! pip install -q otter-grader==4.0.0
    import otter

if not os.path.exists('walkthrough-tests'):
    zip_files = [f for f in os.listdir() if f.endswith('.zip')]
    assert len(zip_files)>0, 'Could not find any zip files!'
    assert len(zip_files)==1, 'Found multiple zip files!'
    ! unzip {zip_files[0]}

grader = otter.Notebook(colab=True, tests_dir='walkthrough-tests')

After (Simple one-liner)

from applied_biostats import setup_environment

grader = setup_environment('Module02_walkthrough')

Usage

Main Function: setup_environment()

The primary function that handles all setup tasks:

from applied_biostats import setup_environment

# Basic usage
grader = setup_environment('Module02_walkthrough')

# With custom branch
grader = setup_environment('Module02_walkthrough',
                          branch='dev')

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Add tests if applicable
  5. Submit a pull request

Support

For issues and questions:

  • Open an issue on GitHub
  • Contact the course instructors

Changelog

v0.2.0

  • Adding development environment detection

v0.1.0

  • Initial release
  • Basic environment setup functionality
  • GitHub integration for test file downloads
  • Colab and local Jupyter support

Metadata

Release files for applied-biostats-helper 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for applied-biostats-helper 0.2.0
File Size Uploaded Provenance Actions
applied_biostats_helper-0.2.0.tar.gz 4.7 kB Without provenance Details for applied_biostats_helper-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for applied-biostats-helper 0.2.0
File Interpreter ABI Platform Actions
applied_biostats_helper-0.2.0-py3-none-any.whl Python 3 none any Details for applied_biostats_helper-0.2.0-py3-none-any.whl

Total release size: 9.8 kB

Release files / applied_biostats_helper-0.2.0.tar.gz

Download URL applied_biostats_helper-0.2.0.tar.gz
Size 4.7 kB
Tags Source
SHA-256 checksum
How to use checksums
ebedf3686cd4eea3b05ace96f00595d34662e252c8ef5762fbbf93e7fc112189
BLAKE2b-256 checksum
How to use checksums
8217a4e56cc6766125f43ea1d428c29b241c91918be805b4e3f7ac7ee826e04d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.8.5

Release files / applied_biostats_helper-0.2.0-py3-none-any.whl

Download URL applied_biostats_helper-0.2.0-py3-none-any.whl
Size 5.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0af9c2e1156d539b6cd8e2fec1e0f697ad62511b972a749fd4aa84537be5c2b9
BLAKE2b-256 checksum
How to use checksums
a4f60df436e39ba692c0e0bbba6be47b49a4f23263129ef83ea677bf64d23736
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.8.5

Security for applied-biostats-helper 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page