semvec/pypi-packages huggingface dataset:
mpesa-sdk 1.0.7
Mpesa API SDK
License: MIT

**MPESA REST SDK**

[![Language](https://img.shields.io/badge/language-python-green.svg)](https://github.com/sartim/mpesa-sdk)
![Build Status](https://github.com/sartim/mpesa-sdk/workflows/Publish%20Python%20Mpesa%20SDK%20distribution%20to%20PyPI/badge.svg)

Pure python sdk for [MPESA API](https://developer.safaricom.co.ke/docs#authentication).


**Features**

* Generate Token
* C2B Register Url
* C2B Simulate Transaction
* C2B Simulate Transaction
* B2B Payment Request
* B2C Payment Request
* Transaction Status
* Account Balance
* Reversal Request

***Installation***

    $ pip install mpesa-sdk

***Running tests***

Create .env file from [example](https://github.com/sartim/mpesa-sdk/blob/master/.env.example) then run
    
    $ pip install pytest
    $ pytest
 
To test for different python environments use
    
    $ pip install tox
    $ tox
 
Read more on [wiki](https://github.com/sartim/mpesa-sdk/wiki).
wch 0.4.0
Runs the provided command on detected file changes.
License: MIT
Requires Python: >=3.6,<4.0

# wch

[![Build Status](https://travis-ci.org/Peter554/wch.svg?branch=master)](https://travis-ci.org/Peter554/wch)

```
pip install wch
```

```
wch --help
```

```
Usage: wch [OPTIONS] COMMAND

  Runs the provided command on detected file changes.

  example: wch -d src -d tests -i docs "black --check ."

Arguments:
  COMMAND  [required]

Options:
  -d, --directory TEXT  [default: .]
  -i, --ignore TEXT     [default: ]
  --help                Show this message and exit.
```
Tweetl 0.0.7
A package to do everything from getting tweets to pre-processing
License: MIT
Keywords: natural language processing,twitter,cleansing

# Tweetl
By using Tweetl, you can simplify the steps from getting tweets to pre-processing them.
If you don't have twitter API key, you can get it [here](https://developer.twitter.com/en).

This package help you to ・・・
+ get tweets with the target name and any keywords.
+ pre-processes the following list.
  + remove hashtags, URLs, pictographs, mentions, image strings and RT.
  + unify characters (uppercase to lowercase, halfwidth forms to fullwidth forms).
  + replace number to zero.
  + remove duplicates (because they might be RT.)

## Installation
```
pip install Tweetl
```
## Usage
### Getting Tweets
Create an instance of the 'GetTweet' Class.
```
import Tweetl

# your api keys
consumer_api_key = "xxxxxxxxx"
consumer_api_secret_key = "xxxxxxxxx"
access_token = "xxxxxxxxx"
access_token_secret = "xxxxxxxxx"

# create an instance
tweet_getter = Tweetl.GetTweet(
                    consumer_api_key,
                    consumer_api_secret_key, 
                    access_token, 
                    access_token_secret
                )
```
#### With target name
You can collect tweets of the target if you use 'get_tweets_target' method and set the target's name not inclueded '@'. Then it returns collected tweets as DataFrame type. And you can specify the number of tweets.
```
# get 1000 tweets of @Deepblue_ts
df_target = tweet_getter.get_tweets_target("Deepblue_ts", 1000)
df_target.head()
```
<img width="939" alt="スクリーンショット 2020-05-22 14 33 39" src="https://user-images.githubusercontent.com/37981348/82634800-b27fa480-9c39-11ea-9420-8952717823fb.png">

#### With any keywords
You can also get tweets about any keywords if you use 'get_tweets_keyword' method and set any one. And you can specify the number of tweets.
```
# get 1000 tweets about 'deep learning'
df_keyword = tweet_getter.get_tweets_keyword("deep learning", 1000)
```

### Cleansing Tweets
Create an instance of the 'CleansingTweets' Class. And using 'cleansing_df' method, you can pre-processing tweets. You can select columns that you want to cleanse. The default is only text-colmn.

```
# create an instance
tweet_cleanser = Tweetl.CleansingTweets()
cols = ["text", "user_description"]
df_clean = tweet_cleanser.cleansing_df(df_keyword, subset_cols=cols)
```

## Author
[deepblue](https://deepblue-ts.co.jp/)

## License
This software is released under the MIT License, see [LICENSE](https://github.com/deepblue-ts/Tweetl/blob/master/LICENSE).