{"id":19094344,"url":"https://github.com/jmhayes3/pmaw","last_synced_at":"2025-09-09T04:36:45.348Z","repository":{"id":44804189,"uuid":"432846732","full_name":"jmhayes3/PMAW","owner":"jmhayes3","description":"Python Messari API Wrapper (PMAW) is a Python package that enables simple access to the Messari API.","archived":true,"fork":false,"pushed_at":"2023-07-08T04:49:13.000Z","size":269,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-25T07:03:06.047Z","etag":null,"topics":["api","blockchain","cryptocurrency","messari","python","python-requests"],"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/jmhayes3.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2021-11-28T23:08:59.000Z","updated_at":"2025-01-21T21:59:10.000Z","dependencies_parsed_at":"2024-11-09T03:28:58.947Z","dependency_job_id":null,"html_url":"https://github.com/jmhayes3/PMAW","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jmhayes3/PMAW","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmhayes3%2FPMAW","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmhayes3%2FPMAW/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmhayes3%2FPMAW/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmhayes3%2FPMAW/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jmhayes3","download_url":"https://codeload.github.com/jmhayes3/PMAW/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmhayes3%2FPMAW/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274244036,"owners_count":25248156,"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-09-09T02:00:10.223Z","response_time":80,"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":["api","blockchain","cryptocurrency","messari","python","python-requests"],"created_at":"2024-11-09T03:28:39.318Z","updated_at":"2025-09-09T04:36:45.289Z","avatar_url":"https://github.com/jmhayes3.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Python Messari API Wrapper (PMAW)\n\n[![build](https://github.com/jmhayes3/pmaw/actions/workflows/ci.yml/badge.svg)](https://github.com/jmhayes3/pmaw/actions/workflows/ci.yml)\n\nPMAW is a Python package that allows for simple access to the [Messari](https://messari.io) API.\nPMAW aims to be robust and easy to use while respecting [Messari's API rules](https://messari.io/api/docs).\n\n## Installation\n```sh\npip install git+https://github.com/jmhayes3/pmaw.git\n```\n\n## Usage\nTo get started, create an instance of the ``Messari`` class:\n```python\nfrom pmaw import Messari\n\nmessari = Messari()\n```\n\nTo authenticate using an API key, pass the key in like so:\n```python\nmessari = Messari(api_key=\"\u003cyour-api-key\u003e\")\n```\n\nOr, set the ``X_MESSARI_API_KEY`` environmental variable:\n```sh\nexport X_MESSARI_API_KEY=\u003cyour-api-key\u003e\n```\n\nUsing the ``messari`` instance you can then interact with the API:\n```python\n# Get the top 10 assets by market cap.\nfor asset in messari.assets.top(limit=10):\n  print(asset.name)\n\n# Markets\nfor market in messari.markets(limit=5):\n  print(market.exchange_name, market.pair)\n\n# Time Series\n\n# News\nnews = messari.news(limit=10)\nfor n in news:\n  print(n.title)\n```\n\nTo check which attributes are available for an object use the ``vars`` function:\n```python\nasset = messari.asset(\"eth\")\nvars(asset)\n```\n\n## Rate Limits\nPMAW handles rate limiting automatically, eliminating the need to introduce sleep calls into code.\n\nBy default, the rate limit is set to 20 requests per minute (the limit enforced by the API for unauthenticated users).\nIf an API key is provided, the rate limit is increased to 30 requests per minute.\nA custom rate limit can be set using the ``target_rate`` keyword argument when initializing the ``Messari`` class. \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjmhayes3%2Fpmaw","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjmhayes3%2Fpmaw","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjmhayes3%2Fpmaw/lists"}