square-shapez


Namesquare-shapez JSON
Version 0.0.1 PyPI version JSON
download
home_pagehttps://github.com/Similization/ShapeAreaLib
SummaryThis is module to calculate shapes area.
upload_time2023-10-02 15:19:32
maintainer
docs_urlNone
authorreducter
requires_python>=3.6
license
keywords shapes area
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Shapes square library #

## What is this? ##
The module allows you to work with shapes, calculate perimetr and area.

### Using ###


Using the library is as simple and convenient as possible:

Let's import it first:\
First, import everything from the library (use the `from `...` import *` construct).

Examples of all operations:

Create circle shape, using `radius`:

    circle = Circle(radius=radius)

Create triangle shape, using `side_1`, `side_2`, `side_3`:

    triangle = Triangle(a=side_1, b=side_2, c=side_3)


You can calculate perimetr for each shape, `using get_perimetr()`:

    shape_perimetr = shape.get_perimetr()

You can calculate are for each shape, `using get_area()`:

    shape_area = shape.get_area()

Also, you can use `calculate_area()` which takes as input a parameter of type Shape (an abstract class for all shapes)

    shape_area = calculate_area(shape=some_shape)


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/Similization/ShapeAreaLib",
    "name": "square-shapez",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": "",
    "keywords": "shapes area",
    "author": "reducter",
    "author_email": "example@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/c4/2b/93ba75da6bfd36cfa2e9971011c525ce9d688eedfd026d9e6a6cb39c4e0e/square_shapez-0.0.1.tar.gz",
    "platform": null,
    "description": "# Shapes square library #\n\n## What is this? ##\nThe module allows you to work with shapes, calculate perimetr and area.\n\n### Using ###\n\n\nUsing the library is as simple and convenient as possible:\n\nLet's import it first:\\\nFirst, import everything from the library (use the `from `...` import *` construct).\n\nExamples of all operations:\n\nCreate circle shape, using `radius`:\n\n    circle = Circle(radius=radius)\n\nCreate triangle shape, using `side_1`, `side_2`, `side_3`:\n\n    triangle = Triangle(a=side_1, b=side_2, c=side_3)\n\n\nYou can calculate perimetr for each shape, `using get_perimetr()`:\n\n    shape_perimetr = shape.get_perimetr()\n\nYou can calculate are for each shape, `using get_area()`:\n\n    shape_area = shape.get_area()\n\nAlso, you can use `calculate_area()` which takes as input a parameter of type Shape (an abstract class for all shapes)\n\n    shape_area = calculate_area(shape=some_shape)\n\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "This is module to calculate shapes area.",
    "version": "0.0.1",
    "project_urls": {
        "GitHub": "https://github.com/Similization/ShapeAreaLib",
        "Homepage": "https://github.com/Similization/ShapeAreaLib"
    },
    "split_keywords": [
        "shapes",
        "area"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "5f64527d5f5c888894e8dcdb14a3127747666bdf392fc5dd29d257f675e439a3",
                "md5": "9e3ee2af0afe429ef9bbedfa8face622",
                "sha256": "c5857548477b65330380fa4f596ad0b058befcd8525d955e4be418531040e0c5"
            },
            "downloads": -1,
            "filename": "square_shapez-0.0.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "9e3ee2af0afe429ef9bbedfa8face622",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 2465,
            "upload_time": "2023-10-02T15:19:30",
            "upload_time_iso_8601": "2023-10-02T15:19:30.969990Z",
            "url": "https://files.pythonhosted.org/packages/5f/64/527d5f5c888894e8dcdb14a3127747666bdf392fc5dd29d257f675e439a3/square_shapez-0.0.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c42b93ba75da6bfd36cfa2e9971011c525ce9d688eedfd026d9e6a6cb39c4e0e",
                "md5": "ed14585aa808dde3f59884cc10223fbc",
                "sha256": "86adf7d0c84937bc44d8ef82ed105d97fec9a488054e2a88a04484949488a14b"
            },
            "downloads": -1,
            "filename": "square_shapez-0.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "ed14585aa808dde3f59884cc10223fbc",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 2216,
            "upload_time": "2023-10-02T15:19:32",
            "upload_time_iso_8601": "2023-10-02T15:19:32.591468Z",
            "url": "https://files.pythonhosted.org/packages/c4/2b/93ba75da6bfd36cfa2e9971011c525ce9d688eedfd026d9e6a6cb39c4e0e/square_shapez-0.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-10-02 15:19:32",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Similization",
    "github_project": "ShapeAreaLib",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "square-shapez"
}
        
Elapsed time: 2.66263s