semvec/pypi-packages huggingface dataset:
dico-command 0.0.11
Command handler for dico.
Requires Python: >=3.7

# dico-command
Command handler for dico.  
**Note: Docs is still not ready.**

## Example

```py
import dico
import dico_command

bot = dico_command.Bot("YOUR_TOKEN_HERE", "!", intents=dico.Intents.full())


@bot.command("test")
async def test(ctx: dico_command.Context):
    await ctx.send("Hello, World!")


bot.run()
```

### Using Addon/module:

main.py:
```py
import dico
import dico_command

bot = dico_command.Bot("YOUR_TOKEN_HERE", "!", intents=dico.Intents.full())
bot.load_module("addons.test")
bot.run()
```

addons/test.py:
```py
import dico_command


class AddonTest(dico_command.Addon, name="Addon Test"):  # name=... is optional
    @dico_command.command(name="addon")
    async def example(self, ctx: dico_command.Context):
        await ctx.send(f"Hello! This is addon `{self.name}`.")


def load(bot):
    # Implementing function `load` is required. You may do any actions here.
    bot.load_addons(AddonTest)


def unload(bot):
    # Implementing function `unload` is required. You may do any actions here.
    bot.unload_addons(AddonTest)

```

Note that using async is forced unlike dico itself.
intelli-gateway 0.0.8
Python library for utilizing services offered on the Intelli Africa SMS/Email Gateway
Requires Python: >= 3.6

# Simple Stuff

### Usage
- import library
- create library instance using your email and password
- authenticate client
- make requests

> Unauthenticated requests will fail. Authentication does not need to be done everytime
> when one wants to make a request, it can be done once and works across all requests.

### Sample Code
```python
from intelli_gateway.gateway_client import GatewayClient

client = GatewayClient("email", "password")

# Authenticate Client
client.authenticate()

# Get Account Information
client.account_information()

# Send single sms
client.send_sms(message="Hi. How are you?", receiver="263XXXXXXXXX", sender_id="Tumai")

# Send bulk sms
client.send_bulk_sms(message="Hi. How are you?", receivers=["263XXXXXXXXX", "263XXXXXXXXX"], sender_id="Tumai")

# Send Email
client.send_email(body="Hi. How are you?", setting_id="UUID", receiver_email="email", subject="Greetings")

# Send Bulk Emails
client.send_bulk_email(body="Hi. Hello everyone. We are testing messaging!", setting_id="UUID", recipients=["me@gmail.com", "i@gmail.com"], subject="Testing Tumai")
```

### Process Flow

```mermaid
flowchart TD
    A[Use IntelliAfrica Solutions Gateway Python Client] --> B[Create Instance];
    B --> C[Authenticate Client];
    C --> D{Authenticated?};
    D -- Yes --> E[Process Request];
    D -- No --> F[Raise Exception]
```