kurtmckee / sqliteimport

Import Python code from sqlite databases

Home Page:https://sqliteimport.readthedocs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

sqliteimport

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!

Warning

The database format is likely to change as the project matures.

About

Import Python code from sqlite databases

https://sqliteimport.readthedocs.io

License:MIT License


Languages

Language:Python 100.0%