semvec/pypi-packages huggingface dataset:
rocketchat-py-sdk 0.0.8
A easy way to connect and interact with Rocket.Chat
Keywords: python,Rocket.Chat,driver

# Rocket.Chat.py.SDK

Python DDP client for Rocket.Chat.

## Quick Start

Install the dependencies in your virtualenv:

```sh
pip install -e .
```

Run the example bot.

```sh
python examples/bot.py
```

Say **hello** and the bot will answer you.

## Overview

This is a python SDK to make the access to Rocket.Chat easier, this package it's published [here](https://pypi.org/project/rocketchat-py-sdk/).

The main class of this package is the class `Driver`, to see it run in your terminal:

```python
$ python

>>> import rocketchat_py_sdk.driver as driver

>>> help(driver)

>>> bot = driver.Driver(url='localhost:3000', ssl=False)

>>> bot.connect()
```

## Docs

### Publish new version

* In your virtualenv:


```sh
python3 -m pip install --upgrade setuptools wheel

python3 setup.py sdist bdist_wheel

python3 -m pip install --upgrade twine

twine upload dist/*

```

## Message Objects

The Rocket.Chat message schema can be found [here](https://rocket.chat/docs/developer-guides/schema-definition/).

## Driver Methods 

**TODO**

## Development

A local instance of Rocket.Chat is required for unit tests to confirm 
connection and subscription methods are functional. And it helps to manually 
run your SDK interactions (i.e. bots) locally while in development.

In this repository have a **docker-compose** file that will help you to up
your own Rocket.Chat instance.

### Docker

Run this commands to start Rocket.Chat and database in background mode:

```sh
docker-compose up -d mongo

docker-compose up -d rocketchat
```

* After that access `localhost:3000`

* Create the administrator user.

* Add the bot user with the necessary settings see `easybot.py` to check
the `user` and `password`.
shongololo 1.1.3
Python application for simply sensor data capture on a Pi

# Shongololo
## CO2 and Imet sensor ground atation snap
This is the README for the shongololos portion of the VTAgmonitoring applications

python shongololo.py --settings=run_settings

## Install:
### Install for testing with web frontend
```bash
$ git clone --recurse-submodules git@gitlab.com:r4space/VTAgMonitoring.git
$ cd VTAgMonitoring/apps/sensor-logger
$ virtualenv --python=python3 .venv
$ source .venv/bin/activate
$ pip install -r requirements.txt
$ python server.py
```
Visit localhost:5000 in a browser
ctrl-c to cancle server.py when done

### Install for deployment
.. code-block::bash
sudo aptitude install python3-dev python3-pip virtualenv 
virtualenv --python=python3 .venv
source .venv/bin/activate
pip install -r requirements.txt
pip install setuptools wheel twine


- [Follow this gist for installin flask on ubuntu](https://gist.github.com/swyngaard/296392c427504ce6f7ea81abb87aaee8)

## Operation
**As a stand alone application:**
- Follow install steps
- cd VTAgMonitoring/apps/
- python3 -m shongololo.shongololo
- Data will output to screen and write to file

**In conjuntction with the python flask web interface**
Ass
1. Follow install steps
2. On webpage:
a) Press "Setup Logger" and wait for log to indicated it has concluded testing sensors (it can take a few seconds)
b) When ready to log data for storage press "Start data capture" (This will also take a few seconds to start as it connects to all sensors"
c) When ready to stop capturing press "Stop Data Capture"
d) Repeat if you wish to sample data again
d) When ready to shutdown system press "Shutdown App" 

## Maintenance for developers
``` bash
$ python3 -m pip install --user --upgrade setuptools wheel twine
$ python3 setup.py sdist bdist_wheel
$ twine upload --repository-url  https://upload.pypi.org/legacy/ dist/*
```


### Docs
Generate docs:
``` bash
$ cd docs/
$ make html
```