Metadata-Version: 2.4
Name: sqliteimport
Version: 0.14.0
Summary: Import Python code from sqlite databases
License-Expression: MIT
License-File: LICENSE.txt
Keywords: sqlite,import,importlib
Author: Kurt McKee
Author-email: contactme@kurtmckee.org
Requires-Python: >=3.10
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Provides-Extra: cli
Requires-Dist: click (>=8,<9) ; extra == "cli"
Requires-Dist: prettytable (>=3.15.1,<4) ; extra == "cli"
Project-URL: Changelog, https://sqliteimport.readthedocs.io/en/latest/changelog/
Project-URL: Documentation, https://sqliteimport.readthedocs.io/en/latest/
Project-URL: Donate via GitHub, https://github.com/sponsors/kurtmckee
Project-URL: Donate via Ko-Fi, https://ko-fi.com/kurtmckee
Project-URL: Source, https://github.com/kurtmckee/sqliteimport
Description-Content-Type: text/x-rst

..
    This file is a part of sqliteimport <https://github.com/kurtmckee/sqliteimport>
    Copyright 2024-2025 Kurt McKee <contactme@kurtmckee.org>
    SPDX-License-Identifier: MIT


..  image:: https://raw.githubusercontent.com/kurtmckee/sqliteimport/000c868cc82965e7ac1a421c76972db545937d26/docs/_static/banner.png
    :alt: sqlite import: Import Python code from sqlite databases.

-------------------------------------------------------------------------------

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

..  code-block:: bash

    # 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:

..  code-block:: console

    $ 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.


..  Links
..  -----
..
..  _the sqliteimport repository: https://github.com/kurtmckee/sqliteimport

