En/decoder for: leet, morse, roman
Project description
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
leetehao-0.1.1.tar.gz
(12.9 kB
view details)
File details
Details for the file leetehao-0.1.1.tar.gz.
File metadata
- Download URL: leetehao-0.1.1.tar.gz
- Upload date:
- Size: 12.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
64f622e835784f4fec7c51daf855c8c2a62ce4afd50a8ede04d3aa766a39511e
|
|
| MD5 |
468664fd394ea80a7a27e3b3416352a6
|
|
| BLAKE2b-256 |
75d066fb5be7b2ffb65c3a018f042e0378a56d95a21bc620f31767a5dbbe5be2
|