import { createPiece, PieceAuth } from '@activepieces/pieces-framework'; import { PieceCategory } from '@activepieces/shared'; import { runPythonCode } from './lib/run-python-code'; // Python logo - hosted on Django backend const PYTHON_LOGO = 'http://lvh.me:8000/static/images/python-logo.svg'; export const pythonCode = createPiece({ displayName: 'Python Code', description: 'Execute Python code in your automations', auth: PieceAuth.None(), minimumSupportedRelease: '0.36.1', logoUrl: PYTHON_LOGO, categories: [PieceCategory.CORE, PieceCategory.DEVELOPER_TOOLS], authors: ['smoothschedule'], actions: [runPythonCode], triggers: [], });