A simple example package using src layout (brainTest)
Project description
brain-test
一个使用 src 布局的示例包,包名为 brain_test,用于演示打包与发布到 PyPI 的最小结构。
安装
pip install brain-test
使用
from brain_test import greet
print(greet("World"))
或使用示例模块:
from brain_test.example import add
print(add(2, 3)) # 5
开发
- Python: 3.8+
- 构建工具: Hatchling
构建命令:
python -m build
发布命令:
python -m twine upload dist/*
许可证
本项目采用 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
charlietest-0.1.0.tar.gz
(2.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file charlietest-0.1.0.tar.gz.
File metadata
- Download URL: charlietest-0.1.0.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
59531ca6c7fc05f9b4f4d52634d5c50ef22c5188bf10f059ba58e3884bad8b28
|
|
| MD5 |
ecdf1064de3180f6e798277a508ebe0c
|
|
| BLAKE2b-256 |
7af7c0ba53d348c10c25eaa2143f6a77998772aefbc673332042a7c59fb61ae7
|
File details
Details for the file charlietest-0.1.0-py3-none-any.whl.
File metadata
- Download URL: charlietest-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
700cce71a8ebaf69ae90fd8fefce6d7b79e456bfd8850c4e4e71b9592f13bb11
|
|
| MD5 |
78438f949c2ab705fe8e49330369dad2
|
|
| BLAKE2b-256 |
114b73221db93b4ef230318aa759686c9b01a1909e385b886428d5d5e73adb40
|