Skip to main content

Slingshot SDK

Project description

Capital One Slingshot SDK Python Library

Capital One Slingshot Logo

Quick Start

To get started with the Slingshot SDK, you can use the provided Makefile for easy setup:

make bootstrap

This single command will:

  • Install uv if not already available
  • Create a virtual environment
  • Install all dependencies
  • Set up pre-commit hooks
  • Run the test suite

Development Setup

The project uses a Makefile to streamline common development tasks. Here are the available commands:

Bootstrap Everything

make bootstrap

Complete project setup - this is what you want to run first!

Individual Setup Steps

make install-uv      # Install uv package manager if not found
make setup-venv      # Create virtual environment with uv
make sync            # Sync dependencies with uv
make test            # Run tests across all Python versions
make install-precommit # Install pre-commit hooks

Testing Commands

make test                    # Run tests across all Python versions (3.9-3.13)
make test 3.11               # Run tests for specific Python version
make test 3.11 lowest        # Run tests with specific Python version and dependency resolution
make test 3.11 highest       # Run tests with specific Python version and highest dependency resolution
make check                   # Run full CI pipeline locally (lint, typecheck, test)

The testing system automatically handles different Python versions and dependency resolutions using uv, ensuring compatibility across your supported environment matrix.

Utility Commands

make clean           # Clean up build artifacts and cache files
make help            # Show all available commands

Commit Message Guidelines

When contributing to this project, please use the Conventional Commit style for naming your commits. This ensures consistency and helps with automated versioning and changelog generation.

A commit message should follow this format:

<type>[optional scope]: <description>

[optional body]

[optional footer(s)]

Types

  • feat: A new feature
  • fix: A bug fix
  • docs: Documentation changes
  • style: Code style changes (formatting, missing semi-colons, etc.)
  • refactor: Code restructuring without changing functionality
  • test: Adding or updating tests
  • chore: Maintenance tasks (e.g., updating dependencies)

Examples

  • feat: add support for Python 3.13
  • fix: resolve issue with dependency resolution
  • docs: update README with commit guidelines

For more details, refer to the Conventional Commit Specification.

Project details


Download files

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

Source Distribution

c1s_slingshot_sdk_py-0.4.0.tar.gz (12.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

c1s_slingshot_sdk_py-0.4.0-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file c1s_slingshot_sdk_py-0.4.0.tar.gz.

File metadata

File hashes

Hashes for c1s_slingshot_sdk_py-0.4.0.tar.gz
Algorithm Hash digest
SHA256 ff388615969d1d64da9f4d64530c4444bbbd44b4ebba8e4ebfe467cfe31acccc
MD5 4153cd224954b854bcfa6664568fa2f1
BLAKE2b-256 536fe34407beeb4344300503774a0184e76301876afd5ccb255dc73d14097a5d

See more details on using hashes here.

File details

Details for the file c1s_slingshot_sdk_py-0.4.0-py3-none-any.whl.

File metadata

File hashes

Hashes for c1s_slingshot_sdk_py-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 29cff016e3b21de40009055ab43568081b7043b9e3a212ea25395a3b94506deb
MD5 49af47e12b1f552d9094de6ca3216f36
BLAKE2b-256 bc69a9ac3e730dd568154fb8821eaa7a5e6501b4d2389b7c150c6ea6a7f8eab0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page