Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alberto-salinas/datasette-base64
A datasette plugin that adds base64 decoder and encoder SQL functions
https://github.com/alberto-salinas/datasette-base64
datasette datasette-io datasette-plugin
Last synced: 24 days ago
JSON representation
A datasette plugin that adds base64 decoder and encoder SQL functions
- Host: GitHub
- URL: https://github.com/alberto-salinas/datasette-base64
- Owner: alberto-salinas
- License: apache-2.0
- Created: 2021-01-24T21:32:45.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-01-24T21:42:04.000Z (almost 4 years ago)
- Last Synced: 2024-11-24T17:34:13.297Z (about 1 month ago)
- Topics: datasette, datasette-io, datasette-plugin
- Language: Python
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# datasette-base64
[![PyPI](https://img.shields.io/pypi/v/datasette-base64.svg)](https://pypi.org/project/datasette-base64/)
[![Changelog](https://img.shields.io/github/v/release/alberto-salinas/datasette-base64?include_prereleases&label=changelog)](https://github.com/alberto-salinas/datasette-base64/releases)
[![Tests](https://github.com/alberto-salinas/datasette-base64/workflows/Test/badge.svg)](https://github.com/alberto-salinas/datasette-base64/actions?query=workflow%3ATest)
[![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://github.com/alberto-salinas/datasette-base64/blob/main/LICENSE)SQL functions to decode and encode base64 strings
## Installation
Install this plugin in the same environment as Datasette.
$ datasette install datasette-base64
## Usage
select base64decode(
"QmxhZGUgUnVubmVy"
)select base64encode(
"Blade Runner"
)## Development
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/activateOr if you are using `pipenv`:
pipenv shell
Now install the dependencies and tests:
pip install -e '.[test]'
To run the tests:
pytest