SQL functions to decode and encode base64 strings
Install this plugin in the same environment as Datasette.
$ datasette install datasette-base64
select base64decode(
"QmxhZGUgUnVubmVy"
)
select base64encode(
"Blade Runner"
)
To set up this plugin locally, first checkout the code. Then create a new virtual environment:
cd datasette-base64
python3 -mvenv venv
source venv/bin/activate
Or if you are using pipenv
:
pipenv shell
Now install the dependencies and tests:
pip install -e '.[test]'
To run the tests:
pytest