{"id":21813999,"url":"https://github.com/hoanhan101/pn532","last_synced_at":"2025-10-14T21:32:09.127Z","repository":{"id":112871341,"uuid":"183817086","full_name":"hoanhan101/pn532","owner":"hoanhan101","description":"PN532 NFC/RFID Native Python API for your Raspberry Pi","archived":false,"fork":false,"pushed_at":"2019-05-20T01:11:07.000Z","size":54,"stargazers_count":23,"open_issues_count":1,"forks_count":7,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-03T16:01:16.649Z","etag":null,"topics":["iot","nfc","pn532","python","raspberry-pi","rfid"],"latest_commit_sha":null,"homepage":"","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/hoanhan101.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":"2019-04-27T20:08:19.000Z","updated_at":"2025-05-26T23:53:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"925e2190-44e6-4665-bbf4-9d916165af33","html_url":"https://github.com/hoanhan101/pn532","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hoanhan101/pn532","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hoanhan101%2Fpn532","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hoanhan101%2Fpn532/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hoanhan101%2Fpn532/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hoanhan101%2Fpn532/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hoanhan101","download_url":"https://codeload.github.com/hoanhan101/pn532/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hoanhan101%2Fpn532/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279021373,"owners_count":26087022,"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","status":"online","status_checked_at":"2025-10-14T02:00:06.444Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["iot","nfc","pn532","python","raspberry-pi","rfid"],"created_at":"2024-11-27T14:34:49.358Z","updated_at":"2025-10-14T21:32:09.110Z","avatar_url":"https://github.com/hoanhan101.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pn532\n\nPN532 NFC/RFID Native Python API for your Raspberry Pi.\n\n## Installing\n\nTo install the package, simply issue a git clone:\n```sh\ngit clone https://github.com/hoanhan101/pn532.git\n```\n\n## Using\n\n### API\n\nThere are 2 main methods that we care about at the moment, one is `setup()`\nand one is `read()`.\n- `setup()` takes an optional boolean parameter, `enable_logging`, which is to\n  enable debugging messages. This should be always be called first so that the\n  sensor is initialized and setup properly.\n- `read()` returns the card reading value as an array of 11-bytes. This will block and\n  only return once a card is detected. Sample readings can be found [here](output/raw.txt).\n\n### Examples\n\nSetup the device, get the reading and print it to the console.\n```python\nfrom pn532.api import PN532\n\n\nif __name__== \"__main__\":\n    nfc = PN532()\n\n    # setup the device\n    nfc.setup()\n\n    # keep reading until a value is returned\n    read = nfc.read()\n    print(read)\n```\n\n## Developing\n\nTo install necessary development tools:\n```sh\nmake init\n```\n\nTo run tests:\n```sh\nmake test\n```\n\n## Reference\n- [PN532 data sheet](https://www.nxp.com/docs/en/nxp/data-sheets/PN532_C1.pdf)\n- [PN532 user manual](https://www.nxp.com/docs/en/user-guide/141520.pdf)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhoanhan101%2Fpn532","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhoanhan101%2Fpn532","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhoanhan101%2Fpn532/lists"}