Skip to content

Installation

This guide covers installing easy_sm from PyPI or from source.

Requirements

Before installing easy_sm, ensure you have:

  • Python >=3.13
  • Docker (for local development)
  • AWS CLI configured with credentials

Install from PyPI

The simplest way to install easy_sm is via pip:

pip install easy-sm

Verify the installation:

easy_sm --help

Install from Source

For development or to use the latest features:

1. Clone the Repository

git clone https://github.com/prteek/easy_sm.git
cd easy_sm

2. Install in Development Mode

This allows code changes without reinstalling:

pip install -e .

3. Install Development Dependencies

For testing and code quality tools:

pip install -e . -r base-requirements.txt

This installs additional tools:

  • pytest (testing framework)
  • mypy (type checking)
  • ruff (linting and formatting)
  • requests (HTTP library)
  • Development dependencies for sample apps

Verify Installation

Check that easy_sm is installed correctly:

easy_sm --version
easy_sm --help

Docker Setup

easy_sm requires Docker for local development:

macOS/Windows

Download and install Docker Desktop

Linux

Install Docker Engine:

# Ubuntu/Debian
sudo apt-get update
sudo apt-get install docker.io

# Start Docker service
sudo systemctl start docker
sudo systemctl enable docker

Add your user to the docker group (optional, to avoid sudo):

sudo usermod -aG docker $USER
# Log out and back in for changes to take effect

Verify Docker is running:

docker --version
docker ps

AWS CLI Setup

easy_sm requires AWS CLI for cloud operations:

Install AWS CLI

brew install awscli
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip awscliv2.zip
sudo ./aws/install

Download and run the AWS CLI installer

Configure AWS Credentials

Configure your AWS profile:

aws configure --profile dev

Enter your credentials:

AWS Access Key ID: YOUR_ACCESS_KEY
AWS Secret Access Key: YOUR_SECRET_KEY
Default region name: eu-west-1
Default output format: json

Verify configuration:

aws s3 ls --profile dev

Next Steps

Once installed, proceed to the Quick Start guide to create your first project.

Troubleshooting

Python Version Issues

easy_sm requires Python 3.13+. Check your version:

python --version

If you have an older version, install Python 3.13 using:

Docker Permission Denied

If you see "permission denied" errors with Docker:

# Add user to docker group
sudo usermod -aG docker $USER

# Log out and back in, then verify
docker ps

AWS Credentials Not Found

If AWS commands fail:

  1. Check credentials file exists: cat ~/.aws/credentials
  2. Verify profile configuration: aws configure list --profile dev
  3. Test credentials: aws sts get-caller-identity --profile dev

For more help, see the AWS Setup guide.