Skip to main content

En/decoder for: leet, morse, roman

Project description

https://img.shields.io/travis/myyang/leetehao.svg

Features

  • Convert/inverse leet code
  • Convert/inverse morse code
  • Convert/inverse roman code

Examples

Morse

>>> from leetehao import morse
>>> morse.encode('hello world')
'.... . .-.. .-.. --- / .-- --- .-. .-.. -..'
>>> morse.encode('.... . .-.. .-.. --- / .-- --- .-. .-.. -..')
'HELLO WORLD'

Leet

>>> from leetehao import leet
>>> leet.encode('hello world')
'}{[-[_[_()  vv()[z[_|)'
>>> leet.encode('}{[-[_[_()  vv()[z[_|)')
'HELLO WORLD'

Roman numerals

>>> from leetehao import roman
>>> roman.encode(2549)
'MMDXLIX'
>>> roman.encode('MMDXLIX')
2549

License

  • Free software: BSD license

History

0.1.0 (2015-09-21)

  • Added Leet and Morse both function and class type
  • Added limited Roman function
  • Collect and made constants overwritable

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for leetehao, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size leetehao-0.1.1.tar.gz (12.9 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page