You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Install in development mode
pip install -e .# Install with dev dependencies
pip install -e ".[dev]"# Code formatting
black src/ tests/ examples/
# Linting
pylint src/
# Type checking
mypy src/
# Test coverage
python -m pytest --cov=src tests/
🐳 Docker Commands
# Build image
docker build -t semantic-substrate-db .# Run container
docker run -it semantic-substrate-db
# Run with volume
docker run -v $(pwd):/app semantic-substrate-db
# Using docker-compose
docker-compose up
# Production deployment
docker-compose -f docker-compose.yml up -d
📦 Package Commands
# Build package
python setup.py sdist bdist_wheel
# Install from local
pip install dist/semantic_substrate_database-*.whl
# Upload to PyPI (requires credentials)
twine upload dist/*
# Start API server
python api/semantic_api.py
# Test API
curl -X GET http://localhost:5000/api/health
curl -X POST http://localhost:5000/api/store -H "Content-Type: application/json" -d '{"text": "Act with compassion", "context": "ethical"}'
📊 Performance Testing
# Benchmark database operations
python -c "import timefrom src import SemanticSubstrateDatabasedb = SemanticSubstrateDatabase('perf.db')start = time.time()for i in range(100): db.store_concept(f'Concept {i}', 'test')print(f'Stored 100 concepts in {time.time()-start:.3f}s')"
🔍 Debugging Commands
# Enable debug logging
python -c "import logginglogging.basicConfig(level=logging.DEBUG)from src import SemanticSubstrateDatabasedb = SemanticSubstrateDatabase('debug.db')# ... operations will show debug output"