{"id":26246227,"url":"https://github.com/zillow/aiographite","last_synced_at":"2026-03-10T00:31:49.786Z","repository":{"id":48128631,"uuid":"65938530","full_name":"zillow/aiographite","owner":"zillow","description":"aiographite is Python3 library ultilizing asyncio, designed to help Graphite users to send data into graphite easily.","archived":false,"fork":false,"pushed_at":"2024-01-25T12:25:54.000Z","size":104,"stargazers_count":14,"open_issues_count":3,"forks_count":6,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-04-23T20:34:59.434Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://aiographite.readthedocs.io/en/latest/","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/zillow.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":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2016-08-17T20:11:05.000Z","updated_at":"2024-02-13T14:50:16.000Z","dependencies_parsed_at":"2025-04-23T20:41:17.356Z","dependency_job_id":null,"html_url":"https://github.com/zillow/aiographite","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/zillow/aiographite","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zillow%2Faiographite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zillow%2Faiographite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zillow%2Faiographite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zillow%2Faiographite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zillow","download_url":"https://codeload.github.com/zillow/aiographite/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zillow%2Faiographite/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30318404,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-09T20:05:46.299Z","status":"ssl_error","status_checked_at":"2026-03-09T19:57:04.425Z","response_time":61,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":[],"created_at":"2025-03-13T13:17:39.755Z","updated_at":"2026-03-10T00:31:49.761Z","avatar_url":"https://github.com/zillow.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"aiographite \n===========\n\n.. image:: https://travis-ci.org/zillow/aiographite.svg?branch=master\n    :alt: build status\n    :target: https://travis-ci.org/zillow/aiographite\n\n.. image:: https://coveralls.io/repos/github/zillow/aiographite/badge.svg?branch=master\n    :alt: coverage status\n    :target: https://coveralls.io/github/zillow/aiographite?branch=master\n\n\nAn asyncio library for graphite.\n\nYou can find out more here:\n\nhttp://aiographite.readthedocs.io/en/latest/\n\n\n---------------------\nWhat is aiographite ?\n---------------------\n\naiographite is Python3 library ultilizing asyncio, designed\nto help Graphite users to send data into graphite easily.\n\n\n----------------------\nInstalling it globally\n----------------------\n\nYou can install aiographite globally with any Python package manager:\n\n.. code::\n\n    pip install aiographite\n\n\n----------------------\nQuick start\n----------------------\n\nLet's get started.\n\n.. code::\n\n    from aiographite import connect\n    from aiographite.protocol import PlaintextProtocol\n\n    \"\"\"\n      Initialize a aiographite instance\n    \"\"\"\n    loop = asyncio.get_event_loop()\n    plaintext_protocol = PlaintextProtocol()\n    graphite_conn = await connect(*httpd.address, plaintext_protocol, loop=loop)\n\n\n    \"\"\"\n      Send a tuple (metric, value , timestamp)\n    \"\"\"\n    await graphite_conn.send(metric, value, timestamp)\n\n\n    \"\"\"\n      Send a list of tuples List[(metric, value , timestamp)]\n    \"\"\"\n    await graphite_conn.send_multiple(list)\n\n\n    \"\"\"\n      aiographite library also provides GraphiteEncoder module,\n      which helps users to send valid metric name to graphite.\n      For Example: (metric_parts, value ,timestamp)\n    \"\"\"\n    metric = graphite_conn.clean_and_join_metric_parts(metric_parts)\n    await graphite_conn.send(metric, value, timestamp)\n\n\n    \"\"\"\n      Close connection\n    \"\"\"\n    await graphite_conn.close()\n\n\n----------------------\nExample\n----------------------\n\nA simple example.\n\n.. code::\n\n    from aiographite.protocol import PlaintextProtocol\n    from aiographite import connect\n    import time\n    import asyncio\n\n\n    LOOP = asyncio.get_event_loop()\n    SERVER = '127.0.0.1'\n    PORT = 2003\n\n\n    async def test_send_data():\n      # Initiazlize an aiographite instance\n      plaintext_protocol = PlaintextProtocol()\n      graphite_conn = await connect(SERVER, PORT, plaintext_protocol, loop=LOOP)\n\n      # Send data\n      timestamp = time.time()\n      for i in range(10):\n        await graphite_conn.send(\"yun_test.aiographite\", i, timestamp + 60 * i)))\n\n\n    def main():\n      LOOP.run_until_complete(test_send_data())\n      LOOP.close()\n\n\n    if __name__ == '__main__':\n      main()\n\n\n----------------------\nDevelopment\n----------------------\n\nRun unit tests.\n\n.. code::\n\n    ./uranium test\n\n\n----------------------\nGraphite setup\n----------------------\n\nDo not have graphite instances ? Set up a graphite instance on your local machine!\n\nPlease refer:\n\n* https://github.com/yunstanford/MyGraphite\n* https://github.com/yunstanford/GraphiteSetup\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzillow%2Faiographite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzillow%2Faiographite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzillow%2Faiographite/lists"}