Python framework for workflow automations.
Project description
👋 Hi there, this is QueryStar
Python-First Solution to Develop Bots
QueryStar lets you easily set up triggers and actions to automate workflows.
Something like
Saving Slack new messages that must contain 'hello' to a Google sheet
can be easily done:
# bot.py
import querystar as qs
data = qs.triggers.slack.new_message(channel_id='MyChannelID',
trigger_string='hello')
qs.actions.slack.new_message(
spreadsheet_id='MySheetID',
worksheet_id='Sheet1',
data=[[data['user'], data['text']]])
QueryStar can help you:
- automate workflows
- develop Slack bots
- integrate SaaS data to your own apps
- run background jobs
- schedule tasks
- ...
Get Started
Installation
pip install querystar
Setup Slack (or other apps) Connection
This step takes 3-5 mins:
- Crete a free account at querystar.io
- Add any SaaS tools that you want to automate in your QueryStar workspace. (Head over to quickstart in our docs for instructions.)
- Get a QueryStar token. (Instruction)
- Add the token as an environment variable on your dev machine.
[!IMPORTANT] Your Data is Safe on QueryStar backend: QueryStar takes care of 3rd party API integration. It only monitors trigger events and passes action data back to the apps of your choice. Your data is NOT stored or logged in any form or capacity. Please see Privacy Policy for more details.
Build and Run a Bot
-
Create a new file
app.py
and add this code:# app.py import querystar as qs message = qs.triggers.slack.new_message(channel_id='MyChannelID') print(message)
-
Add QueryStar app to your Slack channel, and copy the channel ID (Instruction)
-
Replace
MyChannelID
with the channel id. -
Run the bot:
$ querystar run app.py
Get Inspired
Because you use Python, there's much more you can build.
- A LLM-powered (Large Language Model) Slack bot: tutorial.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file querystar-0.3.14.tar.gz
.
File metadata
- Download URL: querystar-0.3.14.tar.gz
- Upload date:
- Size: 16.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.11.4 Darwin/22.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 44f1ede47ebf65fdb45ba5aa650a18f239a7eb65dd6bb84565fb9086f7f57c79 |
|
MD5 | 1abc8eb049b4ecbb03ced4d370e358cf |
|
BLAKE2b-256 | 3f90308e3f3660ea51a0a176887d9bf6fdb8e8925ed7661c35575f052a527df8 |
File details
Details for the file querystar-0.3.14-py3-none-any.whl
.
File metadata
- Download URL: querystar-0.3.14-py3-none-any.whl
- Upload date:
- Size: 21.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.11.4 Darwin/22.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f7dc4ad197af554621b0b227c16ad6a232517dce3c81a2a69b6a564e662a5d0e |
|
MD5 | 35c768a6a4d78caf25e7e937b9627ee7 |
|
BLAKE2b-256 | b3d4b1326827ac3ade480668d0d92aebbebe487d049f1c94c6b6268ef5446d8e |