Skip to content

This repository includes sample code showing how to interact with messaging based services provided by IBM Research Ireland.

License

Notifications You must be signed in to change notification settings

IBM/pycloudmessenger

Repository files navigation

travis-badge

pycloudmessenger

The purpose of this project is to provide sample code for interacting with various messaging based cloud platforms provided by IBM Research Europe - Dublin.

Prerequisites

It is assumed that all development takes place in Python, using at least version 3.6.

Testing

Unit tests are contained in the tests directory.

To run the unit tests, a local RabbitMQ container is launched automatically. Settings and credentials to match the latest RabbitMQ docker image are also provided. To run the test:

creds=local.json make test

Examples

Sample code for basic messaging as well as federated learning and castor are contained in the examples directory. To run various samples, invoke the appropriate make target, as follows.

# The basic messaging sample
creds=local.json make basic
# The federated learning sample (online, requires cloud credentials)

python -m examples.ffl.register --credentials=<CLOUDCREDENTIALS> --user=<USER> --password=<PASSWORD> > credentials.json
python -m examples.ffl.sample --credentials=credentials.json
python -m examples.ffl.deregister --credentials=credentials.json
# The castor sample
creds=credentials.json make castor

Note: For online platforms, <CLOUDCREDENTIALS> must be available. Please request from the IBM team.

References

This project has received funding from the European Union’s Horizon 2020 research and innovation programme under grant agreement No 824988. https://musketeer.eu/

/EU.png

About

This repository includes sample code showing how to interact with messaging based services provided by IBM Research Ireland.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages