Human-readable binary encoding, BaseHangul for Python.
BaseHangul is an binary encoder using hangul. You can see the specification of it.
To install it just run pip as usual:
$ pip install basehangul
import basehangul
basehangul.encode('This is an encoded string')
# => '넥라똔먈늴멥갯놓궂뗐밸뮤뉴뗐뀄굡덜멂똑뚤'
basehangul.decode(u'넥라똔먈늴멥갯놓궂뗐밸뮤뉴뗐뀄굡덜멂똑뚤')
# => 'This is an encoded string'
For running the tests, you need the standard unittest module, shipped with Python.
To run them, use either py.test, unittest or trial.
To run the tests:
$ nosetests
- Fork it (https://github.com/ssut/basehangul/fork)
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
Copyright © SuHun Han. See LICENSE.txt for further details.