{"id":13683177,"url":"https://github.com/tducret/revolut-python","last_synced_at":"2025-04-30T12:33:39.243Z","repository":{"id":55123175,"uuid":"140036766","full_name":"tducret/revolut-python","owner":"tducret","description":"Non-official client for the Revolut Bank","archived":true,"fork":false,"pushed_at":"2020-12-17T08:14:11.000Z","size":98,"stargazers_count":104,"open_issues_count":5,"forks_count":25,"subscribers_count":19,"default_branch":"master","last_synced_at":"2025-04-13T15:42:23.113Z","etag":null,"topics":["python3","revolut","revolut-api"],"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/tducret.png","metadata":{"files":{"readme":"README.md","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}},"created_at":"2018-07-06T23:02:32.000Z","updated_at":"2025-04-12T18:40:04.000Z","dependencies_parsed_at":"2022-08-14T12:40:41.038Z","dependency_job_id":null,"html_url":"https://github.com/tducret/revolut-python","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tducret%2Frevolut-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tducret%2Frevolut-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tducret%2Frevolut-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tducret%2Frevolut-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tducret","download_url":"https://codeload.github.com/tducret/revolut-python/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251701846,"owners_count":21629905,"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":["python3","revolut","revolut-api"],"created_at":"2024-08-02T13:02:03.191Z","updated_at":"2025-04-30T12:33:39.012Z","avatar_url":"https://github.com/tducret.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# revolut-python\n\n[![Travis](https://img.shields.io/travis/tducret/revolut-python.svg)](https://travis-ci.org/tducret/revolut-python)\n[![Coveralls github](https://img.shields.io/coveralls/github/tducret/revolut-python.svg)](https://coveralls.io/github/tducret/revolut-python)\n[![PyPI](https://img.shields.io/pypi/v/revolut.svg)](https://pypi.org/project/revolut/)\n![License](https://img.shields.io/github/license/tducret/revolut-python.svg)\n\n# Description\n\nNon-official client for the [Revolut Bank](https://www.revolut.com/)\n\nI wrote a French blog post about it [here](https://www.tducret.com/scraping/2018/08/17/un-robot-d-achat-et-de-vente-de-bitcoins-developpe-en-python.html)\n\n# Requirements\n\n- Python 3\n- pip3\n\n# Installation\n\n```bash\npip3 install -U revolut\n```\n\n## CLI tool : revolut_cli.py\n\n```bash\nUsage: revolut_cli.py [OPTIONS]\n\n  Get the account balances on Revolut\n\nOptions:\n  -d, --device-id TEXT  your Revolut token (or set the env var\n                        REVOLUT_DEVICE_ID)\n\n  -t, --token TEXT      your Revolut token (or set the env var REVOLUT_TOKEN)\n  -l, --language TEXT   language (\"fr\" or \"en\"), for the csv header and\n                        separator\n\n  -a, --account TEXT    account name (ex : \"EUR CURRENT\") to get the balance\n                        for the account\n\n  --version             Show the version and exit.\n  --help                Show this message and exit\n ```\n\n Example output :\n\n ```csv\nAccount name,Balance,Currency\nEUR CURRENT,100.50,EUR\nGBP CURRENT,20.00,GBP\nUSD CURRENT,0.00,USD\nAUD CURRENT,0.00,AUD\nBTC CURRENT,0.00123456,BTC\nEUR SAVINGS (My vault),10.30,EUR\n```\n\nIf you don't have a Revolut token yet, the tool will allow you to obtain one.\n\n⚠️ **If you don't receive a SMS when trying to get a token, you need to logout from the app on your Smartphone.**\n⚠️ **You may also receive an authentication email instead of a SMS. Take note of the link on the `Authenticate` button. It should look like `https://revolut.com/app/email-authenticate/\u003cCODE\u003e?scope=login`. You can enter this code in the CLI.**\n\n## Pulling transactions\n\n```bash\nUsage: revolut_transactions.py [OPTIONS]\n\n  Get the account balances on Revolut\n\nOptions:\n  -d, --device-id TEXT            your Revolut token (or set the env var\n                                  REVOLUT_DEVICE_ID)\n\n  -t, --token TEXT                your Revolut token (or set the env var\n                                  REVOLUT_TOKEN)\n\n  -l, --language [en|fr]          language for the csv header and separator\n  -t, --from_date [%Y-%m-%d]      transactions lookback date in YYYY-MM-DD\n                                  format (ex: \"2019-10-26\"). Default 30 days\n                                  back\n\n  -fmt, --output_format [csv|json]\n                                  output format\n  -r, --reverse                   reverse the order of the transactions\n                                  displayed\n\n  --help                          Show this message and exit.\n```\n\n Example output :\n\n ```csv\nDate-time,Description,Amount,Currency\n08/26/2019 21:31:00,Card Delivery Fee,-59.99,SEK\n09/14/2019 12:50:07,donkey.bike **pending**,0.0,SEK\n09/14/2019 13:03:15,Top-Up by *6458,200.0,SEK\n09/30/2019 16:19:19,Reward user for the invite,200.0,SEK\n10/12/2019 23:51:02,Tiptapp Reservation,-250.0,SEK\n```\n\n## TODO\n\n- [ ] Document revolutbot.py\n- [ ] Create a RaspberryPi Dockerfile for revolutbot (to check if rates grows very often)\n- [ ] Improve coverage for revolutbot\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftducret%2Frevolut-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftducret%2Frevolut-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftducret%2Frevolut-python/lists"}