# calculate-lib
A simple library to perform basic arithmetic operations: addition, subtraction, multiplication, and division.
## Installation
pip install calculate-lib
## Usage
```python
from calculate_lib import add, subtract, multiply, divide
print(add(3, 5)) # 8
print(subtract(10, 5)) # 5
print(multiply(4, 5)) # 20
print(divide(10, 2)) # 5.0
### 6. Tạo file setup.py
File nà y sẽ chứa thông tin để đóng gói và phát hà nh thư viện:
```python
# setup.py
Raw data
{
"_id": null,
"home_page": "https://github.com/yourusername/calculate-lib",
"name": "calculate-lib",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.6",
"maintainer_email": null,
"keywords": null,
"author": "Your Name",
"author_email": "your.email@example.com",
"download_url": "https://files.pythonhosted.org/packages/3c/86/d8371b13e24cfb42c0adb25b0fe9e60e5dc6698f7211a8b3c6bd274f81e2/calculate-lib-0.1.tar.gz",
"platform": null,
"description": "# calculate-lib\r\n\r\nA simple library to perform basic arithmetic operations: addition, subtraction, multiplication, and division.\r\n\r\n## Installation\r\n\r\npip install calculate-lib\r\n\r\n\r\n## Usage\r\n\r\n```python\r\nfrom calculate_lib import add, subtract, multiply, divide\r\n\r\nprint(add(3, 5)) # 8\r\nprint(subtract(10, 5)) # 5\r\nprint(multiply(4, 5)) # 20\r\nprint(divide(10, 2)) # 5.0\r\n\r\n\r\n### 6. T\u00e1\u00ba\u00a1o file setup.py\r\nFile n\u00c3\u00a0y s\u00e1\u00ba\u00bd ch\u00e1\u00bb\u00a9a th\u00c3\u00b4ng tin \u00c4\u2018\u00e1\u00bb\u0192 \u00c4\u2018\u00c3\u00b3ng g\u00c3\u00b3i v\u00c3\u00a0 ph\u00c3\u00a1t h\u00c3\u00a0nh th\u00c6\u00b0 vi\u00e1\u00bb\u2021n:\r\n\r\n```python\r\n# setup.py\r\n",
"bugtrack_url": null,
"license": null,
"summary": "A simple library for basic arithmetic operations",
"version": "0.1",
"project_urls": {
"Homepage": "https://github.com/yourusername/calculate-lib"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "42d079281c0c57f4a9e67eaec2a786225973f7088cd057b3b1698f80bee9eda2",
"md5": "33b08b771e8f0c5df0536b4f95ede797",
"sha256": "4737bc1dca807670db1c4add67a6f0f2841ad5ee9fff2a66d9ad32aba6827c1f"
},
"downloads": -1,
"filename": "calculate_lib-0.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "33b08b771e8f0c5df0536b4f95ede797",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.6",
"size": 2039,
"upload_time": "2024-06-26T10:30:36",
"upload_time_iso_8601": "2024-06-26T10:30:36.958410Z",
"url": "https://files.pythonhosted.org/packages/42/d0/79281c0c57f4a9e67eaec2a786225973f7088cd057b3b1698f80bee9eda2/calculate_lib-0.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "3c86d8371b13e24cfb42c0adb25b0fe9e60e5dc6698f7211a8b3c6bd274f81e2",
"md5": "f9398959386e838a306936f1537b498d",
"sha256": "6c4e29032e75febe97e1116858a0ec05ace53c2ab3c8853ef074013c4c6d0380"
},
"downloads": -1,
"filename": "calculate-lib-0.1.tar.gz",
"has_sig": false,
"md5_digest": "f9398959386e838a306936f1537b498d",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.6",
"size": 1771,
"upload_time": "2024-06-26T10:30:39",
"upload_time_iso_8601": "2024-06-26T10:30:39.187090Z",
"url": "https://files.pythonhosted.org/packages/3c/86/d8371b13e24cfb42c0adb25b0fe9e60e5dc6698f7211a8b3c6bd274f81e2/calculate-lib-0.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-06-26 10:30:39",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "yourusername",
"github_project": "calculate-lib",
"github_not_found": true,
"lcname": "calculate-lib"
}