Skip to main content

简单的1+1计算包

Project description

SecretPkg555

简单的计算包,核心逻辑已编译为二进制保护源码。

安装

pip install secretpkg555

API文档

secret_algorithm(data)

给数字加1

参数:

  • data (int | float): 输入的数字

返回:

  • int | float: data + 1

示例:

from secretpkg555 import secret_algorithm

result = secret_algorithm(5)
print(result)  # 6

complex_calculation(x, y)

简单加法

参数:

  • x (int | float): 第一个数字
  • y (int | float): 第二个数字

返回:

  • int | float: x + y

示例:

from secretpkg555 import complex_calculation

result = complex_calculation(10, 20)
print(result)  # 30

advanced_algorithm(data)

高级算法:data * 2 + 1

参数:

  • data (int | float): 输入数据

返回:

  • int | float: 计算结果

示例:

from secretpkg555 import advanced_algorithm

result = advanced_algorithm(5)
print(result)  # 11

secret_process(x, y)

秘密处理:(x + y) * 3

参数:

  • x (int | float): 第一个数字
  • y (int | float): 第二个数字

返回:

  • int | float: 处理结果

示例:

from secretpkg555 import secret_process

result = secret_process(10, 20)
print(result)  # 90

encrypt(data)

简单加密

参数:

  • data (int): 要加密的数据

返回:

  • int: 加密后的数据

示例:

from secretpkg555 import encrypt

encrypted = encrypt(42)
print(encrypted)  # 142

decrypt(data)

简单解密

参数:

  • data (int): 要解密的数据

返回:

  • int: 解密后的数据

示例:

from secretpkg555 import decrypt

decrypted = decrypt(142)
print(decrypted)  # 42

完整示例

from secretpkg555 import (
    secret_algorithm,
    complex_calculation,
    advanced_algorithm,
    secret_process,
    encrypt,
    decrypt,
)

# 基础算法
print(secret_algorithm(5))  # 6

# 复杂计算
print(complex_calculation(10, 20))  # 30

# 高级算法
print(advanced_algorithm(5))  # 11

# 秘密处理
print(secret_process(10, 20))  # 90

# 加密解密
data = 42
encrypted = encrypt(data)
decrypted = decrypt(encrypted)
print(f"{data} -> {encrypted} -> {decrypted}")

特性

  • ✅ 简单易用的API
  • ✅ 核心逻辑二进制保护
  • ✅ 完整的文档字符串
  • ✅ 类型提示支持

许可证

MIT License

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

secretpkg555-0.1.2.tar.gz (115.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

secretpkg555-0.1.2-py3-none-any.whl (115.3 kB view details)

Uploaded Python 3

File details

Details for the file secretpkg555-0.1.2.tar.gz.

File metadata

  • Download URL: secretpkg555-0.1.2.tar.gz
  • Upload date:
  • Size: 115.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.0

File hashes

Hashes for secretpkg555-0.1.2.tar.gz
Algorithm Hash digest
SHA256 8a307655d6c257b597f24be3b0de7b781ff42fdf460c6b2c3eecb9e9eef56cd1
MD5 83906d316b32300003d59d8a0264e845
BLAKE2b-256 d6cf2e2e81d589abff355bbae7a1eef9b64fd02f8ac0f1400504824525cd89e3

See more details on using hashes here.

File details

Details for the file secretpkg555-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: secretpkg555-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 115.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.0

File hashes

Hashes for secretpkg555-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e6ade69597b3d3697cc1dd27bb791365097e9aa38844bcc6fe3610885480d666
MD5 a42bcc2a289ee86d938a409024d13f95
BLAKE2b-256 5f6bb6e1b08ea03cd17d2fedb826b0a053d02bd0759d5986f2fcb9cda4d93446

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page