Metadata-Version: 2.1
Name: convertbase
Version: 0.1.2
Summary: Convert between bases, initailly intended for RFC4648 base32
Home-page: https://github.com/johan-lahti/convertbase
Author: Johan Lahti
Author-email: ccie60702@gmail.com
License: UNKNOWN
Description: Universal base converter
        
        Use either with predefined converters:
         - integer to base32(RFC4648)
         - integer to hex
         - base32(RFC4648) to integer
        
        Or use with custom settings:
        - set base
        - set charset
        
        Examples:
        
            if __name__ == "__main__":
                # example:
                num = 15851
        
                # using instance of converter, using custom settings
                converter = Convertbase()
                converter.set_base(32)
                converter.set_charset('ABCDEFGHIJKLMNOPQRSTUVWXYZ234567')
        
                print(converter.convert(num))
        
                # or using static methods:
                print(Convertbase.to_b32(num))
        
                # hex, compare to built-in
                print(Convertbase.to_hex(num))
                print(hex(num))
        
                #convert back:
                print(Convertbase.from_b32_to_dec('PPL'))
        
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.8
Description-Content-Type: text/markdown
