Base 69
Base 69 becuse cool kids only count in funny internet numbers
Functions:
All base 69s will start with 69*|
encode_base69 Will return a string in base 69
decode_base69 Will return a int
Support
If this made you laugh and you want to get me a cup of tea: https://www.buymeacoffee.com/Michaelrbparker
Examples:
Encoding:
import base69
result = base69.encode_base69(74)
print(result) # "69*|14"
Decoding:
import base69
result = base69.decode_base69("69*|Df")
print(result) # 951
Error:
# Providing invalid input will raise an exception
import base69
result = base69.decode_base69("6*| wm") # Traceback (most recent call last): ... InvalidInput: Invalid Base69 input! Base69 must begin '69*|'
# If you want you can catch this error
import base69
try:
result = base69.decode_base69("6*| wm")
except base69.InvalidInput:
print("not cool man, thats just not valid")
Conversion Table:
0:'0',1:'1',2:'2',3:'3',4:'4',5:'5',6:'6',7:'7',8:'8',9:'9',10:'A',11:'B',12:'C',13:'D',14:'E',15:'F',16:'G',17:'H',18:'I',19:'J',20:'K',21:'L',22:'M',23:'N',24:'O',25:'P',26:'Q',27:'R',28:'S',29:'T',30:'U',31:'V',32:'W',33:'X',34:'Y',35:'Z',36:'a',37:'b',38:'c',39:'d',40:'e',41:'f',42:'g',43:'h',44:'i',45:'j',46:'k',47:'l',48:'m',49:'n',50:'o',51:'p',52:'q',53:'r',54:'s',55:'t',56:'u',57:'v',58:'w',59:'x',60:'y',61:'z',62:'+',63:'/',64:'=',65:'@',66:'*',67:'-',68:'!'
| Number | Value |
|---|---|
| 0 | 0 |
| 1 | 1 |
| 2 | 2 |
| 3 | 3 |
| 4 | 4 |
| 5 | 5 |
| 6 | 6 |
| 7 | 7 |
| 8 | 8 |
| 9 | 9 |
| 10 | A |
| 11 | B |
| 12 | C |
| 13 | D |
| 14 | E |
| 15 | F |
| 16 | G |
| 17 | H |
| 18 | I |
| 19 | J |
| 20 | K |
| 21 | L |
| 22 | M |
| 23 | N |
| 24 | O |
| 25 | P |
| 26 | Q |
| 27 | R |
| 28 | S |
| 29 | T |
| 30 | U |
| 31 | V |
| 32 | W |
| 33 | X |
| 34 | Y |
| 35 | Z |
| 36 | a |
| 37 | b |
| 38 | c |
| 39 | d |
| 40 | e |
| 41 | f |
| 42 | g |
| 43 | h |
| 44 | i |
| 45 | j |
| 46 | k |
| 47 | l |
| 48 | m |
| 49 | n |
| 50 | o |
| 51 | p |
| 52 | q |
| 53 | r |
| 54 | s |
| 55 | t |
| 56 | u |
| 57 | v |
| 58 | w |
| 59 | x |
| 60 | y |
| 61 | z |
| 62 | + |
| 63 | / |
| 64 | = |
| 65 | @ |
| 66 | * |
| 67 | - |
| 68 | ! |
Metadata
Release files for Base-69 0.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| Base_69-0.2.2-py3-none-any.whl | Python 3 | none | any | Details |
Release files / Base_69-0.2.2-py3-none-any.whl
| Download URL | Base_69-0.2.2-py3-none-any.whl |
|---|---|
| Size | 3.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a257889bbce8162bee2ea349f5bcc1d02f28980b66d365906c03ac44fa920d8f
|
|
BLAKE2b-256 checksum How to use checksums |
64369aa3ca080c7d9387b27f848d15f872e4c3689b262c29d700253989888921
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.5
|
Security for Base-69 0.2.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.