From dff719cc06fba627f6411db1bf19b14a528b1330 Mon Sep 17 00:00:00 2001 From: Moritz Kiefer Date: Tue, 15 Jan 2013 21:12:59 +0100 Subject: [PATCH] Further improvements to the documentation --- diaspy/diaspy.py => diaspy.py | 6 +++--- diaspy/__init__.py | 3 --- docs/source/index.rst | 2 +- setup.py | 2 +- 4 files changed, 5 insertions(+), 8 deletions(-) rename diaspy/diaspy.py => diaspy.py (95%) delete mode 100644 diaspy/__init__.py diff --git a/diaspy/diaspy.py b/diaspy.py similarity index 95% rename from diaspy/diaspy.py rename to diaspy.py index 2ec0d10..8e5dab4 100755 --- a/diaspy/diaspy.py +++ b/diaspy.py @@ -28,9 +28,9 @@ class Client: """This function is used to connect to the pod and log in. :param username: The username used to log in. - :type username: str. + :type username: str :param password: The password used to log in. - :type password: str. + :type password: str """ self._username = username @@ -51,7 +51,7 @@ class Client: :param text: Text to post. :type text: str :param aspect_id: Aspect id to send post to. - :type aspect_id: str. + :type aspect_id: str """ r = self._session.get(self._pod + "/stream") diff --git a/diaspy/__init__.py b/diaspy/__init__.py deleted file mode 100644 index 00322e8..0000000 --- a/diaspy/__init__.py +++ /dev/null @@ -1,3 +0,0 @@ -pass -pass -pass diff --git a/docs/source/index.rst b/docs/source/index.rst index 9b8c9af..e0620f5 100644 --- a/docs/source/index.rst +++ b/docs/source/index.rst @@ -11,7 +11,7 @@ Contents: .. toctree:: :maxdepth: 2 -.. autoclass:: diaspy.diaspy.Client +.. autoclass:: diaspy.Client :members: diff --git a/setup.py b/setup.py index 28343ff..679a86c 100644 --- a/setup.py +++ b/setup.py @@ -3,6 +3,6 @@ setup(name='diaspy', version='1.0', author='Moritz Kiefer', author_email='moritz.kiefer@gmail.com', - py_modules=['diaspy.diaspy'], + py_modules=['diaspy'], requires=['requests'] ) -- 2.25.1