Skip to main content

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.1.tar.gz (3.7 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for repi-client-0.1.tar.gz
Algorithm Hash digest
SHA256 c7dacb559be86c025fd8ef4edaf95ca394f295dd4a6b65d112bf7eafd46647c4
MD5 e107793ce3145bc3e2dd99fcbfe5f6d0
BLAKE2b-256 cbf168e88f645ef080ade89370ebc1332879f558215805e06b3be93dd8138db0

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