Skip to main content

Date utility functions for sqlite-utils

Project description

sqlite-utils-dateutil

PyPI Changelog Tests License

Date utility functions for sqlite-utils.

Installation

Install this plugin in the same environment as sqlite-utils.

sqlite-utils install sqlite-utils-dateutil

Usage

This plugin adds a variety of SQL functions for parsing dates. For example:

sqlite-utils memory "select dateutil_parse('10 october 2020 3pm')" --table

Output:

dateutil_parse('10 october 2020 3pm')
---------------------------------------
2020-10-10T15:00:00

Consult the datasette-dateutil documentation for a full list of functions.

Development

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

cd sqlite-utils-dateutil
python3 -m venv venv
source venv/bin/activate

Now install the dependencies and test dependencies:

pip install -e '.[test]'

To run the tests:

pytest

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sqlite-utils-dateutil-0.1.tar.gz (7.5 kB view hashes)

Uploaded Source

Built Distribution

sqlite_utils_dateutil-0.1-py3-none-any.whl (7.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page