Skip to main content

sdk369

一个最小化、零依赖的 Python 包,已发布到 PyPI。

  • 版本:0.0.1(Pre-Alpha)
  • 依赖:无
  • 支持:Python >= 3.9
pip install sdk369

名称说明:PyPI 会把 sdk369、sdk-369、SDK369、sdk_369 统统归一化成同一个项目名, 所以占住 sdk369 等于把这几种写法一起占了。

为什么不做纯空包?

PyPI 官方策略把「空包占名」列为无效项目:

Invalid projects … project is name squatting (package has no functionality or is empty) … 这类项目会被直接从索引中移除。 —— https://docs.pypi.org/project-management/name-retention/

所以这里的做法是:保持体积最小的同时让它是一个真实可用的包—— 能 import、有公开 API、有命令行入口、有测试,不落进 "no functionality or is empty" 的判定。

发布前先改这几处

  1. pyproject.toml 里的 description、authors,以及被注释掉的 [project.urls](填仓库地址)。
  2. LICENSE 里的版权主体。
  3. README.md 改成你项目真正的内容。

本地安装与使用

python -m pip install -e .
python -m sdk369          # 打印包信息(JSON)
python -m sdk369 --version
sdk369                    # console script

跑测试:

python -m pip install pytest
python -m pytest -q

发布新版本

python -m pip install --upgrade build twine
rm -rf dist build src/*.egg-info
# 先把 pyproject.toml 里的 version 改成 0.0.2 之类的新版本号
python -m build
python -m twine check dist/*
TWINE_USERNAME=__token__ TWINE_PASSWORD='pypi-你的token' python -m twine upload dist/*

PyPI 上的版本号只前进、不可复用,同一个版本号删除后也无法重传。

目录结构

sdk369/
├─ pyproject.toml          # 包元数据 + 构建配置
├─ README.md               # 本文件(即 PyPI 项目页正文)
├─ LICENSE                 # MIT
├─ .gitignore
├─ src/sdk369/
│  ├─ __init__.py          # 公开 API:__version__ / info()
│  ├─ __main__.py          # CLI 入口
│  └─ py.typed             # 声明带类型标注
└─ tests/test_smoke.py

License

MIT

Metadata

Release files for sdk369 0.0.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 sdk369 0.0.1
File Size Uploaded
sdk369-0.0.1.tar.gz 4.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sdk369 0.0.1
File Interpreter ABI Platform
sdk369-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 9.9 kB

Release files / sdk369-0.0.1.tar.gz

Download URL sdk369-0.0.1.tar.gz
Size 4.9 kB
Tags Source
SHA-256 checksum
How to use checksums
f0d579a7cb430354039f64d71773334e4bbb2d4ee0e24faa4b2ab07041742a14
BLAKE2b-256 checksum
How to use checksums
820cd22daaa3d6a21edd3ed5d5b31d0fbbe45cbd0215dc9353863392c939eac6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / sdk369-0.0.1-py3-none-any.whl

Download URL sdk369-0.0.1-py3-none-any.whl
Size 5.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7aceb7f200dc95369e94ca70bfd7330317b060a5bc72603a9276ff5fc59ff08e
BLAKE2b-256 checksum
How to use checksums
845d5080a244fb0da33bd517513d1d79e88e1714fa5bf3e937797b2176423032
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

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