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 Distribution

aditor-0.2.1.tar.gz (12.3 kB view details)

Uploaded Source

Built Distribution

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

aditor-0.2.1-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

Details for the file aditor-0.2.1.tar.gz.

File metadata

  • Download URL: aditor-0.2.1.tar.gz
  • Upload date:
  • Size: 12.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.10

File hashes

Hashes for aditor-0.2.1.tar.gz
Algorithm Hash digest
SHA256 7e6e9f6fc9adf3760049ed43f933f4382abe2f8447c419690d82a2240284a717
MD5 eacdcfc2ef15d6adacf6270274142481
BLAKE2b-256 d754345ea5daba1cf5145aa3f569f0d2b604799431cafe13d2554c59eb7ced7c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: aditor-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 10.4 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6b75cc893fceb662255d8312fc7d3042573c8f5d5acc7c8ed47a0ac3f238b363
MD5 c75a7f14441b102de505b245bfbc4644
BLAKE2b-256 6d05ae6f658ae1ac35f499a83a64b1c6790286a2b108e13963f2038d261d0b61

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