{"id":19652379,"url":"https://github.com/pingf/myblog","last_synced_at":"2025-07-29T00:32:59.569Z","repository":{"id":22967203,"uuid":"26317118","full_name":"pingf/MyBlog","owner":"pingf","description":null,"archived":false,"fork":false,"pushed_at":"2015-02-14T16:45:50.000Z","size":10268,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-03T20:15:21.106Z","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/pingf.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":"2014-11-07T11:34:00.000Z","updated_at":"2015-02-14T16:45:51.000Z","dependencies_parsed_at":"2022-08-21T17:30:59.707Z","dependency_job_id":null,"html_url":"https://github.com/pingf/MyBlog","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pingf/MyBlog","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pingf%2FMyBlog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pingf%2FMyBlog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pingf%2FMyBlog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pingf%2FMyBlog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pingf","download_url":"https://codeload.github.com/pingf/MyBlog/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pingf%2FMyBlog/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267610345,"owners_count":24115434,"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-07-28T02:00:09.689Z","response_time":68,"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-11T15:10:32.591Z","updated_at":"2025-07-29T00:32:59.534Z","avatar_url":"https://github.com/pingf.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"MyBlog\n=======\n### if you need to run the test directly, you can export PYTHONPATH to this directory first\n### you can use the provided virtualenv for mac to run it\n\n### run db migrate\nin src folder\n``` \npython manage.py db init\n```\n在使用上面的语句后会在env.py中生成\n```\nfrom flask import current_app\nconfig.set_main_option('sqlalchemy.url', current_app.config.get('SQLALCHEMY_DATABASE_URI'))\ntarget_metadata = current_app.extensions['migrate'].db.metadata\n```\n这样会对metadata进行绑定,在之后定义model时继承自db.Model即可动态model的变化\n\n执行`python manage.py db migrate`只会生成alembic_version表,执行`python manage.py db upgrade`才会按照生成的迁移文件进行表的migrate\n\n### integrated test\n对于mac系统,可能要执行`brew install chromedriver`\n\n###pep8 格式验证\n检查`pep8 --first \u003cfilename\u003e`\n详细显示`pep8 --show-source --show-pep8 \u003cfilename\u003e`\n修正`autopep8 --in-place --aggressive --aggressive \u003cfilename\u003e`","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpingf%2Fmyblog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpingf%2Fmyblog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpingf%2Fmyblog/lists"}