{"id":18715256,"url":"https://github.com/barnabyshearer/pynfc","last_synced_at":"2025-04-12T13:08:18.200Z","repository":{"id":11248530,"uuid":"68921476","full_name":"BarnabyShearer/pynfc","owner":"BarnabyShearer","description":"`ctypeslib` converted libnfc and libfreefare.","archived":false,"fork":false,"pushed_at":"2022-12-08T01:04:22.000Z","size":62,"stargazers_count":16,"open_issues_count":1,"forks_count":4,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-10-28T17:33:28.651Z","etag":null,"topics":["desfire","mifare","nfc","rfid"],"latest_commit_sha":null,"homepage":"https://pynfc.readthedocs.io/en/latest/","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BarnabyShearer.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null}},"created_at":"2016-09-22T12:59:00.000Z","updated_at":"2024-01-07T15:15:04.000Z","dependencies_parsed_at":"2023-01-13T16:24:29.570Z","dependency_job_id":null,"html_url":"https://github.com/BarnabyShearer/pynfc","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BarnabyShearer%2Fpynfc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BarnabyShearer%2Fpynfc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BarnabyShearer%2Fpynfc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BarnabyShearer%2Fpynfc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BarnabyShearer","download_url":"https://codeload.github.com/BarnabyShearer/pynfc/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223518531,"owners_count":17158689,"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":["desfire","mifare","nfc","rfid"],"created_at":"2024-11-07T13:08:08.717Z","updated_at":"2024-11-07T13:08:09.183Z","avatar_url":"https://github.com/BarnabyShearer.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"..\n    Autogenerated by https://github.com/BarnabyShearer/meta\n\n=====\npynfc\n=====\n.. image:: https://readthedocs.org/projects/pynfc/badge/?version=latest\n    :target: https://pynfc.readthedocs.io/en/latest/\n.. image:: https://img.shields.io/pypi/v/pynfc?color=success\n    :target: https://pypi.org/project/pynfc\n\n`ctypeslib` converted libnfc and libfreefare.\n\nInstall\n-------\n\n.. code-block:: bash\n\n    sudo apt install libclang-dev libfreefare-dev\n    python3 -m pip install pynfc\n\nUsage\n-----\n\n.. code-block:: python\n\n    from pynfc import Nfc, Desfire, Timeout\n    \n    n = Nfc(\"pn532_uart:/dev/ttyUSB0:115200\")\n    \n    DESFIRE_DEFAULT_KEY = b'\\x00' * 8\n    MIFARE_BLANK_TOKEN = b'\\xFF' * 1024 * 4\n    \n    for target in n.poll():\n        try:\n            print(target.uid, target.auth(DESFIRE_DEFAULT_KEY if type(target) == Desfire else MIFARE_BLANK_TOKEN))\n        except TimeoutException:\n            pass\n\nDevelop\n-------\n\n.. code-block:: bash\n\n    sudo apt install libfreefare-dev libclang-5.0-dev\n    git clone https://github.com/BarnabyShearer/pynfc.git\n    cd pynfc\n    python3 setup.py develop --user\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbarnabyshearer%2Fpynfc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbarnabyshearer%2Fpynfc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbarnabyshearer%2Fpynfc/lists"}