{"id":19898917,"url":"https://github.com/bradleykirton/luno","last_synced_at":"2025-05-02T22:31:37.452Z","repository":{"id":62577141,"uuid":"119271279","full_name":"BradleyKirton/luno","owner":"BradleyKirton","description":"Python library for the Luno crypto currency exchange API ","archived":false,"fork":false,"pushed_at":"2019-01-24T14:18:20.000Z","size":34,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-18T04:14:05.461Z","etag":null,"topics":["async-client","luno","luno-api","pypi","python-library","sync-client"],"latest_commit_sha":null,"homepage":null,"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/BradleyKirton.png","metadata":{"files":{"readme":"README.md","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}},"created_at":"2018-01-28T15:37:57.000Z","updated_at":"2020-03-06T15:39:17.000Z","dependencies_parsed_at":"2022-11-03T19:08:21.868Z","dependency_job_id":null,"html_url":"https://github.com/BradleyKirton/luno","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BradleyKirton%2Fluno","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BradleyKirton%2Fluno/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BradleyKirton%2Fluno/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BradleyKirton%2Fluno/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BradleyKirton","download_url":"https://codeload.github.com/BradleyKirton/luno/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252116353,"owners_count":21697361,"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":["async-client","luno","luno-api","pypi","python-library","sync-client"],"created_at":"2024-11-12T20:06:06.637Z","updated_at":"2025-05-02T22:31:35.010Z","avatar_url":"https://github.com/BradleyKirton.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Luno Python Library\n\nSync and Async Python 3 clients for the Luno API\n\n# Quickstart\n\nThis library includes 2 types of clients, a sync client built using the [requests](https://github.com/requests/requests) library and an async library built with [treq](https://github.com/twisted/treq) and [twisted](https://github.com/twisted/twisted).\n\n## Sync client\n\n```python\nfrom luno.clients.sync import LunoSyncClient\n\napi_key = ''\napi_secret = ''\n\nclient = LunoSyncClient(api_key=api_key, secret=api_secret)\nclient.ticker('XBTZAR')\n```\n\n\n## Async client\n\n```python\nfrom typing import Dict\nfrom twisted.internet import reactor\nfrom luno.clients.asynchronous import LunoAsyncClient\n\napi_key = ''\napi_secret = ''\n\nclient = LunoAsyncClient(api_key=api_key, secret=api_secret)\nd = client.ticker('XBTZAR') # returns a twisted deferred\n\ndef print_data(data: Dict) -\u003e None:\n    \"\"\"prints the json response from an API call\"\"\"\n    print(data)\n        \nd.addCallback(print_data)\n\nreactor.run()\n```\n\n# Installation\n\nThe library can be installed from PyPi as follows.\n\n```bash\npip install luno\n```\n\nThe async client is an optional extra and may be installed as follows.\n\n```bash\npip install luno[async]\n```\n\nTo install the version on this repository follow the steps below.\n\n```bash\ngit clone https://github.com/BradleyKirton/luno\ncd luno\npython -m venv env # virtualenv env\nsource env/bin/activate\npip install . #pip install .[async] for the async client\n```\n\n\n# Developement\n\nClone the repo and install the package with it's development requirements.\n\n```bash\ngit clone https://github.com/BradleyKirton/luno\ncd luno\npython -m venv env # virtualenv env\nsource env/bin/activate\npip install -e .[dev]\npytest\n```\n\n# TODO\n\nNote this library is still in beta.\n\n- Write documentation","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbradleykirton%2Fluno","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbradleykirton%2Fluno","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbradleykirton%2Fluno/lists"}