Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

datasette-enrichments-re2

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

datasette-enrichments-re2

Enrich data using regular expressions

  • 0.1
  • PyPI
  • Socket score

Maintainers
1

datasette-enrichments-re2

PyPI Changelog Tests License

Enrich data using regular expressions

Installation

Install this plugin in the same environment as Datasette.

datasette install datasette-enrichments-re2

Usage

This enrichment allows you to run a regular expression against a column and perform one of the following:

  • Execute a search and replace against that column
  • Extract the first matching result and store that in the specified column (adding a column if necessary)
  • Extract all matching results and store them as a JSON array in the specified column. If the regular expression uses named capture groups this will be an array of objects, otherwise it will be an array of strings.
  • Execute a regular expression with named capture groups and store the results in multiple columns, one for each of those named groups

Development

To set up this plugin locally, first checkout the code. Then create a new virtual environment:

cd datasette-enrichments-re2
python3 -m venv venv
source venv/bin/activate

Now install the dependencies and test dependencies:

pip install -e '.[test]'

To run the tests:

pytest

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc