Skip to main content

一个示例Python包

Project description

Aditor

一个示例Python包,用于演示如何创建和发布Python包到PyPI。

功能特性

  • 🎉 简单的问候功能
  • 🧮 基础数学计算
  • 📦 易于安装和使用
  • 🐍 支持Python 3.7+

安装

从PyPI安装(推荐)

pip install aditor

从源码安装

git clone https://github.com/yourusername/aditor.git
cd aditor
pip install -e .

快速开始

from aditor import hello_world, calculate_sum

# 问候功能
print(hello_world("Python"))  # 输出: 你好, Python!

# 数学计算
result = calculate_sum(1.5, 2.5)
print(f"1.5 + 2.5 = {result}")  # 输出: 1.5 + 2.5 = 4.0

命令行使用

aditor --help

开发

设置开发环境

git clone https://github.com/yourusername/aditor.git
cd aditor
pip install -e ".[dev]"

运行测试

pytest

代码格式化

black aditor/

类型检查

mypy aditor/

贡献

欢迎贡献代码!请遵循以下步骤:

  1. Fork 这个仓库
  2. 创建您的特性分支 (git checkout -b feature/AmazingFeature)
  3. 提交您的更改 (git commit -m 'Add some AmazingFeature')
  4. 推送到分支 (git push origin feature/AmazingFeature)
  5. 打开一个 Pull Request

许可证

本项目使用 MIT 许可证 - 查看 LICENSE 文件了解详情。

作者

您的名字 - your.email@example.com

项目链接: https://github.com/yourusername/aditor

更新日志

0.1.0 (2024-01-01)

  • 初始版本发布
  • 添加基础问候功能
  • 添加数学计算功能

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

aditor-0.2.4-py3-none-any.whl (10.3 kB view details)

Uploaded Python 3

File details

Details for the file aditor-0.2.4-py3-none-any.whl.

File metadata

  • Download URL: aditor-0.2.4-py3-none-any.whl
  • Upload date:
  • Size: 10.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.10

File hashes

Hashes for aditor-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 d427d1fb26f967086d7559bae1015eaf3b3ae81d9bff272d015170a57d61a8db
MD5 e073e925078d8950f58501a0726d5956
BLAKE2b-256 26e1d32d0ea90939a0f5fef67b88754c77b336402f27d3ac27dc92117a038be7

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