{"id":21147589,"url":"https://github.com/bbxytl/python-chat","last_synced_at":"2025-10-31T10:13:08.118Z","repository":{"id":34238364,"uuid":"38105904","full_name":"bbxytl/python-chat","owner":"bbxytl","description":"使用python编写的简单聊天程序，主要是练习协议的制定以及网络编程等","archived":false,"fork":false,"pushed_at":"2015-06-30T07:45:59.000Z","size":152,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-13T10:49:43.525Z","etag":null,"topics":["python","python-chat"],"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/bbxytl.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}},"created_at":"2015-06-26T10:43:19.000Z","updated_at":"2020-01-08T11:34:51.000Z","dependencies_parsed_at":"2022-09-12T19:03:39.343Z","dependency_job_id":null,"html_url":"https://github.com/bbxytl/python-chat","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bbxytl/python-chat","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bbxytl%2Fpython-chat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bbxytl%2Fpython-chat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bbxytl%2Fpython-chat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bbxytl%2Fpython-chat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bbxytl","download_url":"https://codeload.github.com/bbxytl/python-chat/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bbxytl%2Fpython-chat/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268655010,"owners_count":24285127,"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-08-04T02:00:09.867Z","response_time":79,"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":["python","python-chat"],"created_at":"2024-11-20T09:17:24.035Z","updated_at":"2025-10-31T10:13:08.036Z","avatar_url":"https://github.com/bbxytl.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# python-chat\n使用python编写的简单聊天程序，主要是练习协议的制定以及网络编程等\n\n## 运行\n- 首先运行服务器：\n\n```python\npython server.py\n```\n\n- 然后是客户端，参数为两个 [userId] [userPassWord]\n\n```python\npython client.py 11 123456\n```\n\n- 首次运行密码可以随意输入，然后进入交互注册环节。\n- 客户端可向服务器发送指令以让服务器运行；\n- 客户端与客户端之间进行文本聊天。\n\n## 支持的命令参照：\n新用户默认拥有的命令使用 `*` 号标识！\n- `/names`  :  `*` 显示所有注册的用户id和用户名\n- `/online`\t:  `*` 显示目前在线的用户id和用户名\n- `/rename [newUserName]` :  `*` 客户端改名（用户名）\n- `/mdpwd [oldPassWord] [newPassWord]` \t:  `*` 修改密码\n- `/quit`   :  `*` 客户端退出\n- `/chat [UserId]` :  `*` 和指定用户聊天\n- `/friends` :  `*` 当前用户的好友列表\n- `/addfriend [userId]`:  `*` 添加好友\n- `/delfriend [userId]`:  `*` 删除好友\n- `/updateuser [fileName]`\t: 更新用户数据文件,fileName 为可选项，如果有，则表示将目前的用户数据先存档到 fileName ,在从原来的数据文件载入数据，主要用于直接手动更改 users.dat 后加载，否则手动更改会无效。\n- `/getcmds` ：  `*` 获取当前用户所支持的所有命令列表 `全命令名 | 命令别名 ： 命令编号`，服务器拥有全部命令\n- `/addcmd [userId] [newCmdNo]` ： 给用户添加命令，使用命令编号\n- `/delcmd [userId] [cmdNo]` : 取消某用户的命令权限，使用命令编号 \n- 命令的别名：\n\t- `/names` --\u003e `/n`\t\n\t- `/online` --\u003e `/o`\n\t- `/rename` --\u003e \t`/r`\n\t- `/mdpwd` --\u003e `/m`\n\t- `/quit` --\u003e `/q`\n\t- `/chat` --\u003e `/c`\n\t- `/friends` --\u003e `/f`\n\t- `/addfriend` --\u003e `/af`\n\t- `/delfriend` --\u003e `/df`\n\t- `/getcmds` --\u003e `/upuser`\n\t- `/addcmd` --\u003e `/ac`\n\t- `/delcmd`  --\u003e `/dc`\n\n\n---","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbbxytl%2Fpython-chat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbbxytl%2Fpython-chat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbbxytl%2Fpython-chat/lists"}