diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..6f0c8c4 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +*.pyc +parsepy.egg-info diff --git a/__init__.py b/parsepy/__init__.py similarity index 98% rename from __init__.py rename to parsepy/__init__.py index e01657c..a53d37e 100644 --- a/__init__.py +++ b/parsepy/__init__.py @@ -112,7 +112,7 @@ def _convertToParseType(self, prop): 'objectId': value._object_id} elif type(value) == datetime.datetime: value = {'__type': 'Date', - 'iso': value.isoformat()[:-3] + 'Z'} # take off the last 3 digits and add a Z + 'iso': value.isoformat() + 'Z'} elif type(value) == ParseBinaryDataWrapper: value = {'__type': 'Bytes', 'base64': base64.b64encode(value)} diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..e6f4d09 --- /dev/null +++ b/setup.py @@ -0,0 +1,14 @@ +from setuptools import setup, find_packages + +setup( + name='parsepy', + version='1.0.0', + description='ParsePy is a Python client for the Parse REST API', + long_description=open("README.mkd").read(), + packages=find_packages(), + author='pktck', + author_email='parsepy@paulkastner.com', + url="https://github.com/pktck/ParsePy", + license="GPL", + ) +