Skip to main content

AI Kill Switch SDK

Project description

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

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

ai_kill_switch-0.0.1.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

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

ai_kill_switch-0.0.1-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file ai_kill_switch-0.0.1.tar.gz.

File metadata

  • Download URL: ai_kill_switch-0.0.1.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.9

File hashes

Hashes for ai_kill_switch-0.0.1.tar.gz
Algorithm Hash digest
SHA256 057b97497b4cca52746e552a7f164d6da1b5fb4fa38a8d34817cc33cd6098e30
MD5 c844b338ade86011d3df2824cd8d3945
BLAKE2b-256 bab416b2d267ac30eda692986efc197a7b9368dd1bcc7cb273a579b3f3d2eef7

See more details on using hashes here.

File details

Details for the file ai_kill_switch-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: ai_kill_switch-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.9

File hashes

Hashes for ai_kill_switch-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5c7a38a8a445c801bde22f60842d2343764bdcf8b66ab5e6e6b088ed857d9c58
MD5 543adf38f7bfc54c997a6b181c9d7d25
BLAKE2b-256 bce00bc37700ae09e02edcd1255c006598a5e509bcc7b2726ef79887ff8ac23c

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