Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

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

Metadata

Release files for datasette-enrichments-re2 0.1a0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for datasette-enrichments-re2 0.1a0
File Size Uploaded Provenance Actions
datasette-enrichments-re2-0.1a0.tar.gz 8.9 kB Without provenance Details for datasette-enrichments-re2-0.1a0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for datasette-enrichments-re2 0.1a0
File Interpreter ABI Platform Actions
datasette_enrichments_re2-0.1a0-py3-none-any.whl Python 3 none any Details for datasette_enrichments_re2-0.1a0-py3-none-any.whl

Total release size: 17.7 kB

Release files / datasette-enrichments-re2-0.1a0.tar.gz

Download URL datasette-enrichments-re2-0.1a0.tar.gz
Size 8.9 kB
Tags Source
SHA-256 checksum
How to use checksums
82a94d81ec4c9e4ba9e9ae23359cff53839e89c759a0d3df27532e703a7d163e
BLAKE2b-256 checksum
How to use checksums
56de174321742b6af595208fed3c5f436bb721bf2b270ce2d1b9f0ca5e816bd6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.12.0

Release files / datasette_enrichments_re2-0.1a0-py3-none-any.whl

Download URL datasette_enrichments_re2-0.1a0-py3-none-any.whl
Size 8.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9cf578b2daf5dca66bbd70f474494088f0e2085d50602c2a9999c40a5899f894
BLAKE2b-256 checksum
How to use checksums
558a183cd272d9bec193688f629bd6d739a378459befb39f22eafa4ad401ce7b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.12.0

Security for datasette-enrichments-re2 0.1a0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page