From f09e9ea8de59e13702fcda7030e27904c5e89282 Mon Sep 17 00:00:00 2001 From: Javier Sancho Date: Fri, 4 May 2018 12:51:12 +0200 Subject: [PATCH 1/1] Initial commit --- README.md | 0 datasette_pytables/__init__.py | 6 ++++++ setup.py | 31 +++++++++++++++++++++++++++++++ 3 files changed, 37 insertions(+) create mode 100644 README.md create mode 100644 datasette_pytables/__init__.py create mode 100644 setup.py 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'] +) + -- 2.39.2