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.
➤ Complete Documentation & API Reference
For comprehensive guides, examples, and API documentation, visit our GitHub Pages documentation site.
Install the SDK using pip:
pip install c1s-slingshot-sdk-pyfrom 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)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
This project is licensed under the Apache 2.0 License - see the LICENSE file for details.
