sms-counter-python/README.md

34 lines
864 B
Markdown
Raw Normal View History

2016-07-10 20:06:42 +00:00
# sms-counter-python
----
2016-07-10 20:06:42 +00:00
**sms-counter-python** is a lib that help to count characters of SMS messages.
2016-07-10 20:06:42 +00:00
#### Get it now
```
$ pip install git+https://github.com/dedayoa/sms-counter-python.git#egg=sms_counter
```
#### Support
* Python 2
* Python 3
2016-07-10 20:12:52 +00:00
#### Requirements
sms-counter-python has no external dependencies outside of the Python standard library
#### Usage
2016-07-10 20:12:52 +00:00
```python
from sms_counter import SMSCounter
>>> counter = SMSCounter.count('ǂ some-string-to-be-counted ');
>>> counter
>>> {'length': 29, 'messages': 1, 'remaining': 41, 'per_message': 70, 'encoding': 'UTF16'}
2016-07-10 20:12:52 +00:00
```
2016-07-10 20:06:42 +00:00
#### Mentions
2016-07-10 20:06:42 +00:00
* Original idea : [danxexe/sms-counter](https://github.com/danxexe/sms-counter)
* Next Original : [wobblecode/sms-counter-php](https://github.com/wobblecode/sms-counter-php/)
#### License
MIT licensed. See the bundled [LICENSE](LICENSE) file for more details.