From: Javier Sancho Date: Fri, 4 May 2018 10:51:12 +0000 (+0200) Subject: Initial commit X-Git-Url: https://git.jsancho.org/?p=datasette-pytables.git;a=commitdiff_plain;h=f09e9ea8de59e13702fcda7030e27904c5e89282 Initial commit --- f09e9ea8de59e13702fcda7030e27904c5e89282 diff --git a/README.md b/README.md new file mode 100644 index 0000000..e69de29 diff --git a/datasette_pytables/__init__.py b/datasette_pytables/__init__.py new file mode 100644 index 0000000..8593aed --- /dev/null +++ b/datasette_pytables/__init__.py @@ -0,0 +1,6 @@ +from datasette.connectors import connector_method + +@connector_method +def inspect(path): + "Open file and return tables info" + return [], [] diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..4840847 --- /dev/null +++ b/setup.py @@ -0,0 +1,31 @@ +from setuptools import setup +import os + +VERSION = '0.1' + + +def get_long_description(): + with open(os.path.join( + os.path.dirname(os.path.abspath(__file__)), 'README.md' + ), encoding='utf8') as fp: + return fp.read() + + +setup( + name='datasette-pytables', + description='Datasette connector for loading pytables files (.h5)', + long_description=get_long_description(), + long_description_content_type='text/markdown', + author='Javier Sancho', + url='https://github.com/jsancho-gpl/datasette-pytables', + license='Apache License, Version 2.0', + version=VERSION, + packages=['datasette_pytables'], + entry_points={ + 'datasette.connectors': [ + 'pytables = datasette_pytables' + ], + }, + install_requires=['datasette'] +) +