base64u
Base64u - URL-Safe Base64 variant no padding. Based on https://gist.github.com/jonleighton/958841
Also main part code was from https://github.com/greymass/eosio-signing-request/blob/ffe7458abb48c4fcd998d7c6b142cdd4c7d46cda/src/base64u.ts
Installation
pip install base64u
Usage
import base64u
data = base64u.Uint8Array(10) # like bytearray
encoded = base64u.encode(data)
decoded = base64u.decode(encoded)
print(encoded)
print(decoded)
# data is Uint8Array for assert equality bytearray and List[int]
assert data == [0]*10
assert encoded == "AAAAAAAAAAAAAA"
assert decoded == data
Metadata
Release files for base64u 1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| base64u-1.0.tar.gz | 4.6 kB | Details |
Release files / base64u-1.0.tar.gz
| Download URL | base64u-1.0.tar.gz |
|---|---|
| Size | 4.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
30e87ae1edd52e670b977c161fc14ff207500574b56f66a470433e5ee81527bf
|
|
BLAKE2b-256 checksum How to use checksums |
c354c294d89933eaeeb7d99441fda0ae9f9a71f348eaff738bfa927ccffb16e3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.8.2
|