1 ## Unofficial Python interface for Diaspora\* social network
3 [![Diaspy on PyPI](https://badge.fury.io/py/diaspy-api.png)](https://pypi.python.org/pypi/diaspy-api)
5 `diaspy` is a set of modules which form an Python interface to the API of
6 Diaspora\* social network.
8 Test suite will cause problems when run with 2.x so testing should be done
9 using python3 interpreter.
11 Object oriented design of `diaspy` makes it easily reusable by other
12 developers who want to use only part of the interface and create derivative
15 Developers who don't like the design of `diaspy` and want to create something better
16 can use only `diaspy.connection.Connection()` object as it is capable of
17 doing everything. Other modules are just layers that provide easier access to
18 parts of the Diaspora\* API.
24 List of software `diaspy` requires to run.
25 Versions used by maintainer are the ones available in stock Arch x86\_64 repositories.
30 [Website](https://www.python.org/)
36 [Website](http://docs.python-requests.org/en/latest/)
41 [Website](https://github.com/dateutil/dateutil)
43 *Optional:* **`python-beautifulsoup4`**
44 [Website](https://www.crummy.com/software/BeautifulSoup/)
51 #### 1. Posting text to your stream
53 You only need two objects to do this: `Stream()` and `Connection()`.
56 >>> c = diaspy.connection.Connection(pod='https://pod.example.com',
60 >>> stream = diaspy.streams.Stream(c)
61 >>> stream.post('Your first post')
65 #### 2. Reference implementation
67 There is no official reference implementation of D\* client using `diaspy`.
68 The `diaspy.client` module is no longer maintained and will be removed in the future.
70 However, there is a small script written that uses `diaspy` as its backend.
71 Look for `diacli` in marekjm's repositories on GitHub.
75 To get more information about how the code works read
76 documentation (`./doc/` directory) and manual (`./manual/` directory).