From 7061db554833640c098e140c4830b7eb40089087 Mon Sep 17 00:00:00 2001 From: Matt Hill Date: Wed, 5 Aug 2015 18:47:29 -0400 Subject: [PATCH] Cleaned up Python bindings. Moved to openalpr package and added import in __init__ --- src/bindings/python/openalpr/__init__.py | 1 + src/bindings/python/{ => openalpr}/openalpr.py | 0 src/bindings/python/setup.py | 12 ++++++++++++ src/bindings/python/test.py | 2 +- 4 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 src/bindings/python/openalpr/__init__.py rename src/bindings/python/{ => openalpr}/openalpr.py (100%) create mode 100644 src/bindings/python/setup.py diff --git a/src/bindings/python/openalpr/__init__.py b/src/bindings/python/openalpr/__init__.py new file mode 100644 index 0000000..2871d69 --- /dev/null +++ b/src/bindings/python/openalpr/__init__.py @@ -0,0 +1 @@ +from openalpr import Alpr diff --git a/src/bindings/python/openalpr.py b/src/bindings/python/openalpr/openalpr.py similarity index 100% rename from src/bindings/python/openalpr.py rename to src/bindings/python/openalpr/openalpr.py diff --git a/src/bindings/python/setup.py b/src/bindings/python/setup.py new file mode 100644 index 0000000..5c503d3 --- /dev/null +++ b/src/bindings/python/setup.py @@ -0,0 +1,12 @@ +#!/usr/bin/env python + +from distutils.core import setup + +setup(name='openalpr', + version='1.0', + description='OpenALPR Python Bindings', + author='Matt Hill', + author_email='matthill@openalpr.com', + url='http://www.openalpr.com/', + packages=['openalpr'] + ) diff --git a/src/bindings/python/test.py b/src/bindings/python/test.py index 5a068f6..e350f07 100644 --- a/src/bindings/python/test.py +++ b/src/bindings/python/test.py @@ -54,4 +54,4 @@ try: finally: if alpr: - alpr.unload() \ No newline at end of file + alpr.unload()