X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=README.md;h=9c3613e2149c8e0be2c8686678a158982870d55f;hb=74edacee9c186cfeab07fad3af190fdecfcc3cce;hp=213fab791fd1a0ac4746e357289626b96855981c;hpb=f2eaa3c7bbb495584b5e3ee93da82073c4d3dc4e;p=diaspy.git diff --git a/README.md b/README.md index 213fab7..9c3613e 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,38 @@ -#### Python API for Diaspora (unofficial) +## Unofficial Python interface for Diaspora\* social network -`diaspy` is a set of modules which form API for D\* social network. -The API is written in Python 3.x and is not Python 2.x compatible. +`diaspy` is a set of modules which form an Python interface to the API of +Disapora\* social network. + +Test suite will cause problems when run with 2.x so testing should be done +using python3 interpreter. Object oriented design of `diaspy` makes it easily reusable by other -developers who want to use only part of the API. +developers who want to use only part of the interface and create derivative +works from it. + +Developrs who don't like the design of `diaspy` and want to create something better +can use only `diaspy.connection.Connection()` object as it is capable of +doing everything. Other modules are just layers that provide easier access to +parts of the Diaspora\* API. + +---- + +### Dependencies + +List of software `diaspy` requires to run. +Versions used by maintainer are the ones available in stock Arch x86\_64 repositories. + +**`python`** + +Version: 3.3.3 +[Website](https://www.python.org/) + + +**`python-requests`** + +Version: 2.1.0 +[Website](http://docs.python-requests.org/en/latest/) + ---- @@ -19,16 +47,18 @@ You only need two objects to do this: `Stream()` and `Connection()`. ... username='foo', ... password='bar') >>> c.login() - >>> stream = diaspy.models.Stream(c) + >>> stream = diaspy.streams.Stream(c) >>> stream.post('Your first post') +---- + +#### 2. Reference implementation -#### 2. More features +There is no official reference implementation of D\* client using `diaspy`. +The `diaspy.client` module is no longer maintained and will be removed in the future. -There is a special `client` module in diaspy which is an example client -of D\* written using the `diapsy` API. It provides many features useful for -interactions with social network like messages, mentions, likes etc. -It is full of good, useful stuff. +However, there is a small script written that uses `diaspy` as its backend. +Look for `diacli` in marekjm's repositories on GitHub. ----