{"id":20625181,"url":"https://github.com/hearot/primecount-python","last_synced_at":"2025-04-15T15:05:16.686Z","repository":{"id":57454772,"uuid":"293310640","full_name":"hearot/primecount-python","owner":"hearot","description":"A Python wrapper for primecount.","archived":false,"fork":false,"pushed_at":"2020-09-09T14:13:34.000Z","size":17,"stargazers_count":5,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-15T15:05:06.061Z","etag":null,"topics":["c","c-module","computation","extension","linux","mathematics","maths","prime","primecount","primes","primesieve","python","python3"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/primecount","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hearot.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}},"created_at":"2020-09-06T15:55:32.000Z","updated_at":"2022-10-07T22:22:45.000Z","dependencies_parsed_at":"2022-09-05T05:41:26.938Z","dependency_job_id":null,"html_url":"https://github.com/hearot/primecount-python","commit_stats":null,"previous_names":["hearot/primecount"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hearot%2Fprimecount-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hearot%2Fprimecount-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hearot%2Fprimecount-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hearot%2Fprimecount-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hearot","download_url":"https://codeload.github.com/hearot/primecount-python/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249094932,"owners_count":21211837,"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":["c","c-module","computation","extension","linux","mathematics","maths","prime","primecount","primes","primesieve","python","python3"],"created_at":"2024-11-16T13:08:25.997Z","updated_at":"2025-04-15T15:05:16.643Z","avatar_url":"https://github.com/hearot.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# primecount\nA Python wrapper for [primecount](https://github.com/kimwalisch/primecount).\n\n### Documentation\n\nThis package follows the documentation provided by [the C API reference](https://github.com/kimwalisch/primecount), generating three methods: `primecount.nth_prime`, `primecount.pi` and `primecount.phi`.\n\n### Installation\n\nIn the first place, you have to download [the source code of the library](https://github.com/kimwalisch/primecount) and build it. Make sure you have installed [cmake](https://cmake.org/), [git](https://git-scm.com/) and [make](https://www.gnu.org/software/make/). You might have to make use of `sudo` if `make install` ever fails.\n\n```\ngit clone https://github.com/kimwalisch/primecount\ncd primecount\ncmake . -DBUILD_SHARED_LIBS=ON\nmake -j\nmake install\n```\n\nAfter having installed the library, it's time to install the Python wrapper by cloning this repository. Make sure you have installed [pip](https://pypi.org/project/pip/) and that `primecount` is reachable as a shared library using a compiler.\n\n```\ngit clone https://github.com/hearot/primecount\ncd primecount\npip install .\n```\n\nInstead of the last command, you can type `python setup.py install` as well.\n\n### Commit messages\n\n\u003e See [Conventional Commits](https://www.conventionalcommits.org).\n\n### Contributing\n\n\u003e See [CONTRIBUTING.md](./CONTRIBUTING.md).\n\n### Versioning\n\n\u003e See [PEP 440](https://www.python.org/dev/peps/pep-0440/).\n\n### Copyright \u0026 License\n\n- Copyright (C) 2020 [Hearot](https://github.com/hearot).\n- Licensed under the terms of the [BSD 2-Clause License](./LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhearot%2Fprimecount-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhearot%2Fprimecount-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhearot%2Fprimecount-python/lists"}