Skip to content
Pieter Verschaffelt edited this page Nov 6, 2024 · 1 revision

Welcome to the Peptonizer2000 wiki! This wiki mainly contains documentation about the inner workings of the Peptonizer and can be used to start development on the Peptonizer2000 package.

Building Python package

In order to pack the Peptonizer Python source as a Python Wheel, you need to change into the "peptonizer" directory and run the following command: python setup.py bdist_wheel. This will generate a whl file in the "peptonizer/dist" directory.

Building Peptonizer for JavaScript / TypeScript

The peptonizer_ts package is a TypeScript wrapper around the Peptonizer 2000. Since peptonizer_ts uses Pyodide and directly executes Python code in the browser, it's also necessary to update the Peptonizer source that's being used by encoding the whl-file generated in the previous step as base64 and moving it into the peptonizer_ts/src/workers/lib directory. In order to perform the base64 encoding, you can run base64 -w 0 peptonizer-0.1-py3-none-any.whl > peptonizer-0.1-py3-none-any.base64.whl.

Clone this wiki locally