Skip to main content

Import Python code from sqlite databases

Project description

Import Python code from sqlite databases.


Demo usage example, using demo.py in the sqliteimport repository:

# Ensure sqliteimport is installed with the 'cli' extra.
pip install sqliteimport[cli]

# Install 'requests' in a standalone directory.
pip install --target=sample requests

# Generate a sqlite database containing the installed packages.
sqliteimport bundle sample sample.sqlite3

# Demonstrate that importing from a database works.
python demo.py sample.sqlite3

This is the output:

$ python demo.py
The requests module object:
<module 'requests' (sample.sqlite3)>

Requesting a webpage...success!

Project details


Download files

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

Source Distribution

sqliteimport-0.2.0.tar.gz (4.1 kB view hashes)

Uploaded Source

Built Distribution

sqliteimport-0.2.0-py3-none-any.whl (5.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