{"id":45076662,"url":"https://github.com/ceorleorn/flyvar","last_synced_at":"2026-02-19T13:36:51.525Z","repository":{"id":57431603,"uuid":"268395940","full_name":"ceorleorn/flyvar","owner":"ceorleorn","description":"基于Python实现的便于版本迭代的数据库（开发中)","archived":false,"fork":false,"pushed_at":"2020-06-03T00:41:17.000Z","size":66,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-28T00:18:38.521Z","etag":null,"topics":["database","flyvar","python-library"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/flyvar/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ceorleorn.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":"2020-06-01T01:20:43.000Z","updated_at":"2020-07-08T02:32:47.000Z","dependencies_parsed_at":"2022-08-28T23:02:05.529Z","dependency_job_id":null,"html_url":"https://github.com/ceorleorn/flyvar","commit_stats":null,"previous_names":["snbck/flyvar"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ceorleorn/flyvar","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ceorleorn%2Fflyvar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ceorleorn%2Fflyvar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ceorleorn%2Fflyvar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ceorleorn%2Fflyvar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ceorleorn","download_url":"https://codeload.github.com/ceorleorn/flyvar/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ceorleorn%2Fflyvar/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29615074,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-19T13:04:20.082Z","status":"ssl_error","status_checked_at":"2026-02-19T13:03:33.775Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["database","flyvar","python-library"],"created_at":"2026-02-19T13:36:51.258Z","updated_at":"2026-02-19T13:36:51.514Z","avatar_url":"https://github.com/ceorleorn.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 前言\n#### 你可能厌倦了PyMysql的枯燥，那就看看Flyvar吧.他不臃肿，简易.基于Python3构建\n# 安装\n#### Flyvar的大小可能出乎你的，他的源码只有12K左右。并且没有依赖超过三个需要安装的库.\n#### 在Pip安装\n`pip install flyvar`\n# 服务端\n#### Flyvar与Mysql一样，需要服务端和客户端。需要客户端通过连接服务器来操作数据，当然也可以把服务端放在与客户端在一个主机上！\n## Server类\n```python\nimport flyvar\ndb = flyvar.Server(host='127.0.0.1',port=18012)\n```\n#### Server类是整个服务端的对象，他可以帮助服务端运行和处理事务.可以在赋值时指定运行的端口\n## Server.run()\n```python\nimport flyvar\ndb = flyvar.Server()\ndb.Run()\n```\n#### Server.run()方法将数据库在端口运行，此时会在子目录下创建 \"Flying\"文件夹，利用里面的存储的数据库运行，不过目前是空的.\n## Server.CreateDataBase()\n```python\nimport flyvar\ndb = flyvar.Server(host='127.0.0.1',port=18012)\ndb.CreateDataBase('testdatabase','testuser','password')\n```\n#### 此时可以看到在目录 \"/Flying\"中新建了文件夹testdatabase，文件夹中包括文件\"__init__.flying\"，次=此文件声明了数据库的最最基本信息，但数据库还是空的.\n\n# 客户端\n### Flyvar的客户端很简单，不臃肿\n## Database类\n```python\nimport flyvar\ndatabase = flyvar.Database()\n```\n#### 我们赋值了一个Database对象，让我们用他链接到服务器\n## Database.connect()\n```python\nimport flyvar\ndatabase = flyvar.Database()\ndatabase.connect(\n    host='127.0.0.1',\n    port=18012,\n    name='testdatabase',\n    user='testuser',\n    password='password'\n)\n```\n#### 我们成功连接上了刚刚的服务端，并初始化了Database对象，输出如下:\n```Bash\n[+] Welcome use Flyvar\n[~] Successfully connected\n[+] Downloaded identity certificate:ecc4ba55675b0dd7586171fcea38685ea838b98b64bcbb9b2625bc1be5284bab\n```\n## 问题排查\n```Bash\n[+] Welcome use Flyvar\n[-] Connection failed, please check the network or address\n```\n#### 网络错误，建议检查端口和地址是否正确，或者重复连接\n```Bash\n[+] Welcome use Flyvar\n[~] Successfully connected\n[-] Connection failed, please check the address or databasename\n```\n#### 404，建议检查数据库名是否正确，或者没有在服务端创建\n```Bash\n[+] Welcome use Flyvar\n[~] Successfully connected\n[-] Connection failed, please check the username or password\n```\n#### 权限错误，建议检查用户名和密码\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fceorleorn%2Fflyvar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fceorleorn%2Fflyvar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fceorleorn%2Fflyvar/lists"}