Skip to content

project can convert any character set into binary encoding

License

Notifications You must be signed in to change notification settings

phil616/BaseAny

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BaseAny

A project to convert any characters and binary data to and from each other. like base64

be advised

due to the fuzzy logic, module basechinese is not recommended

Usage

from basechinese.encoder import encode
from basechinese.decoder import decode
print(encode(b"Hello, World!"))
hw = "妃邦右盏复迂罚找岔卫益"  # the result of encode(b"Hello, World!")
print(decode(hw))

Usage of BaseAny

from baseany.baseany import anyencode, anydecode

r = anyencode(b"Hello, World!", mode="CPN")
print(r)
print(anydecode(r))

LICENSE

Apache License 2.0

TODOs

  • Add more tests
  • form a package
  • add more docs
  • calculate compression ratio
  • host resources to other platforms

References

Bugs

  • baseany module can not parse ! chars when code page were chinese like bacl, more for src/baseany/bugs.py - NOT FIXED

About

project can convert any character set into binary encoding

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages