semvec/pypi-packages huggingface dataset:
django-slack-event-wrapper 0.1.12
This is a django wrapper to handle slack events and slash commands.
License: MIT
Keywords: slack,slack events,django,slack django wrapper,event,slack django events

## DJANGO SLACK EVENT WRAPPER


This is a django wrapper to handle slack events and slash commands.
It also verifies incoming events using x-slack-signature and x-slack-timestamp.
It receives slack events, slash commands and delivers gracefully with the events.  

### CONFIGURATION AND SETUP

```
>settings.py
INSTALLED_APPS = [
    'django_slack_event_wrapper',
    ...
]

CONFIGURATIONS
=============

VERIFICATION_TOKEN = XXXXXXXXXXXXXXXXXXXXX
SIGNING_SECRET = XXXXXXXXXXXXXXXXXXXXX
APP_ID = XXXXXXXXXXXXXXXXXXXXX
OAUTH_TOKEN = XXXXXXXXXXXXXXXXXXXXX
BOT_ID = XXXXXXXXXXXXXXXXXXXXX

```

```
>urls.py
    open your projects urls.py file and add the following
    urlpatterns = [
        path('slack-app/', include('django_slack_event_wrapper.urls')),
        ....
    ]
    Note: you can change the name from slack-app to whatever you like.

```

### When registering your webhook urls to slack, you use the following:
```
    1. For Events: http[s]://yourdomain.name/slack-app/events [If you changed the root url name, you but that instead of slack-app]

    2. For Slash Commands: http[s]://yourdomain.name/slack-app/slash-commands [If you changed the root url name, you but that instead of slack-app]
```

### EXAMPLE

```
    NOTE: Create A slack.py file
    from django_slack_event_wrapper.dispatcher import slack_event_emitter, slash_command_emitter
    from rest_framework.response import Response

```

### EVENT
```
    @slack_event_emitter("message")
    def on_message(event, **kwargs):
        print(event)
        # have fun


```

### SLASH COMMAND
```

    @slash_command_emitter('/message-count')
    def message_count(user_id, channel_id, slash_event_data, **kwargs):
        print(user_id, channel_id)
        # have fun

```


Change Log

==========

0.1.12(11-10-2021)
----------------
- First Release
cloudendure2 0.0.4
A python wrapper for the CloudEndure API
License: MIT
Requires Python: >=3.6

