semvec/pypi-packages huggingface dataset:
symspell-rust 0.3.0
Fast and Accurate SpellChecker
Keywords: Symspell Spellchecker rust python_bind PyO3

# symspell_rust
Rust python bindings for symspell

# Usage
pip install symspell_rust
## Quick examples using Python:

```python

>>> from symspell_rust import SymspellPy

>>> sym_spell = SymspellPy(max_distance=2, prefix_length=7, count_threshold=1)

>>> if not sym_spell.load_dictionary("./data/frequency_dictionary_en_82_765.txt",0,1," "):
      print("File Not Found")

>>> suggestions = sym_spell.lookup_compound("whereis th elove hehad dated forImuch of thepast who couqdn'tread in sixtgrade and ins pired him",2)

>>> for cand in suggestions:
      print(f"Term->{cand.term} \n Distance->{cand.distance} \n Count->{cand.count}")

>>> segment_obj = sym_spell.word_segmentation("whereisthelove",2)

>>> print(f"String->{segment_obj.segmented_string} \n Distance->{segment_obj.distance_sum} \n Prob_Log_Sum->{segment_obj.prob_log_sum}")
```
flask-midtrans 0.0.1a0
flask_midtrans is a package for integrate midtrans to flask framework
Requires Python: >=3.6

## Flask Midtrans


### How to use:
```python
from flask_midtrans import Midtrans
from flask import Flask

# set environments
app = Flask(__name__)
app.config['MIDTRANS_IS_PRODUCTION'] = False
app.config['MIDTRANS_SERVER_KEY'] = 'SB-Mid-server-fRTQ4YyV5mVXB'
app.config['MIDTRANS_CLIENT_KEY'] = 'SB-Mid-client-hdv0voYgqK'

# instance
midtrans = Midtrans(app)

@app.route('/')
def hello_world():
    param = {
        "transaction_details": {
            "order_id": "test-transaction-123",
            "gross_amount": 200000
        }, "credit_card": {
            "secure": True
        }
    }

    # midtrans.snap or midtrans.core
    # https://github.com/Midtrans/midtrans-python-client
    response = midtrans.snap.create_transaction(param)
    
    # >> response
    #  {'token': 'thistoken', 'redirect_url': 'http://midtrans..'}
    return response['token']
```


### Contributes:
- agung96tm ( [github](https://github.com/agung96tm) | [website](https://agung96tm.com/) )