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

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for repi-client-0.2.tar.gz
Algorithm Hash digest
SHA256 a82ce7139ebf6b9fd8fa65a0a0f666dc2197892c53356300e614b2a55eaeb16c
MD5 536ff6032c22e8690d4e9d65a45e0da6
BLAKE2b-256 2d4114a0e0e366d20ebf57ad068f6dd0e4f94b9d8ec725ca40e1f892de9920c5

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