basehangul

Human-readable binary encoding, BaseHangul for Python


License
Other
Install
pip install basehangul==1.1

Documentation

BaseHangul

PyPI Version Build Status

Human-readable binary encoding, BaseHangul for Python.

BaseHangul is an binary encoder using hangul. You can see the specification of it.

Installation

To install it just run pip as usual:

$ pip install basehangul

Usage

import basehangul

basehangul.encode('This is an encoded string')
# => '๋„ฅ๋ผ๋˜”๋จˆ๋Šด๋ฉฅ๊ฐฏ๋†“๊ถ‚๋—๋ฐธ๋ฎค๋‰ด๋—๋€„๊ตก๋œ๋ฉ‚๋˜‘๋šค'

basehangul.decode(u'๋„ฅ๋ผ๋˜”๋จˆ๋Šด๋ฉฅ๊ฐฏ๋†“๊ถ‚๋—๋ฐธ๋ฎค๋‰ด๋—๋€„๊ตก๋œ๋ฉ‚๋˜‘๋šค')
# => 'This is an encoded string'

Testing

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

Contributing

  1. Fork it (https://github.com/ssut/basehangul/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

License

Copyright ยฉ SuHun Han. See LICENSE.txt for further details.