{"id":18843907,"url":"https://github.com/riggsd/guano-py","last_synced_at":"2025-04-14T07:32:43.090Z","repository":{"id":57436308,"uuid":"44142163","full_name":"riggsd/guano-py","owner":"riggsd","description":"Python reference implementation of the GUANO bat acoustics metadata specification","archived":false,"fork":false,"pushed_at":"2025-03-09T04:52:21.000Z","size":179,"stargazers_count":14,"open_issues_count":6,"forks_count":5,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-27T21:38:57.845Z","etag":null,"topics":["anabat","bat-acoustics","bat-detector","bats","guano","metadata"],"latest_commit_sha":null,"homepage":"http://guano-md.org","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/riggsd.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2015-10-13T00:39:07.000Z","updated_at":"2025-03-09T04:47:31.000Z","dependencies_parsed_at":"2023-11-17T01:09:43.750Z","dependency_job_id":"db25b548-6640-4692-bc8e-7271c941e63e","html_url":"https://github.com/riggsd/guano-py","commit_stats":{"total_commits":101,"total_committers":4,"mean_commits":25.25,"dds":"0.19801980198019797","last_synced_commit":"90438d11db190f2fc83c998e76d116dfdd8c5c52"},"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/riggsd%2Fguano-py","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/riggsd%2Fguano-py/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/riggsd%2Fguano-py/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/riggsd%2Fguano-py/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/riggsd","download_url":"https://codeload.github.com/riggsd/guano-py/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248839571,"owners_count":21169831,"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":["anabat","bat-acoustics","bat-detector","bats","guano","metadata"],"created_at":"2024-11-08T02:59:13.296Z","updated_at":"2025-04-14T07:32:43.049Z","avatar_url":"https://github.com/riggsd.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"guano-py\r\n========\r\n\r\nThis is the `Python`_ reference implementation for `GUANO`_, the “Grand\r\nUnified Acoustic Notation Ontology”, a metadata format for bat acoustics\r\nrecordings. It includes a production-ready Python module with full\r\nsupport for reading and writing GUANO metadata, as well as several\r\nhelpful commandline utilities.\r\n\r\nFor more information about GUANO metadata itself, including the format\r\nspecification, see the GUANO project homepage: http://guano-md.org\r\n\r\nDocumentation for guano-py can be found at: http://guano-py.readthedocs.io\r\n\r\n\r\nRequirements\r\n============\r\n\r\n- Python 3.6+\r\n\r\n\r\nInstallation\r\n============\r\n\r\nDownload and install magically from the Python Package Index::\r\n\r\n    $\u003e pip install -U guano\r\n\r\nIn addition to having the ``guano`` Python module available for use in\r\nyour own software, you’ll also have a small collection of `useful\r\nscripts`_ to use.\r\n\r\nAlternately, you can check out the project from GitHub and install\r\nlocally in developer mode to hack on it yourself::\r\n\r\n    $\u003e git clone https://github.com/riggsd/guano-py.git\r\n    $\u003e cd guano-py\r\n    $\u003e python setup.py develop\r\n\r\nMaster:|Master Tests| Dev:|Dev Tests| |Documentation Status|\r\n\r\n\r\nAPI Usage\r\n=========\r\n\r\n.. code:: python\r\n\r\n    from guano import GuanoFile\r\n\r\n    # load a .WAV file with (or without) GUANO metadata\r\n    g = GuanoFile('test.wav')\r\n\r\n    # get and set metadata values like a Python dict\r\n    print g['GUANO|Version']\r\n    \u003e\u003e\u003e 1.0\r\n\r\n    print g['Make'], g['Model']\r\n    \u003e\u003e\u003e 'Pettersson', 'D500X'\r\n\r\n    g['Species Manual ID'] = 'Myso'\r\n\r\n    g['Note'] = 'I love GUANO!'\r\n\r\n    # namespaced fields can be specified separately or pipe-delimited\r\n    print g['PET', 'Gain'], g['PET|Gain']\r\n    \u003e\u003e\u003e 80, 80\r\n\r\n    g['SB|Consensus'] = 'Epfu'\r\n    g['SB', 'Consensus'] = 'Epfu'\r\n\r\n    # print all the metadata values\r\n    for key, value in g.items():\r\n        print '%s: %s' % (key, value)\r\n\r\n    # write the updated .WAV file back to disk\r\n    g.write()\r\n\r\n    # have some GUANO metadata from some other source? load it from a string\r\n    g = GuanoFile.from_string('GUANO|Version:1.0\\nTags:voucher,hand-release')\r\n\r\n    # write GUANO metadata somewhere else, say an Anabat file or text file\r\n    with open('sidecar_file.guano', 'wb') as outfile:\r\n        outfile.write( g.serialize() )\r\n\r\n    # teach the parser to recognize custom metadata fields\r\n    GuanoFile.register('Anabat', ['Humidity', 'Temperature'], float)\r\n    GuanoFile.register('SB', 'Thumbnail Image', guano.base64decode)\r\n\r\n\r\n.. _Python: http://python.org\r\n.. _GUANO: http://guano-md.org\r\n.. _useful scripts: bin/\r\n\r\n.. |Master Tests| image:: https://github.com/riggsd/guano-py/actions/workflows/python-tests.yml/badge.svg?branch=master\r\n   :target: https://github.com/riggsd/guano-py/actions/workflows/python-tests.yml?query=branch%3Amaster\r\n.. |Dev Tests| image:: https://github.com/riggsd/guano-py/actions/workflows/python-tests.yml/badge.svg?branch=dev\r\n   :target: https://github.com/riggsd/guano-py/actions/workflows/python-tests.yml?query=branch%3Adev\r\n.. |Documentation Status| image:: https://readthedocs.org/projects/guano-py/badge/?version=latest\r\n   :target: http://guano-py.readthedocs.io/en/latest/?badge=latest\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Friggsd%2Fguano-py","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Friggsd%2Fguano-py","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Friggsd%2Fguano-py/lists"}