{"id":20381599,"url":"https://github.com/douglasmoraisdev/url_regex_validation","last_synced_at":"2026-04-20T07:01:57.317Z","repository":{"id":211454166,"uuid":"249553997","full_name":"douglasmoraisdev/url_regex_validation","owner":"douglasmoraisdev","description":"A microservice for url validation based on regex whitelist. This python microservice receive and validate regex and urls via RabbitMq Queues, and persists on Mysql Databases. A Docker-compose file is used for orquestration.","archived":false,"fork":false,"pushed_at":"2020-03-23T22:56:37.000Z","size":22,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-15T07:38:28.416Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/douglasmoraisdev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2020-03-23T22:02:16.000Z","updated_at":"2020-03-23T22:56:39.000Z","dependencies_parsed_at":"2023-12-08T16:50:53.248Z","dependency_job_id":null,"html_url":"https://github.com/douglasmoraisdev/url_regex_validation","commit_stats":null,"previous_names":["douglasmoraisdev/url_regex_validation"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/douglasmoraisdev%2Furl_regex_validation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/douglasmoraisdev%2Furl_regex_validation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/douglasmoraisdev%2Furl_regex_validation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/douglasmoraisdev%2Furl_regex_validation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/douglasmoraisdev","download_url":"https://codeload.github.com/douglasmoraisdev/url_regex_validation/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241933606,"owners_count":20044743,"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":[],"created_at":"2024-11-15T02:14:27.805Z","updated_at":"2026-04-20T07:01:52.276Z","avatar_url":"https://github.com/douglasmoraisdev.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Url Regex Validator\n\nA microservice for url validation based on regex whitelist. This python microservice receive and validate regex and urls via RabbitMq Queues, and persists on Mysql Databases. A Docker-compose file is used for orquestration.\n\n# Running service\n\n\u003e $ docker-compose up\n\n# Running unit tests\nUsing Docker\n\u003e $ docker exec -it \u003cruning_container_name\u003e python -m unittest\n\nStandalone service\n\u003e $ python -m unittest\n\n# Configuration\n\nUse these files for configuration:\n\nWhen running with docker-compose (default)\n\u003e src/.docker.env\n\nWhen running only the microservice (external Mysql and/or Rabbitmq)\n\u003e src/.env\n\nTo configure automated tests env variables\n\u003e src/tests/.env\n\n# Inserting new regex on Whitelist\nPost this payload on RabbitMQ. Queue: $INSERTION_QUEUE (.env):\n\n```json\n{\"client\": \u003cstring/nullable\u003e, \"regex\": \u003cstring\u003e}\n```\n```client```\nA client name (string), if 'null', will be saved on 'global' whitelist\n\n```regex```\nA url format regex for whitelist\n\n# Validating Urls\nPost this payload on RabbitMQ. Queue: $VALIDATION_QUEUE (.env):\n\n\n```json\n{\"client\": \u003cstring\u003e, \"url\": \u003cstring\u003e, \"correlationId\": \u003cinteger\u003e}\n```\n```client:```\nA client name (string), if 'null', will be match on 'global' whitelist\n\n```url:```\nA url for validation\n\n```correlationId:```\nA UUID for relation queries and responses\n\n# Validating results (Response)\n\nThis payload will be post on RabbitMQ response routing key ($RESPONSE_ROUTING_KEY), when a validating occured.\n\n```json\n{\"match\": \u003cboolean\u003e, \"regex\": \u003cstring/nullable\u003e, \"correlationId\": \u003cinteger\u003e}\n```\n\n```match:```\nResult of whitelist validation: true or false\n\n```regex:```\nThe matched regex. If no match found will be 'null'\n\n```correlationId:```\nThe correlationId origin of validation","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdouglasmoraisdev%2Furl_regex_validation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdouglasmoraisdev%2Furl_regex_validation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdouglasmoraisdev%2Furl_regex_validation/lists"}