从sqlite数据库导入Python代码
项目描述
从sqlite数据库导入Python代码。
演示使用示例,使用 demo.py 在 sqliteimport仓库 中
# 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
这是输出
$ python demo.py
The requests module object:
<module 'requests' (sample.sqlite3)>
Requesting a webpage...success!
项目详情
下载文件
下载适用于您的平台的文件。如果您不确定选择哪个,请了解更多关于 安装软件包 的信息。
源分布
sqliteimport-0.2.0.tar.gz (4.1 kB 查看哈希值)
构建分布
sqliteimport-0.2.0-py3-none-any.whl (5.4 kB 查看哈希值)