{"id":16725302,"url":"https://github.com/veerendra2/port-dictionaries","last_synced_at":"2025-09-09T06:41:18.085Z","repository":{"id":102105366,"uuid":"50192231","full_name":"veerendra2/port-dictionaries","owner":"veerendra2","description":"Python dictionaries for HTTP status codes, FTP return codes and TCP ports, etc","archived":false,"fork":false,"pushed_at":"2019-07-01T11:05:56.000Z","size":55,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-21T07:31:37.967Z","etag":null,"topics":["ftp-return-codes","http-status-codes","python","tcp-ports"],"latest_commit_sha":null,"homepage":"","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/veerendra2.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-01-22T16:15:16.000Z","updated_at":"2020-06-02T23:26:03.000Z","dependencies_parsed_at":null,"dependency_job_id":"1acb867f-0916-473a-b52d-7110ffefe737","html_url":"https://github.com/veerendra2/port-dictionaries","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/veerendra2/port-dictionaries","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/veerendra2%2Fport-dictionaries","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/veerendra2%2Fport-dictionaries/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/veerendra2%2Fport-dictionaries/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/veerendra2%2Fport-dictionaries/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/veerendra2","download_url":"https://codeload.github.com/veerendra2/port-dictionaries/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/veerendra2%2Fport-dictionaries/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274255008,"owners_count":25250552,"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":["ftp-return-codes","http-status-codes","python","tcp-ports"],"created_at":"2024-10-12T22:48:45.959Z","updated_at":"2025-09-09T06:41:18.049Z","avatar_url":"https://github.com/veerendra2.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"![GitHub stars](https://img.shields.io/github/stars/veerendra2/dictionaries.svg?style=for-the-badge)\n![GitHub forks](https://img.shields.io/github/forks/veerendra2/dictionaries.svg?style=for-the-badge)\n# Python Dictionaries\nSimple python dictionaries for HTTP, FTP return codes and TCP ports, etc. Usefull when code throws number(HTTP return code), instead of diplaying return code number like `404`, show message what it means. \n\nIn same way, when we are doing some networking stuff in python like collecting network connections, with help of `TCPPorts.py` we can identify destination service in it. For example, we have collected network connections(with tools like `conntrack`),the current machine made connection to another machine with destination port `80` which means a web server. Some we can guess like `80`,`8080` and some we dont know, with `TCPPorts.py` we can display the service name instead of port number.\n\n#### Example code snippet\n```\nimport requests\n#Local Imports\nimport HTTPStatusCodes\n\nheaders = {'content-type': 'application/json'}\nurl=\"http://www.google.com\" #Example URL\ndata={\"data\":\"Your Data\"}\nresponse = requests.post(url, data=data,headers=headers)\nprint response\nif response.status_code in HTTPStatusCodes.codes:\n   print HTTPStatusCodes.codes[response.status_code][0]\n   print \"Description\",HTTPStatusCodes.codes[response.status_code][1]\n```\n\n* Collected TCP port from [http://www.iana.org](http://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xhtml)\n* Collected HTTP status codes from [wikipedia](https://en.wikipedia.org/wiki/List_of_HTTP_status_codes)\n* Collected FTP returned codes from [wikipedia](https://en.wikipedia.org/wiki/List_of_FTP_server_return_codes)\n* Collected TCP connections states from [kernel.org](http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/include/net/tcp_states.h?id=HEAD)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fveerendra2%2Fport-dictionaries","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fveerendra2%2Fport-dictionaries","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fveerendra2%2Fport-dictionaries/lists"}