Skip to main content

RePi client, a Redis PubSub interface for PyPi.

Project description

Remote control your PyPi-packages via Redis PubSub. If you have a lot of virtual environments on different machines, install repi-client in each of them and only run one script. After that you can publish events like INSTALL to, you guessed it, install python packages on all connected systems.

Installation

repi-client requires a running Redis server. See Redis’ quickstart for installation instructions. repi-client is compatible with Redis clusters (which is an experimental feature at this point).

$ pip install repi-client

or from source:

$ python setup.py install

Getting started

After installation, you can run the ‘repi-client’ script.

$ repi-client my_client_name

That’s all!

To connect to a Redis host different from ‘localhost’, you can see a list of all the available options by running:

$ repi-client -h

Commands

The default channels are using the ‘repi’ namespace. To talk to all connected repi-clients, publish a command to ‘repi:cluster’ (you can change those names). To talk to a specific repi-client, publish to ‘repi:client-name’.

Exchange a simple PING/PONG:

{
    "command": "PING",
    "client": "master",
    "data": null
}

Get a list of all installed packages:

{
    "command": "PACKAGE_LIST",
    "client": "master",
    "data": null
}

Install a package:

{
    "command": "INSTALL",
    "client": "master",
    "data": {
        "package": "BeautifulSoup",
        "version": null
    }
}

Install a certain package version:

{
    "command": "INSTALL",
    "client": "master",
    "data": {
        "package": "BeautifulSoup",
        "version": "3.2.1"
    }
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

repi-client-0.3.tar.gz (3.8 kB view details)

Uploaded Source

File details

Details for the file repi-client-0.3.tar.gz.

File metadata

  • Download URL: repi-client-0.3.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for repi-client-0.3.tar.gz
Algorithm Hash digest
SHA256 8e5b8f92bbb1d056937ac1fd907bdbd3280e7671aff1cfd6d284718077ec1949
MD5 833cc244fdc306c65e0f7d607c48b9c3
BLAKE2b-256 5af25038d6d317acc2d9457b0948110c1ca595baff2bc771814f179e4a859ee7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page