{ "info": { "author": "Benedikt Rauls", "author_email": "brauls101@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3.6" ], "description": "[![Build Status](https://travis-ci.org/brauls/random-geometry-points.svg?branch=master)](https://travis-ci.org/brauls/random-geometry-points)\n[![Coverage Status](https://coveralls.io/repos/github/brauls/random-geometry-points/badge.svg?branch=master)](https://coveralls.io/github/brauls/random-geometry-points?branch=master)\n[![PyPI version](https://badge.fury.io/py/random-geometry-points.svg)](https://badge.fury.io/py/random-geometry-points)\n[![PyPI pyversions](https://img.shields.io/badge/python-3.6-blue.svg)](https://badge.fury.io/py/random-geometry-points)\n\n# random-geometry-points\n\nThis module provides classes to generate random points on geometry surfaces.\nThese points can then be used as test data, e.g. to simulate measurements of a measurement device.\n\n## Installation\n\nYou can install this module using pip globally\n```bash\npip install random-geometry-points\n```\nor using pipenv\n```bash\ncd \npipenv install random-geometry-points\n```\n\n## Basic Usage\n\nCurrently the geometry types Plane, Sphere and 2D Circle are supported.\nYou can import the geometry classes by using the following import statements.\n\n```python\nfrom random_geometry_points.plane import Plane\nfrom random_geometry_points.sphere import Sphere\nfrom random_geometry_points.circle2d import Circle2D\n```\n\nNow you can create an arbitrary number of random points lying on a geometry surface.\n\n```python\n# create a plane object with n = (1, 0, 0), x0 = (0, 0, 0), d = 0 and radius = 10\nnormal_vec = (1.0, 0.0, 0.0)\nref_point = (0.0, 0.0, 0.0)\nplane = Plane(normal_vec, 0.0, ref_point, 10.0)\n\n# create and print 3 random points lying on the plane\nrandom_plane_points = plane.create_random_points(3)\nprint(random_plane_points)\n# example output: [(0.0, -2.058506783308933, -5.777518695971468), (0.0, 2.501766732323411, 6.740902158795952), (0.0, 7.846400008799242, 5.304670974614023)]\n```\n\n```python\n# create a sphere object with x = 1.0, y = -4.5, z = 3.3 and radius = 11.35\nsphere = Sphere(1.0, -4.5, 3.3, 11.35)\n\n# create and print 3 random points lying on the sphere\nrandom_sphere_points = sphere.create_random_points(3)\nprint(random_sphere_points)\n# example output: [(4.442124959724451, -1.593759345598388, -7.1176792530940025), (-7.102728837759106, -6.022944977793705, -4.500572028791214), (-10.190814503489936, -4.676727604583875, 5.1859846505890115)]\n```\n\n```python\n# create a circle object with x = 1.0, y = -4.5 and radius = 11.35\ncircle = Circle2D(1.0, -4.5, 11.35)\n\n# create and print 3 random points lying on the circle\nrandom_circle_points = circle.create_random_points(3)\nprint(random_circle_points)\n# example output: [(4.057509245253113, -15.430422554283604), (2.2509595260473114, 6.780851043436018), (9.330996610075898, 3.2082420488010035)]\n```\n\n## Documentation\n\nPlease take a look at the [Wiki](https://github.com/brauls/random-geometry-points/wiki) for a more detailed description. There you get more detailed information on how you can use the geometry classes, the meaning of the geometry parameters and error handling.\n\n## Deployment\n\n### Update packages\n\n```pipenv update --dev setuptools wheel twine```\n\n### Update `setup.py`\n\nUpdate the content of `setup.py`, especially the version information.\n\n### Commit and tag\n\nCommit and push the changes along with a new version tag. Travis will run the test cases automatically when pushing to the master branch.\n\n### Build source archive and built distribution\n\n```pipenv run python setup.py sdist bdist_wheel```\n\n### Deploy to PyPi or TestPyPi to test things first\n\n```pipenv run twine upload --skip-existing --repository-url https://test.pypi.org/legacy/ dist/*```\n\n```pipenv run twine upload --skip-existing dist/*```\n\n## Useful links\n\n* [Configuring pipenv for Visual Studio Code](https://olav.it/2017/03/04/pipenv-visual-studio-code/)\n* [Packaging Python Projects](https://packaging.python.org/tutorials/packaging-projects/)\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/brauls/random-geometry-points", "keywords": "geometry random points 2D 3D", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "random-geometry-points", "package_url": "https://pypi.org/project/random-geometry-points/", "platform": "", "project_url": "https://pypi.org/project/random-geometry-points/", "project_urls": { "Homepage": "https://github.com/brauls/random-geometry-points", "Source": "https://github.com/brauls/random-geometry-points", "Tracker": "https://github.com/brauls/random-geometry-points/issues" }, "release_url": "https://pypi.org/project/random-geometry-points/1.1.2/", "requires_dist": null, "requires_python": ">=3.6", "summary": "Library to generate random points (2D or 3D) on geometry surfaces", "version": "1.1.2" }, "last_serial": 4003629, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "310ed738210f50dfc52f236d2f3315dc", "sha256": "a1d886f8ca9d6586edd58cea317542550a76e4bd48be655ac75cef1d8032a0b6" }, "downloads": -1, "filename": "random_geometry_points-1.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "310ed738210f50dfc52f236d2f3315dc", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 10444, "upload_time": "2018-04-08T19:18:26", "url": "https://files.pythonhosted.org/packages/cc/47/56573fcd4e313c406ca135acdfab81d82bef8a2bfaaf9459c918f1b06d3b/random_geometry_points-1.0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b864eb0d46f6fd92dce137586bbe9db8", "sha256": "7881fe401e144d07045dd8e50f57ef1075a496eb66023a32787434a8ade9d143" }, "downloads": -1, "filename": "random_geometry_points-1.0.0.tar.gz", "has_sig": false, "md5_digest": "b864eb0d46f6fd92dce137586bbe9db8", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 6268, "upload_time": "2018-04-08T19:18:30", "url": "https://files.pythonhosted.org/packages/0e/1f/a08a005379d99f605fdf6cb2073c4a159a0e24bad1073c2c60774ac7a605/random_geometry_points-1.0.0.tar.gz" } ], "1.1.0": [ { "comment_text": "", "digests": { "md5": "104c040e0777ac1d02b61f2e153f1b3a", "sha256": "aaba07a53335f1b471e3f7c1e523fd54d622855df157c9c8786c1ca68e66ad9f" }, "downloads": -1, "filename": "random_geometry_points-1.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "104c040e0777ac1d02b61f2e153f1b3a", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 10490, "upload_time": "2018-06-25T20:57:38", "url": "https://files.pythonhosted.org/packages/bd/68/891d8ad3376123573ce2a74f41fa6857d0130db2f26d9d1ade5a0c14c817/random_geometry_points-1.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "8103646967ce2ec1e657fc2cfbc29959", "sha256": "f46f5a430010a902728c867fe9d9e69ffc6129e843016e081fa56f88c42b4764" }, "downloads": -1, "filename": "random_geometry_points-1.1.0.tar.gz", "has_sig": false, "md5_digest": "8103646967ce2ec1e657fc2cfbc29959", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 8606, "upload_time": "2018-06-25T20:57:39", "url": "https://files.pythonhosted.org/packages/7d/27/21501aecfdae52aba4f28d5ae6c4f10615a5aeedc6af1274d6dd5d5cf27f/random_geometry_points-1.1.0.tar.gz" } ], "1.1.1": [ { "comment_text": "", "digests": { "md5": "f2f1d0369afd30f6388497d87a4b0551", "sha256": "544dae44b62ce830dd4e4e3e8de783672484e66b3c52516754e35c8298a4d594" }, "downloads": -1, "filename": "random_geometry_points-1.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "f2f1d0369afd30f6388497d87a4b0551", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 10604, "upload_time": "2018-06-25T21:09:54", "url": "https://files.pythonhosted.org/packages/f6/e6/63f61a33cac0aaa12a5d88138750e97bda881d6d2ae13bc045e632bf54b2/random_geometry_points-1.1.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e0f2f570647b7e382387842546cbadcf", "sha256": "7bf88285455daf7d7cf4453828fe4e9aaffdee52bd962d57a687f3bc5aebf662" }, "downloads": -1, "filename": "random_geometry_points-1.1.1.tar.gz", "has_sig": false, "md5_digest": "e0f2f570647b7e382387842546cbadcf", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 8840, "upload_time": "2018-06-25T21:09:55", "url": "https://files.pythonhosted.org/packages/da/65/033e6d9f62e8384867c39b4d1c2476c2f78a9c7b1d07681002ad93900343/random_geometry_points-1.1.1.tar.gz" } ], "1.1.2": [ { "comment_text": "", "digests": { "md5": "1bcd9385023d143c612eb69b9c2bce24", "sha256": "e1841437ea2a63e3d493981ee85ff224ea4f9a11c357859315fd7bb5b86674b6" }, "downloads": -1, "filename": "random_geometry_points-1.1.2-py3-none-any.whl", "has_sig": false, "md5_digest": "1bcd9385023d143c612eb69b9c2bce24", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 10675, "upload_time": "2018-06-26T13:21:37", "url": "https://files.pythonhosted.org/packages/19/30/3e9f632f9b0a6f93c972025b93827d5ffc917619877694f0f5a084e564a5/random_geometry_points-1.1.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "3dd1a50e9da071224a7f44841297d075", "sha256": "b0d8dbc49652eeed1d9b3a9e4ca24ed2ae78feab52448391c199c7e938cb3164" }, "downloads": -1, "filename": "random_geometry_points-1.1.2.tar.gz", "has_sig": false, "md5_digest": "3dd1a50e9da071224a7f44841297d075", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 8986, "upload_time": "2018-06-26T13:21:38", "url": "https://files.pythonhosted.org/packages/c6/7e/52115b81ff0cb10b41a04a5125cb6b4ce781c5994807b1d4b9844921fc2c/random_geometry_points-1.1.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "1bcd9385023d143c612eb69b9c2bce24", "sha256": "e1841437ea2a63e3d493981ee85ff224ea4f9a11c357859315fd7bb5b86674b6" }, "downloads": -1, "filename": "random_geometry_points-1.1.2-py3-none-any.whl", "has_sig": false, "md5_digest": "1bcd9385023d143c612eb69b9c2bce24", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 10675, "upload_time": "2018-06-26T13:21:37", "url": "https://files.pythonhosted.org/packages/19/30/3e9f632f9b0a6f93c972025b93827d5ffc917619877694f0f5a084e564a5/random_geometry_points-1.1.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "3dd1a50e9da071224a7f44841297d075", "sha256": "b0d8dbc49652eeed1d9b3a9e4ca24ed2ae78feab52448391c199c7e938cb3164" }, "downloads": -1, "filename": "random_geometry_points-1.1.2.tar.gz", "has_sig": false, "md5_digest": "3dd1a50e9da071224a7f44841297d075", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 8986, "upload_time": "2018-06-26T13:21:38", "url": "https://files.pythonhosted.org/packages/c6/7e/52115b81ff0cb10b41a04a5125cb6b4ce781c5994807b1d4b9844921fc2c/random_geometry_points-1.1.2.tar.gz" } ] }