Skip to content

The official Python SDK for Capital One's Slingshot platform. This library provides a convenient way to interact with the Slingshot API from your Python applications.

License

Notifications You must be signed in to change notification settings

capitalone/c1s-slingshot-sdk-py

Repository files navigation

Capital One Slingshot SDK Python Library

Capital One Slingshot Logo

The official Python SDK for Capital One's Slingshot platform. This library provides a convenient way to interact with the Slingshot API from your Python applications.

📚 Documentation

Complete Documentation & API Reference

For comprehensive guides, examples, and API documentation, visit our GitHub Pages documentation site.

Table of Contents

Installation

Install the SDK using pip:

pip install c1s-slingshot-sdk-py

Quick Start

from slingshot import SlingshotClient

# Initialize the client (uses SLINGSHOT_API_KEY environment variable)
client = SlingshotClient()
# If you want to pass your API key to the client without using the environment variable:
# client = SlingshotClient(api_key="your API key")

# List projects
all_projects = []
for project in client.projects.iterate_projects():
    all_projects.append(project)

print(f"Found {len(all_projects)} projects.")

# Get a specific project
project = client.projects.get_project(all_projects[0]["id"])
print(project)

Contributing

Important

At this time, we are only accepting pull requests from Capital One employees. External pull requests will be closed.

🔧 Contributing Guide - Development setup, testing, and release process

License

This project is licensed under the Apache 2.0 License - see the LICENSE file for details.

About

The official Python SDK for Capital One's Slingshot platform. This library provides a convenient way to interact with the Slingshot API from your Python applications.

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published

Contributors 11