Coder Social home page Coder Social logo

flashwalker / diaspy Goto Github PK

View Code? Open in Web Editor NEW

This project forked from marekjm/diaspy

0.0 0.0 0.0 464 KB

Fork for PR of Unofficial Python interface to the DIASPORA* social network (from @marekjm/diaspy)

License: MIT License

Python 99.61% Makefile 0.39%

diaspy's Introduction

Unofficial Python interface for Diaspora* social network

Diaspy on PyPI

diaspy is a set of modules which form an Python interface to the API of Diaspora* 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 interface and create derivative works from it.

Developers 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

python-requests

Version: 2.1.0 Website

python-dateutil

Version: >= 2.2 Website

Optional: python-beautifulsoup4 Website


Quick intro

1. Posting text to your stream

You only need two objects to do this: Stream() and Connection().

>>> import diaspy
>>> c = diaspy.connection.Connection(pod='https://pod.example.com',
...                                  username='foo',
...                                  password='bar')
>>> c.login()
>>> stream = diaspy.streams.Stream(c)
>>> stream.post('Your first post')

2. Reference implementation

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.

However, there is a small script written that uses diaspy as its backend. Look for diacli in marekjm's repositories on GitHub.


To get more information about how the code works read documentation (./doc/ directory) and manual (./manual/ directory).

diaspy's People

Contributors

cnngimenez avatar debakel avatar dependabot[bot] avatar faldrian avatar jaywink avatar kensanata avatar kianby avatar lamby avatar marekjm avatar wilddeej avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.