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.5-py3-none-any.whl (10.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: aditor-0.2.5-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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 a6bd4842e11df1b4eb3f9e1606c3b1a050fb052e913be3285f0db23b2cacab36
MD5 d4f7600ff0f4ef60db6eec2e5c57c6b4
BLAKE2b-256 7786ce88f6fbbf8f30bdbd3bb395f50424aaf7e27814e6ea98d96eeaec6f7791

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