semvec/pypi-packages huggingface dataset:
twexit 6.43.0b1
Telnyx Twexit API client
Keywords: telnyx,twexit,texml,twilio,twiml

# Telnyx "Twexit" Python Library

The Telnyx "Twexit" Python library allows users to send messages and validate webhooks with minimal changes to their existing Twilio messaging code.

## Installation

This SDK can be installed either via `pip`:

```
pip install twexit
```

or direct from source by downloading and unzipping the repository from here, then from within the `twexit-python` folder, run
```
python setup.py install
```


## Account Setup

1. Complete the [Portal Setup](https://developers.telnyx.com/docs/v2/messaging/quickstarts/portal-setup) to set up a messaging-enabled number.

1. Follow the additional [Twexit setup steps](https://developers.telnyx.com/docs/v2/messaging/twexit) to configure webhooks

## Usage

### Send a message

```py
from twilio.rest import Client

# Your organization ID from
account_sid = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
# An API key from https://portal.telnyx.com/#/app/api-keys
auth_token = "KEY0123456789xxxxx"

message = client.messages.create(
    to="+13125550123",
    from_="+16165550123",
    body="Free yourself with Twexit!"
)

print(message.sid)
```

## Webhook Validation

Twexit uses a fast asymmetric signing algorithm, Ed25519, to avoid issues discovered with SHA-1. To switch from the HMAC-SHA1 signing method, follow these steps:

1. Obtain your account's public key at https://portal.telnyx.com/#/app/account/public-key

1. Update your application to use the `TwexitRequestValidator` instead of `RequestValidator`

1. Extract the `X-Twexit-Signature` from the request and provide that when calling the validator.

```py
from twilio.request_validator import TwexitRequestValidator

public_key = "abcdef123456xxxxx"

validator = TwexitRequestValidator(public_key)

url = 'https://mycompany.com/myapp.php?foo=1&bar=2'
params = {
    "MessageSid": "CA1234567890ABCDE",
    "ApiVersion": "2010-04-01",
    "Body": "Aloha!",
    "From": "+13125550123",
    "To": "+16165550123",
}

# The X-Twexit-Signature header attached to the request
twexit_signature = '0/KCTR6DLpKmkAf8muzZqo1nDgQ='

print(validator.validate(url, params, twexit_signature))
```

## Caveats

This SDK currently only provides the capability to send messages via REST and validate webhooks when receiving messages. Configuration of the messaging product and other products (voice, fax) are not yet supported.
bysh 0.0.4
The unstable bash
Requires Python: >=3.7

# Bysh

![tests](https://github.com/Haytek/bysh/workflows/tests/badge.svg)
![Upload Python Package](https://github.com/Haytek/bysh/workflows/Upload%20Python%20Package/badge.svg)

Bash interpreter in Python

Continuation of <https://github.com/idank/bashlex>. The bashlex files may have been modified.

## Installation

```shell
py -3 -m venv venv && venv/scripts/activate.bat
pip install bysh
bysh
```

## External libraries

Embedded in bysh.lib:
- [bashlex](https://github.com/idank/bashlex)
- [colorama](https://github.com/tartley/colorama)


## Notes

### alpha

For now the builtins and commands does not try to mimic the exact posix/bash behavior.
The goal is to have a working core, and then correct details.

### tkt

|| & && ; ;; ( ) | \n

- Simple Command
    - Noms separes par des espaces (+redirections) + control operator
- Pipeline
    - Simple commands séparées par des pipes
- List
    - pipelines séparées par des control operators
- Compound Commands
    - list mais avec des infos en plus
        - {} -> execute dans current shell
        - () -> execute subshell
        - (()) -> arithmetic
        - [[ ]] -> tests
- Shell functions
    - fonctions

### stdin

Plus tard il faudra  
msvcrt.getche() in (b'\x00', b'\xe0'):  
<https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/getch-getwch?view=vs-2019>

## TODO

Separate builtins from commands like $?
mktheapidocs 0.2.0.post0.dev12
Generate markdown API documentation from Numpydoc docstrings.

MIT License

Copyright (c) 2018 Jonathan Gray

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Description: UNKNOWN
Keywords: mkdocs documentation markdown
Platform: MacOS X
Platform: Linux
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: MIT
Classifier: Programming Language :: Python :: 3.6
Classifier: Natural Language :: English
Classifier: Operating System :: MacOS :: MacOS X
Classifier: Operating System :: POSIX
Classifier: Operating System :: POSIX :: Linux
Provides-Extra: plugin