Ruby wrapper for interacting with the Planga chat server.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
planga Initial commit Sep 27, 2018
.gitignore Initial commit Sep 27, 2018
LICENSE.txt Initial commit Sep 27, 2018
README.md Update README.md Oct 15, 2018
setup.py Initial commit Sep 27, 2018

README.md

Planga Python Wrapper:

Planga Planga Docs

PyPI =PyPI - Python Version](https://pypi.org/project/planga/)

Example usage:

from planga import *

conf = PlangaConfiguration(
        public_api_id="foobar",
        private_api_key="ePxoM3OTkW1z6j84JDurqw",
        conversation_id="general",
        current_user_id="1234",
        current_user_name="Bob",
        container_id="my_container_div"
    )

snippet = Planga.get_planga_snippet(conf)

Setup:

  • Install Twine: pip install twine

Requirements:

Build and Deploy new package:

  • run python3 setup.py sdist bdist_wheel
  • run twine upload --repository-url https://test.pypi.org/legacy/ dist/* --skip-existing

Installing the new package:

  • run python -m pip install jwcrypto
  • run python -m pip install --index-url https://test.pypi.org/simple/ planga

Installing jwcrypto manually is only necessary when uploading the planga wrapper to test.pypi.org. The installation tool will attempt to install jwcrypto from test.pypi.org as well, which fails. Having jwcrypto pre-installed allows the installation of the planga wrapper to finish successfully.

Deploy to live Pypi:

  • run twine upload dist/* --skip-existing

For information on how to package for PiPy: https://packaging.python.org/tutorials/packaging-projects/