Skip to main content

datasets

This helps with the use of standard SQL datasets.

It comes with 4 datasets:

Instalation

The package can be installed with:

pip install qrlew-datasets

The library assumes:

  • either that postgresql is installed,
  • or that docker is installed and can spawn postgresql containers.

Postgresql in a container

The library automatically spawns containers. There is nothing to do.

Without docker installed

Setup a psql as in https://colab.research.google.com/github/tensorflow/io/blob/master/docs/tutorials/postgresql.ipynb

You can set the port to use: here 5433.

# Inspred by https://colab.research.google.com/github/tensorflow/io/blob/master/docs/tutorials/postgresql.ipynb#scrollTo=YUj0878jPyz7
sudo apt-get -y -qq update
sudo apt-get -y -qq install postgresql-14
# Start postgresql server
# sudo sed -i "s/#port = 5432/port = 5433/g" /etc/postgresql/14/main/postgresql.conf
sudo sed -i "s/port = 5432/port = 5433/g" /etc/postgresql/14/main/postgresql.conf
sudo service postgresql start
# Set password
sudo -u postgres psql -U postgres -c "ALTER USER postgres PASSWORD 'pyqrlew-db'"
# Install python packages

Testing the absence of docker if docker is installed:

You can simulate the absence of docker by running this code inside a container.

First run: docker run --name test -d -i -t -v .:/datasets ubuntu:22.04 Then run: docker exec -it test bash

Building the .sql dumps

To build the datasets, install the requirements with:

poetry shell

You can then build the datasets with:

python -m datasets.build

You may need to install the requirements of some drivers such as: https://pypi.org/project/mysqlclient/

Metadata

Release files for qrlew-datasets 0.9.0

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

Source distribution (sdist)

Source distribution for qrlew-datasets 0.9.0
File Size Uploaded Provenance Actions
qrlew_datasets-0.9.0.tar.gz 9.8 kB Without provenance Details for qrlew_datasets-0.9.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for qrlew-datasets 0.9.0
File Interpreter ABI Platform Actions
qrlew_datasets-0.9.0-py3-none-any.whl Python 3 none any Details for qrlew_datasets-0.9.0-py3-none-any.whl

Total release size: 22.0 kB

Release files / qrlew_datasets-0.9.0.tar.gz

Download URL qrlew_datasets-0.9.0.tar.gz
Size 9.8 kB
Tags Source
SHA-256 checksum
How to use checksums
209dd1d32862ad5d42238e4e747ad17b1f5fae9eaafd9dc0458c36dc4ea1c13b
BLAKE2b-256 checksum
How to use checksums
b167b1630a2c77be82a8dbb5866b45c0b74e30f7b41d3a33772d21fcc628c32c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.18

Release files / qrlew_datasets-0.9.0-py3-none-any.whl

Download URL qrlew_datasets-0.9.0-py3-none-any.whl
Size 12.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dd043029dd3cd4318174adb848bf989b92f103f78b9738907e132a27f5bf4c09
BLAKE2b-256 checksum
How to use checksums
add505075b156fcfd7a2f0bd8105d8505fac31f8643b0ac759560c6e264bac32
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.18

Security for qrlew-datasets 0.9.0

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.

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