datasette-sqlite-http 0.1.0a2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,20 @@
1
+ from datasette import hookimpl
2
+ import sqlite_http
3
+
4
+ from datasette_sqlite_http.version import __version_info__, __version__
5
+
6
+ @hookimpl
7
+ def prepare_connection(conn, database, datasette):
8
+ config = (
9
+ datasette.plugin_config("datasette-sqlite-http", database=database)
10
+ or {}
11
+ )
12
+
13
+ conn.enable_load_extension(True)
14
+
15
+ if config.get("UNSAFE_allow_http_requests"):
16
+ sqlite_http.load(conn)
17
+ else:
18
+ sqlite_http.load_no_network(conn)
19
+
20
+ conn.enable_load_extension(False)
@@ -0,0 +1,2 @@
1
+ __version__ = "0.1.0-alpha.2"
2
+ __version_info__ = tuple(__version__.split("."))
@@ -0,0 +1,16 @@
1
+ Metadata-Version: 2.1
2
+ Name: datasette-sqlite-http
3
+ Version: 0.1.0a2
4
+ Home-page: https://github.com/asg017/sqlite-http
5
+ Author: Alex Garcia
6
+ License: MIT License, Apache License, Version 2.0
7
+ Project-URL: Issues, https://github.com/asg017/sqlite-http/issues
8
+ Project-URL: CI, https://github.com/asg017/sqlite-http/actions
9
+ Project-URL: Changelog, https://github.com/asg017/sqlite-http/releases
10
+ Requires-Python: >=3.7
11
+ Description-Content-Type: text/markdown
12
+ Requires-Dist: datasette
13
+ Requires-Dist: sqlite-http
14
+ Provides-Extra: test
15
+ Requires-Dist: pytest ; extra == 'test'
16
+
@@ -0,0 +1,7 @@
1
+ datasette_sqlite_http/__init__.py,sha256=yyH-gLZb2W8MAo-KJ7Byl2ytA7PRSt4UFt5TRakD8Q8,511
2
+ datasette_sqlite_http/version.py,sha256=SFjJ6En9-DH0HkRg_wfhaU0Ebh2YKGaeQHhJKqs-O8o,79
3
+ datasette_sqlite_http-0.1.0a2.dist-info/METADATA,sha256=AoPh7q7BhWjRiLUENO6fzwSshNLsrkP4l9DIRjKRM5Q,563
4
+ datasette_sqlite_http-0.1.0a2.dist-info/WHEEL,sha256=pkctZYzUS4AYVn6dJ-7367OJZivF2e8RA9b_ZBjif18,92
5
+ datasette_sqlite_http-0.1.0a2.dist-info/entry_points.txt,sha256=eagqsxGPRP0kF8dCA4FybMi8h0xi1d9RPPDS28XGBNE,48
6
+ datasette_sqlite_http-0.1.0a2.dist-info/top_level.txt,sha256=yD9WNDeOsdBxiIO5HKw_3PfSbHPmnDqR_LJn2EamJGU,22
7
+ datasette_sqlite_http-0.1.0a2.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: bdist_wheel (0.40.0)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1,2 @@
1
+ [datasette]
2
+ sqlite_http = datasette_sqlite_http
@@ -0,0 +1 @@
1
+ datasette_sqlite_http