Git Product home page Git Product logo

pstream's Introduction

pstream

pstream is a server implementation for Apple's PhotoStream that supports iOS 5.1.1 and OS X 10.7 and 10.8. It is built on Twisted.

Warning: This is a proof of concept. Data is stored in memory except for uploaded pictures. The data is saved to disk using pickle, but this is far from being efficient. pstream currently does not provide an authentication mechanism.

Requirements

Requirements can be installed using pip, I recommend using a virtualenv.

pip install -r requirements.txt

Setup

Server Certificate

pstream impersonates iCloud servers, so you need to create a X.509 SSL server certificate and make the client devices trust it. Its common name should be *.icloud.com. Place private key and certificate in PEM encoding(as created by OpenSSL) in certs/icloud.com.{key,crt}.

You can make your devices trust the certificate e.g. by installing the certificate on the device.

Push

If you want devices to automatically download photos once another device has uploaded them, you need to set up pushproxy. pstream automatically tries to connect to a pushproxy instance running on 127.0.0.1:1234, where pushproxy listens by default.

Running

pstream listens on port 443 by default, this requires root privileges. It tries to use sudo to acquire them. The root privileges are only used for listening on this port and dropped to your current user for the process serving requests.

cd pstream
./runstreams.sh

See settings/development.py for changing the default configuration.

pstream's People

Contributors

mfrister avatar

Watchers

James Cloos avatar Kitsion 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.