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
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
License
This project is licensed under the MIT License - see the LICENSE file for details.
Support
- Issues: GitHub Issues
- Documentation: Documentation
- Email: ai.kill.switch.contact@gmail.com
Changelog
0.0.1 (Unreleased)
- Initial release
- Simple hello function
- Comprehensive test coverage
Project details
Release history Release notifications | RSS feed
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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
057b97497b4cca52746e552a7f164d6da1b5fb4fa38a8d34817cc33cd6098e30
|
|
| MD5 |
c844b338ade86011d3df2824cd8d3945
|
|
| BLAKE2b-256 |
bab416b2d267ac30eda692986efc197a7b9368dd1bcc7cb273a579b3f3d2eef7
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5c7a38a8a445c801bde22f60842d2343764bdcf8b66ab5e6e6b088ed857d9c58
|
|
| MD5 |
543adf38f7bfc54c997a6b181c9d7d25
|
|
| BLAKE2b-256 |
bce00bc37700ae09e02edcd1255c006598a5e509bcc7b2726ef79887ff8ac23c
|