**CloudEndure SDK**
# Python Package
**Compatability:** <br>
![Python Version 3.8](https://img.shields.io/badge/Python-3.8-blue.svg)

## Using CloudEndureSDK

<span style="color:DarkRed">**DOCUMENTATION WORK IN PROGRESS...**</span>

###### Example - Backup All Blueprints:
````python
from cloudendure import CloudendureSDK

userApiToken = "{TOKEN}"

client = CloudendureSDK(userApiToken)
client.export_all_bp_csv('blueprint_backup.csv')

````
###### Example - List All Projects
````python
from cloudendure import CloudendureSDK

userApiToken = 'token'
projectId = 'projectId'

client = CloudendureSDK(userApiToken)
projects = client.list_projects()
print(projects)

````


###### Example - List all project blueprints:
````python
from cloudendure import CloudendureSDK

userApiToken = 'token'
projectId = 'projectId'

client = CloudendureSDK(userApiToken)
blueprints = client.list_blueprint(projectId)

````

###### Example - List all machines in a project
````python
from cloudendure import CloudendureSDK

userApiToken = 'token'
projectId = 'projectId'

client = CloudendureSDK(userApiToken)
machines = client.list_machines(projectId)
print(machines)

````

###### Example - Get a machine blueprint and export to csv
````python
from cloudendure import CloudendureSDK

userApiToken = 'token'
projectId = 'projectId'
client = CloudendureSDK(userApiToken)

machine = client.get_machine_by_name(machineName='MyMachineName', projectId=projectId)
blueprint = [client.get_blueprint_by_machine(machineId=machine['id'], projectId=projectId)]
print(blueprint)
client.export_bp_csv(filename='export.csv', blueprint=blueprint)

````

###### Example - Get Machine by Name
````python
from cloudendure import CloudendureSDK

userApiToken = 'token'
projectId = 'projectId'
client = CloudendureSDK(userApiToken)

machine = client.get_machine_by_name(machineName='MyMachine', projectId=projectId)
print(machine)


````

###### Example - Mass update blueprints from csv
````python
from cloudendure import CloudendureSDK

userApiToken = 'token'
projectId = 'projectId'
client = CloudendureSDK(userApiToken)

# Backup All Blueprints
client.export_all_bp_csv('backup.csv') 

r = client.update_machine_blueprint_csv(fileName='update.csv')
print(r)


````


---

<br>
messages 0.8.0
Easy and efficient messaging.
License: MIT
Requires Python: >=3.7,<4.0

# Messages: Create and send messages fast!
[![](https://img.shields.io/badge/built%20with-Python3-red.svg)](https://www.python.org/)
[![PyPI version](https://badge.fury.io/py/messages.svg)](https://badge.fury.io/py/messages)
[![](https://app.travis-ci.com/HomeMadePy/messages.svg?branch=master)](https://app.travis-ci.com/github/HomeMadePy/messages)
[![Coverage Status](https://coveralls.io/repos/github/HomeMadePy/messages/badge.svg?branch=master)](https://coveralls.io/github/HomeMadePy/messages?branch=master)
[![](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/HomeMadePy/messages/blob/master/LICENSE)

![messages_words](https://user-images.githubusercontent.com/18299151/48576493-c0a68380-e925-11e8-9322-eb5bd67858a4.png)

## Purpose
- **Messages** is a package designed to make sending messages easy and efficient!
- **Messages** intends to be a _lightweight_ package with minimal dependencies.
- **Messages** with a **consistent API** across all message types. 
- **Messages** includes **asynchronous** support for fast message handling.

## Installation
**Python3 only**
```shell
$ pip install messages
```

## Documentation in the [Wiki](https://github.com/HomeMadePy/messages/wiki)

## Supported Messages
* [Email](https://github.com/HomeMadePy/messages/wiki/Email)
* [Telegram](https://github.com/HomeMadePy/messages/wiki/TelegramBot)
* [Twilio](https://github.com/HomeMadePy/messages/wiki/Twilio)
* [WhatsApp](https://github.com/HomeMadePy/messages/wiki/WhatsApp)
* **Read the [Wiki](https://github.com/HomeMadePy/messages/wiki) for usage**.


# Examples
### Synchronous Execution
```python3
# You can send messages right in the REPL

>>> from messages import Email
>>> 
>>> m = Email(
            from_ = "me@here.com",
            to = "you@there.com",
            auth = "p@ssw0rd",   
            subject: "Good Advice"
            body = "Hello,\n\tBuy more Bitcoin!",
            attachments = ["./file1.txt", "~/Documents/file2.pdf"],
   )
>>>
>>> m.send()        
Message sent...
```

### Asynchronous Execution
```python3
# You can also send messages inside a script

import asyncio

from messages import Email

RECIPIENTS = [
    "you@mail.com",
    "him@mail.com",
    "her@mail.com",
    "doglover@mail.com",
]



loop = asyncio.get_event_loop()

for r in RECIPIENTS
    e = Email(
        from_ = "me@gmail.com",
        to = r,
        auth = "p@ssw0rd",
        subject = "Good Advice",
        body = "This is an asynchronous email.\nContinue buying more Bitcoin!",
        attachments = ["./file1.txt", "~/Documents/file2.pdf"],
    )
    
loop.create_task(e.send_async())
tasks = asyncio.all_tasks(loop=loop)
group = asyncio.gather(*tasks)
loop.run_until_complete(group)
```

### **Read** the [Wiki](https://github.com/HomeMadePy/messages/wiki) for **more examples**


## Contributing Code

* **Help Wanted!**
* All contributions are welcome to build upon the package!
* If it's a **message**, add it to messages!
* Read the [Wiki](https://github.com/HomeMadePy/messages/wiki) for guidelines.