Skip to main content

py3base92

一个python3实现的base92编码python库
A python library to create base92 encoded strings in python3.

正式版本的版本号开始于1.1.0,至于为什么从1.1.0开始,考虑到python2的实现版本为1.0.3,并且已停更,然后之前又发布了一个临时py3的版本1.0.3-1,想区别于py2的版本号又不想从0版本开始,就即兴定下了第一个版本号为1.1.0

Readme_EN

历史版本时间线

版本: 1.0.3-1
更新到python3之后发现base92模块不能用了,看到原作者thenoviceoof的base92的包最后更新也是7年前了,因此在其基础代码上做base92 python3的兼容版本 包作为临时使用,并未准备用做项目,所以未发到PyPi ,同时构建的setup也未做详细描述和介绍。
pypi中搜索了下,我没有发布,但是发现其他人把这个版本发布上去了,python3base92 1.0.3.post1
!!!注意: 该版本(pypi上的这个版本)不受该仓库维护和管理,可能存在潜在安全问题及Bug,为防止误导,不再提供该版本使用说明

版本: 1.1.0
第一个正式发布到PyPi的版本,后续仅在该版本基础上更新。

该版本已完善支持bytes,并修复了上个版本中遗留的一些bug

移除冗余方法:
encode()
base92_encode()
decode()
base92_decode()

版本: 1.1.1

一些优化

用法

安装
pip install py3-base92
或
$ENV:PYTHONPATH='src';python .\src\setup.py install(Windows Powershell)
PYTHONPATH=src python .\src\setup.py install(Linux)

import py3base92

print(py3base92.b92encode("你好".encode()))
# sIb@Vyq8
print(py3base92.b92decode("sIb@Vyq8").decode())
# 你好
print(py3base92.b92encode("hello world".encode()))
# Fc_$aOTdKnsM*k
print(py3base92.b92decode("Fc_$aOTdKnsM*k").decode())
# hello world

测试用例

Windows Powershell
$ENV:PYTHONPATH='src';python .\tests\test_base92.py
Linux
PYTHONPATH=src python .\tests\test_base92.py

文档

文档(Document)

Metadata

Release files for py3-base92 1.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for py3-base92 1.1.1
File Size Uploaded Provenance Actions
py3-base92-1.1.1.tar.gz 4.9 kB Without provenance Details for py3-base92-1.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for py3-base92 1.1.1
File Interpreter ABI Platform Actions
py3_base92-1.1.1-py3-none-any.whl Python 3 none any Details for py3_base92-1.1.1-py3-none-any.whl

Total release size: 9.9 kB

Release files / py3-base92-1.1.1.tar.gz

Download URL py3-base92-1.1.1.tar.gz
Size 4.9 kB
Tags Source
SHA-256 checksum
How to use checksums
e80cfe62862f0fd8a53a14cabae80d67d252548b7bab4302ed85ee9e6a6bda5a
BLAKE2b-256 checksum
How to use checksums
fcb726bc200f9081e7ccb8352a24881df1a00d24b595312a2c06509d13063245
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.18

Release files / py3_base92-1.1.1-py3-none-any.whl

Download URL py3_base92-1.1.1-py3-none-any.whl
Size 5.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b5606c2ea9c88e448d60c0602b7cf7947bd31df76f026add29738d14fe847c19
BLAKE2b-256 checksum
How to use checksums
faada647ccee933101b2788ea87d96426466f2c1ee4b6b9c3113c9e22722eb5f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.18

Security for py3-base92 1.1.1

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.

Release history Release notifications | RSS feed

This release

1.1.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page