{"id":22873343,"url":"https://github.com/ibz-04/geolib","last_synced_at":"2025-07-18T15:33:07.174Z","repository":{"id":253797895,"uuid":"844530321","full_name":"iBz-04/GeoLib","owner":"iBz-04","description":"A Geometry package for manipulating two - dimensional shapes built on python","archived":false,"fork":false,"pushed_at":"2024-08-25T17:44:06.000Z","size":2274,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-27T05:43:00.908Z","etag":null,"topics":["geometry","geometry-processing","open-source","open-source-contribution","python","python-3","python-geometry-library","python-libraries","python-library","python-math","python-math-library","python-open-source","python-packages","python3"],"latest_commit_sha":null,"homepage":"https://geolib-docs-main.netlify.app/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/iBz-04.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-19T12:57:17.000Z","updated_at":"2024-11-23T23:13:12.000Z","dependencies_parsed_at":"2024-08-25T18:49:36.578Z","dependency_job_id":null,"html_url":"https://github.com/iBz-04/GeoLib","commit_stats":null,"previous_names":["ibz-04/geolib"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/iBz-04/GeoLib","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iBz-04%2FGeoLib","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iBz-04%2FGeoLib/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iBz-04%2FGeoLib/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iBz-04%2FGeoLib/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iBz-04","download_url":"https://codeload.github.com/iBz-04/GeoLib/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iBz-04%2FGeoLib/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265786262,"owners_count":23828239,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["geometry","geometry-processing","open-source","open-source-contribution","python","python-3","python-geometry-library","python-libraries","python-library","python-math","python-math-library","python-open-source","python-packages","python3"],"created_at":"2024-12-13T14:18:36.948Z","updated_at":"2025-07-18T15:33:07.130Z","avatar_url":"https://github.com/iBz-04.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Logo](https://res.cloudinary.com/diekemzs9/image/upload/v1724152061/Geolib_logo_nelg32.jpg)\n\n\n# GeoLib\nThis library is a new Python-based geometry package designed to facilitate easy manipulation of shapes. The initial version of the library primarily focuses on two fundamental shapes: Squares and Triangles. The project aims to be both educational and practical, making it useful for developers, students.\n\nGeoLib is open-source under the MIT License, allowing developers to freely use, modify, and contribute to its ongoing development.\n\n## Features\n\n- Initialization with Side Length: Easily create a shape by specifying its side length.\n\n- Area Calculation: Compute the area of the square using the area property.\n\n- Perimeter Calculation: Compute the perimeter of the square using the perimeter property.\n\n- Scaling: Scale the square by a given factor using the scale method, which allows for dynamic resizing of the square.\n\n- Comparison Operators: Compare two squares using equality (==) and less than (\u003c) operators based on their side lengths.\n\n- Property Validation: Ensure that side lengths are positive, with robust error handling to prevent invalid geometric states.\n\n- String Representation: Convenient string representation of the square, making it easy to display in output and debugging.\n\n- The library is designed to be extensible, allowing developers to easily add support for additional geometric shapes beyond squares and triangles.\n\n\n## Installation\n\nInstall the library with :\n\n```bash\n pip install git+https://github.com/iBz-04/GeoLib.git\n```\n    \n## Usage\n\n```python\nfrom geolib import Square\n\n# Create a square with a side length of 4\nsquare = Square(4)\n\n# Calculate area and perimeter\nprint(\"Area:\", square.area)           # Output: Area: 16\nprint(\"Perimeter:\", square.perimeter) # Output: Perimeter: 16\n\n# Scale the square by a factor of 2\nsquare.scale(2)\nprint(\"New side length:\", square.side_length)  # Output: New side length: 8\n\n# Compare squares\nsmall_square = Square(3)\nprint(square \u003e small_square)  # Output: True\n\n```\n## Documentation\nfor more, see visit \n[Geolib Documentation](https://geolib-docs-main.netlify.app/)\n\n\n## Support\n\nFor support visit :\n[Discussions](https://github.com/iBz-04/GeoLib/discussions)\n\n\n## License\n\nGeoLib is licensed under the [MIT](https://github.com/iBz-04/GeoLib?tab=MIT-1-ov-file#readme) License.\n\n\n\n##  Creators\n\n- [@Ibrahim](https://github.com/iBz-04)\n- [@Arda](https://github.com/cyrekWei)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fibz-04%2Fgeolib","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fibz-04%2Fgeolib","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fibz-04%2Fgeolib/lists"}