Skip to main content

AI Kill Switch SDK

A Python SDK for implementing AI safety mechanisms and kill switches.

Installation

Install the package from PyPI:

pip install ai-kill-switch

Or install from source:

git clone https://github.com/ai-kill-switch/ai-kill-switch.git
cd ai-kill-switch
pip install -e .

Quick Start

from ai_kill_switch import hello

# Use the hello function
message = hello()
print(message)  # Output: Hello from AI Kill Switch!

Features

  • Simple Interface: Easy-to-use hello function
  • Lightweight: Minimal dependencies and overhead
  • Well-tested: Comprehensive test coverage

Usage

from ai_kill_switch import hello

# Get the greeting message
message = hello()
print(message)

# Use in your own functions
def greet_user():
    return f"Welcome! {hello()}"

Development

Setup Development Environment

# Clone the repository
git clone https://github.com/ai-kill-switch/ai-kill-switch.git
cd ai-kill-switch

# Install development dependencies
pip install -r requirements.txt

# Install package in development mode
pip install -e .

Running Tests

# Run all tests
pytest

# Run with coverage
pytest --cov=ai_kill_switch

# Run specific test file
pytest tests/test_core.py

Code Quality

# Format code
black ai_kill_switch tests

# Lint code
flake8 ai_kill_switch tests

# Type checking
mypy ai_kill_switch

Building and Publishing

Build Package

# Build source distribution and wheel
python -m build

# Check package
twine check dist/*

Upload to PyPI

# Upload to Test PyPI first
twine upload --repository testpypi dist/*

# Upload to PyPI
twine upload dist/*

Contributing

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

License

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

Support

Changelog

0.0.1 (Unreleased)

  • Initial release
  • Simple hello function
  • Comprehensive test coverage

Metadata

Release files for ai-kill-switch 0.0.1

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

Source distribution (sdist)

Source distribution for ai-kill-switch 0.0.1
File Size Uploaded Provenance Actions
ai_kill_switch-0.0.1.tar.gz 4.5 kB Without provenance Details for ai_kill_switch-0.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ai-kill-switch 0.0.1
File Interpreter ABI Platform Actions
ai_kill_switch-0.0.1-py3-none-any.whl Python 3 none any Details for ai_kill_switch-0.0.1-py3-none-any.whl

Total release size: 8.6 kB

Release files / ai_kill_switch-0.0.1.tar.gz

Download URL ai_kill_switch-0.0.1.tar.gz
Size 4.5 kB
Tags Source
SHA-256 checksum
How to use checksums
057b97497b4cca52746e552a7f164d6da1b5fb4fa38a8d34817cc33cd6098e30
BLAKE2b-256 checksum
How to use checksums
bab416b2d267ac30eda692986efc197a7b9368dd1bcc7cb273a579b3f3d2eef7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.9

Release files / ai_kill_switch-0.0.1-py3-none-any.whl

Download URL ai_kill_switch-0.0.1-py3-none-any.whl
Size 4.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5c7a38a8a445c801bde22f60842d2343764bdcf8b66ab5e6e6b088ed857d9c58
BLAKE2b-256 checksum
How to use checksums
bce00bc37700ae09e02edcd1255c006598a5e509bcc7b2726ef79887ff8ac23c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.9

Security for ai-kill-switch 0.0.1

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.0.1 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