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
Release history Release notifications | RSS feed
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)
Built Distribution
Close
Hashes for sqliteimport-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 22684eb121e45a68e40270ad8278823e5079c15a9dc3355797921aaceac93f07 |
|
MD5 | 64b96248f02a24509eeade8814b8f407 |
|
BLAKE2b-256 | 179c5fe3bca2b87068f6ef21fc1fa21f24cceb31b64d504c5b60554910d28412 |