# Geometry Shapes
A simple Python package to work with basic geometric shapes. Calculate the area and perimeter (or circumference) of circles, rectangles, and right-angled triangles.
## Installation
You can install `geometry_shapes` via pip:
```bash
pip install geometry_shapes
```
```bash
from geometry_shapes import circle_area, circumference
radius = 5
print(circle_area(radius)) # prints the area of the circle
print(circumference(radius)) # prints the circumference of the circle
```
```bash
from geometry_shapes import rectangle_area, rectangle_perimeter
length = 4
width = 6
print(rectangle_area(length, width)) # prints the area of the rectangle
print(rectangle_perimeter(length, width)) # prints the perimeter of the rectangle
```
```bash
from geometry_shapes import triangle_area, triangle_perimeter
base = 3
height = 4
print(triangle_area(base, height)) # prints the area of the triangle
print(triangle_perimeter(base, height)) # prints the perimeter of the triangle
```
Raw data
{
"_id": null,
"home_page": "https://github.com/upretisaurav7/geometry_shapes",
"name": "geometry-shapes",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "geometry shapes",
"author": "Saurav Upreti",
"author_email": "upretisaurav7@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/44/49/c705c369b2afef932d9522b02fbe22767ea5fbb31eaa64a0d44144f6b8db/geometry_shapes-0.1.tar.gz",
"platform": null,
"description": "# Geometry Shapes\n\nA simple Python package to work with basic geometric shapes. Calculate the area and perimeter (or circumference) of circles, rectangles, and right-angled triangles.\n\n## Installation\n\nYou can install `geometry_shapes` via pip:\n\n```bash\npip install geometry_shapes\n```\n\n```bash\nfrom geometry_shapes import circle_area, circumference\n\nradius = 5\nprint(circle_area(radius)) # prints the area of the circle\nprint(circumference(radius)) # prints the circumference of the circle\n```\n\n```bash\nfrom geometry_shapes import rectangle_area, rectangle_perimeter\n\nlength = 4\nwidth = 6\nprint(rectangle_area(length, width)) # prints the area of the rectangle\nprint(rectangle_perimeter(length, width)) # prints the perimeter of the rectangle\n```\n\n```bash\nfrom geometry_shapes import triangle_area, triangle_perimeter\n\nbase = 3\nheight = 4\nprint(triangle_area(base, height)) # prints the area of the triangle\nprint(triangle_perimeter(base, height)) # prints the perimeter of the triangle\n```\n\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "A simple package to work with geometric shapes.",
"version": "0.1",
"project_urls": {
"Homepage": "https://github.com/upretisaurav7/geometry_shapes"
},
"split_keywords": [
"geometry",
"shapes"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "adc9ca1307a063d371efa4b6a53ac3c395cf6b1104187d3ac36ac523a58f5624",
"md5": "de1c949fd5d7cc74f3c69e2c6673cfc6",
"sha256": "63b0a2c565bd91cf646b82747702fa3d5cd532a8053ca172c48e5924971537a5"
},
"downloads": -1,
"filename": "geometry_shapes-0.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "de1c949fd5d7cc74f3c69e2c6673cfc6",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 1579,
"upload_time": "2023-09-23T04:59:52",
"upload_time_iso_8601": "2023-09-23T04:59:52.358516Z",
"url": "https://files.pythonhosted.org/packages/ad/c9/ca1307a063d371efa4b6a53ac3c395cf6b1104187d3ac36ac523a58f5624/geometry_shapes-0.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "4449c705c369b2afef932d9522b02fbe22767ea5fbb31eaa64a0d44144f6b8db",
"md5": "cb58eed3f2ed43f9143c626f814439b3",
"sha256": "dbf10625b35ff761bd19fb68b14ea4575cfc2f3f08274b65601057209d2cc3aa"
},
"downloads": -1,
"filename": "geometry_shapes-0.1.tar.gz",
"has_sig": false,
"md5_digest": "cb58eed3f2ed43f9143c626f814439b3",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 1552,
"upload_time": "2023-09-23T04:59:54",
"upload_time_iso_8601": "2023-09-23T04:59:54.305416Z",
"url": "https://files.pythonhosted.org/packages/44/49/c705c369b2afef932d9522b02fbe22767ea5fbb31eaa64a0d44144f6b8db/geometry_shapes-0.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-09-23 04:59:54",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "upretisaurav7",
"github_project": "geometry_shapes",
"github_not_found": true,
"lcname": "geometry-shapes"
}