semvec/pypi-packages huggingface dataset:
bmg-sms-gateway 0.0.9
A package to assist with bmg sms gateway integrations in python
License: MIT
Keywords: zimbabwe,sms in Zimbabwe,bulk messages zimbabwe,sms gateway for Zim numbers

# BMG SMS GATEWAY
[![image](https://img.shields.io/pypi/v/country_list.svg)](https://github.com/RONALD55/BMG-SMS-GATEWAY)
[![image](https://img.shields.io/badge/code%20style-black-000000.svg)](https://pypi.org/project/bmg-sms-gateway)
-   This package can be used to integrate python programs or scripts
    with the BMG SMS gateway provided  [eSolutions Zimbabwe](http://www.esolutions.co.zw/)



Installation
============

To can install the bmg_sms_gateway package open shell or terminal and run:

    pip install bmg-sms-gateway

Usage
=====

Send Single SMS :

To send a single message use the function below. It will return response
code 200 if the message has been sent. The function accepts three
parameters which are username,password and body. The body is a
dictionary and it should contain all the keys and shown on the example
below.

```python
from bmg_sms_gateway import send_single_sms

username = 'username'
password = 'password'

#Message body
body = {
    "originator": "Originator",
    "destination": "Destination Mobile #",
    "messageText": "Message to be sent",
    "messageReference": "Your unique message identifier",
    "messageDate": "Message date",
    "messageValidity": "Message Validity",
    "sendDateTime": "Send Datetime"
}
print(send_single_sms(username,password,body))
```
For more information regarding usage of this package visit the package [homepage](https://github.com/RONALD55/BMG-SMS-GATEWAY) :

License
=======

The project is licensed under the MIT license.


Change Log
========================

0.0.9(12-February-2022)
viperdb 1.0.0
A tiny log-structured key-value database written in pure Python
License: MIT

# ViperDB

[![codecov](https://codecov.io/gh/ostafen/viperdb/branch/main/graph/badge.svg?token=CXZTXRQ9YS)](https://codecov.io/gh/ostafen/viperdb)

ViperDB is a lightweight embedded key-value store written in pure Python. 
It has been designed for being extremely simple while efficient.

### Features

- **tiny**: the main db file consists of just ~300 lines of code.
- **highly coverage**: thanks to the small codebase, every single line of code is tested.
- **log-structured**: ViperDB takes design concepts by log-structured databases such as [Bitcask](https://docs.riak.com/riak/kv/2.2.3/setup/planning/backend/bitcask/index.html).
- **written in pure Python**: no external dependency needed.

### Database layout

ViperDB simply consists of two files: a **key log file** and a **value log file**.
The first is used to maintain information about values (e.g. offset, size, etc...) which are actually stored in the value log.
This layout allows to speed-up db initialization, which consists in loading the pointers to the entire key-space from the key-file to a dictionary. 
For simplicity, the key file is treated as a text file, with each line containing a json-encoded entry.
The value file is viewed as a raw sequence of bytes. Before being written to the value file, each value is encoded according to the following scheme:
builtin types (except for the **bytes** type) are json-encoded, while user-defined classes are pickled.

To keep logic simple, no automatic compaction is performed in the background: unused space must be reclaimed explicitly through the **reclaim** function.

### API usage
```python
from viperdb import ViperDB

db = ViperDB('./db')
# db can be used as a simple dictionary
db['hello'] = 'ViperDB!'
assert db['hello'] == 'ViperDB'

del db['hello']
assert 'hello' not in db

db.reclaim() # call this method periodically to free unused space.
db.close() # flush any pending write and close the database.
```

### Contribute

ViperDB is a very recent project and, as such, it comes with no warranty.
If you find any bug, or have some suggestion, feel free to contribute by opening a new issue or making a pull request.