{"id":44664286,"url":"https://github.com/ifilot/pylebedev","last_synced_at":"2026-02-15T00:14:58.134Z","repository":{"id":57711175,"uuid":"513521791","full_name":"ifilot/pylebedev","owner":"ifilot","description":"Python Library for Lebedev Quadrature points and weights","archived":false,"fork":false,"pushed_at":"2024-09-04T06:23:21.000Z","size":548,"stargazers_count":9,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-04T11:46:08.191Z","etag":null,"topics":["lebedev","python","quadrature","unit-sphere"],"latest_commit_sha":null,"homepage":"https://pylebedev.imc-tue.nl/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ifilot.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}},"created_at":"2022-07-13T12:56:52.000Z","updated_at":"2025-10-09T05:30:17.000Z","dependencies_parsed_at":"2023-12-21T21:29:59.028Z","dependency_job_id":"72c7cc15-59cb-446b-bfca-e66dd479d54b","html_url":"https://github.com/ifilot/pylebedev","commit_stats":{"total_commits":6,"total_committers":2,"mean_commits":3.0,"dds":"0.16666666666666663","last_synced_commit":"acf57d2f9fb16b2aa1c09c2468c72b85f5c31a0a"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/ifilot/pylebedev","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ifilot%2Fpylebedev","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ifilot%2Fpylebedev/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ifilot%2Fpylebedev/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ifilot%2Fpylebedev/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ifilot","download_url":"https://codeload.github.com/ifilot/pylebedev/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ifilot%2Fpylebedev/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29461560,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-14T22:42:09.113Z","status":"ssl_error","status_checked_at":"2026-02-14T22:42:05.053Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["lebedev","python","quadrature","unit-sphere"],"created_at":"2026-02-15T00:14:57.195Z","updated_at":"2026-02-15T00:14:58.129Z","avatar_url":"https://github.com/ifilot.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PyLebedev\r\n\r\n[![C/C++ CI](https://github.com/ifilot/pylebedev/actions/workflows/build_conda.yml/badge.svg)](https://github.com/ifilot/pylebedev/actions/workflows/build_conda.yml)\r\n[![C/C++ CI](https://github.com/ifilot/pylebedev/actions/workflows/build_wheels.yml/badge.svg)](https://github.com/ifilot/pylebedev/actions/workflows/build_wheels.yml)\r\n[![codecov](https://codecov.io/gh/ifilot/pylebedev/graph/badge.svg?token=RA2HJ0QA01)](https://codecov.io/gh/ifilot/pylebedev)\r\n[![Anaconda-Server Badge](https://anaconda.org/ifilot/pylebedev/badges/version.svg)](https://anaconda.org/ifilot/pylebedev)\r\n[![PyPI](https://img.shields.io/pypi/v/pylebedev?color=green)](https://pypi.org/project/pylebedev/)\r\n[![License: GPL v3](https://img.shields.io/badge/License-GPLv3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0)\r\n\r\n\r\n## Purpose\r\n\r\nPyLebedev is a python package that stores [Lebedev quadrature](https://en.wikipedia.org/wiki/Lebedev_quadrature) coefficients for integration over the unit sphere.\r\n\r\n## Installation\r\n\r\n### Anaconda\r\n\r\n[![Anaconda Version](https://anaconda.org/ifilot/pylebedev/badges/version.svg)](https://anaconda.org/ifilot/pylebedev)\r\n[![Anaconda Platforms](https://anaconda.org/ifilot/pylebedev/badges/platforms.svg)](https://anaconda.org/ifilot/pylebedev)\r\n[![Anaconda Downloads](https://anaconda.org/ifilot/pylebedev/badges/downloads.svg)](https://anaconda.org/ifilot/pylebedev)\r\n\r\nOpen Anaconda prompt and type\r\n\r\n```\r\nconda install -c ifilot pylebedev\r\n```\r\n\r\n### PyPi\r\n\r\n[![PyPI](https://img.shields.io/pypi/v/pylebedev?color=green)](https://pypi.org/project/pylebedev/)\r\n[![PyPI - Downloads](https://img.shields.io/pypi/dm/pypi)](https://pypi.org/project/pylebedev/)\r\n![PyPI - Python Version](https://img.shields.io/pypi/pyversions/pylebedev)\r\n\r\n\r\nOpen a terminal and type\r\n\r\n```\r\npip install pylebedev\r\n```\r\n\r\n## Usage\r\n\r\n```python\r\nfrom pylebedev import PyLebedev\r\nimport numpy as np\r\n\r\ndef main():\r\n    \"\"\"\r\n    Test Lebedev quadrature for probe function\r\n    \"\"\"\r\n    # build library\r\n    leblib = PyLebedev()\r\n    \r\n    # exact answer to function \"testfunc\"\r\n    exact = 216.0 * np.pi / 35.0\r\n    r,w = leblib.get_points_and_weights(9)\r\n    integral = 4.0 * np.pi * np.sum(w * tfunc(r[:,0], r[:,1], r[:,2]))\r\n    \r\n    print('Integral: %f vs Exact: %f' % (integral, exact))\r\n\r\ndef tfunc(x,y,z):\r\n    \"\"\"\r\n    Trial function to test\r\n    \r\n    Adapted from: https://cbeentjes.github.io/files/Ramblings/QuadratureSphere.pdf\r\n    \r\n    This function has the exact result upon integration over a unit sphere\r\n    of 216/35 * pi\r\n    \"\"\"\r\n    return 1 + x + y**2 + x**2*y + x**4 + y**5 + x**2*y**2*z**2\r\n\r\nif __name__ == '__main__':\r\n    main()\r\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fifilot%2Fpylebedev","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fifilot%2Fpylebedev","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fifilot%2Fpylebedev/lists"}