Initial commit
authorJavier Sancho <jsf@jsancho.org>
Fri, 4 May 2018 10:51:12 +0000 (12:51 +0200)
committerJavier Sancho <jsf@jsancho.org>
Fri, 4 May 2018 10:51:12 +0000 (12:51 +0200)
README.md [new file with mode: 0644]
datasette_pytables/__init__.py [new file with mode: 0644]
setup.py [new file with mode: 0644]

diff --git a/README.md b/README.md
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/datasette_pytables/__init__.py b/datasette_pytables/__init__.py
new file mode 100644 (file)
index 0000000..8593aed
--- /dev/null
@@ -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 (file)
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']
+)
+