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.1.0.tar.gz (5.6 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.1.0-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for aditor-0.1.0.tar.gz
Algorithm Hash digest
SHA256 6eae61a30035cff66f50eabf13cbccb5c7638f37f189b4723ed5e4a82a500ad3
MD5 d65848e028272f0cb1b3aa401826cea4
BLAKE2b-256 492c36ed41d5db04dcf4694d7cba1564a7f7162924d0a24d48c031280a060e24

See more details on using hashes here.

File details

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

File metadata

  • Download URL: aditor-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0bfba6872900bf41d9bbc6f6966a21f6fa09b81403e548d111323d722c75a9a7
MD5 45659e80c72d46300161b9965f1e3596
BLAKE2b-256 3a4c098849dedcec7d10919f54bc0a0a13f52810369031ab0dd9cdf781783aa6

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