{"id":20134996,"url":"https://github.com/safe-global/safe-decoder-service","last_synced_at":"2025-09-21T05:32:26.093Z","repository":{"id":262621275,"uuid":"879682248","full_name":"safe-global/safe-decoder-service","owner":"safe-global","description":"Decodes transaction data providing a human readable output","archived":false,"fork":false,"pushed_at":"2025-08-20T11:23:14.000Z","size":274,"stargazers_count":10,"open_issues_count":3,"forks_count":6,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-08-20T13:12:02.661Z","etag":null,"topics":[],"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/safe-global.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-10-28T11:12:49.000Z","updated_at":"2025-08-20T11:22:27.000Z","dependencies_parsed_at":"2024-11-13T12:27:01.323Z","dependency_job_id":"a33e651b-4bf3-43e4-9002-821c1b3553b7","html_url":"https://github.com/safe-global/safe-decoder-service","commit_stats":null,"previous_names":["safe-global/safe-decoder-service"],"tags_count":15,"template":false,"template_full_name":null,"purl":"pkg:github/safe-global/safe-decoder-service","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/safe-global%2Fsafe-decoder-service","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/safe-global%2Fsafe-decoder-service/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/safe-global%2Fsafe-decoder-service/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/safe-global%2Fsafe-decoder-service/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/safe-global","download_url":"https://codeload.github.com/safe-global/safe-decoder-service/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/safe-global%2Fsafe-decoder-service/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276195633,"owners_count":25601152,"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-21T02:00:07.055Z","response_time":72,"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":[],"created_at":"2024-11-13T21:13:05.196Z","updated_at":"2025-09-21T05:32:26.087Z","avatar_url":"https://github.com/safe-global.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Python CI](https://github.com/safe-global/safe-decoder-service/actions/workflows/ci.yml/badge.svg)](https://github.com/safe-global/safe-decoder-service/actions/workflows/ci.yml)\n[![Coverage Status](https://coveralls.io/repos/github/safe-global/safe-decoder-service/badge.svg?branch=main)](https://coveralls.io/github/safe-global/safe-decoder-service?branch=main)\n[![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit\u0026logoColor=white)](https://github.com/pre-commit/pre-commit)\n![Python 3.13](https://img.shields.io/badge/Python-3.13-blue.svg)\n[![Docker Image Version (latest semver)](https://img.shields.io/docker/v/safeglobal/safe-decoder-service?label=Docker\u0026sort=semver)](https://hub.docker.com/r/safeglobal/safe-decoder-service)\n\n\n# Safe Decoder Service\nDecodes transaction data providing a human-readable output.\n\n## Configuration\n```bash\ncp .env.sample .env\n```\n\n## Execution\n\n```bash\ndocker compose build\ndocker compose up\n```\n\nThen go to http://localhost:8000 to see the service documentation.\n\n## Setup for development\nUse a virtualenv if possible:\n\n```bash\npython -m venv venv\n```\n\nThen enter the virtualenv and install the dependencies:\n\n```bash\nsource venv/bin/activate\npip install -r requirements.txt\npre-commit install -f\ncp .env.sample .env\n```\n### Handle migrations\nThis projects is using [Alembic](https://alembic.sqlalchemy.org/en/latest/) to manage database migrations.\nTo create a new migration based on changes made to the model code, run the following command:\n\n```bash\nalembic revision --autogenerate -m \"MIGRATION TITLE\"\n```\n\n### Querying the database via Python Shell in Docker\nTo open an interactive Python shell within a Docker container and query the database, use the following command:\n```\n docker exec -it safe-decoder-service-web-1 python -m IPython -i ./scripts/db_profile.py\n```\nExample usage:\n```python\ncontracts = await Contract.get_all()\ncontracts[0].address\nb'J\\xdb\\xaa\\xc7\\xbc#\\x9e%\\x19\\xcb\\xfd#\\x97\\xe0\\xf7Z\\x1d\\xe3U\\xc8'\n```\nCall `await restore_session()` to reopen a new session.\n\n## Contributors\n[See contributors](https://github.com/safe-global/safe-decoder-service/graphs/contributors)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsafe-global%2Fsafe-decoder-service","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsafe-global%2Fsafe-decoder-service","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsafe-global%2Fsafe-decoder-service/lists"}