diff --git a/README.md b/README.md index 63978fc..99caeac 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ #Sajax -Sajax is a python/jQuery extension for building ajax web applications. +Sajax is a Flask/jQuery extension for building ajax web applications. There are a ton of tools/libraries/frameworks out there that make AJAX really easy though, right? Turns out, there aren't really any that ease the transition between python and javascript specifically. Even jQuery's diff --git a/__init__.py b/__init__.py index 8b60450..79f15af 100644 --- a/__init__.py +++ b/__init__.py @@ -1,2 +1 @@ -from sajax import Sajax -from response import Response \ No newline at end of file +from sajax import Registrar, Response \ No newline at end of file diff --git a/sajax/__init__.py b/sajax/__init__.py new file mode 100644 index 0000000..d510730 --- /dev/null +++ b/sajax/__init__.py @@ -0,0 +1,2 @@ +from sajax import Registrar +from response import Response \ No newline at end of file diff --git a/response.py b/sajax/response.py similarity index 100% rename from response.py rename to sajax/response.py diff --git a/sajax.py b/sajax/sajax.py similarity index 97% rename from sajax.py rename to sajax/sajax.py index c32e489..654c925 100644 --- a/sajax.py +++ b/sajax/sajax.py @@ -2,7 +2,7 @@ import pprint -class Sajax: +class Registrar: """Register Python routes or methods with Sajax.js Given a set of python routes or FlaskViews, register these routes so that they can be diff --git a/static/js/sajax.js b/sajax/static/js/sajax.js similarity index 100% rename from static/js/sajax.js rename to sajax/static/js/sajax.js diff --git a/setup.py b/setup.py index f22a316..372c687 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ sajax ------------- -Python / jQuery AJAX library, structured similarly to old xajax library +Flask / jQuery AJAX library, structured similarly to old xajax library """ from setuptools import setup @@ -13,9 +13,9 @@ license='BSD', author='Robert Burnham', author_email='burnhamrobertp@gmail.com', - description="Python / jQuery AJAX library", + description="Python / Flask / jQuery AJAX library", long_description=__doc__, - py_modules=['sajax'], + packages=['sajax'], zip_safe=False, include_package_data=True, platforms='any',