{"id":20521066,"url":"https://github.com/owlinux1000/kproject","last_synced_at":"2026-04-21T13:33:06.364Z","repository":{"id":144322039,"uuid":"109915728","full_name":"owlinux1000/kproject","owner":"owlinux1000","description":null,"archived":false,"fork":false,"pushed_at":"2017-11-08T03:06:11.000Z","size":29,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-06T00:26:34.951Z","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/owlinux1000.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":"2017-11-08T02:12:35.000Z","updated_at":"2017-11-08T04:06:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"812dc60d-6741-4c7e-bbd8-a42833f6666b","html_url":"https://github.com/owlinux1000/kproject","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/owlinux1000/kproject","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/owlinux1000%2Fkproject","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/owlinux1000%2Fkproject/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/owlinux1000%2Fkproject/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/owlinux1000%2Fkproject/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/owlinux1000","download_url":"https://codeload.github.com/owlinux1000/kproject/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/owlinux1000%2Fkproject/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32094499,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-21T11:25:29.218Z","status":"ssl_error","status_checked_at":"2026-04-21T11:25:28.499Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":[],"created_at":"2024-11-15T22:25:46.426Z","updated_at":"2026-04-21T13:33:06.349Z","avatar_url":"https://github.com/owlinux1000.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Kproject\n\nkproject is initializing tool to clean repo and to wirte experiment code quickly.\n\n## Tutorial\n\nFirst, you use ```new``` command of kproject and create new some directories and files such.\n\n```\n$ kproject new mnist\n$ cd mnist; ls -R\nREADME.md     dataset       kproject.json model         result        src\n\n./dataset:\n\n./model:\n\n./result:\n\n./src:\nlib     main.py\n\n./src/lib:\nargs.py\n```\n\nHere is recommend usage of these directories.\n\n|name|recommend way to use|\n|:--:|:--:|\n|dataset|Save some dataset you use.|\n|models|Save your models here.|\n|results|Save your experiment results.|\n|src|Save your codes.|\n|src/lib|Save your codes of library.|\n\nHere is description some files created automatically.\n\n|name|description|\n|:---:|:---:|\n|README.md|You should know.|\n|kproject.json|Automatically use with ```run``` command|\n|src/main.py|You should write main codes here.|\n|src/lib/args.py|This file says code of argument parser.|\n\nNext, you use ```run``` command.\n\n```\n$ kproject run\n[ INFO ] Run in `kproject.json`\n```\n\nAutomatically run ```src/main.py``` with configuration of ```kproject.json```. Now, you implicitly used ```kprojec.json```, so let's see more in detail. Here is content of initial ```krpoject.json```. \n\n```\n{\n    \"experiments\": [\n        {\n            \"cmd\": \"./src/main.py\",\n            \"exec?\": true,\n\t    \"args\": {\n\t    \n\t    }\n\t}\n    ]\n}\t\n```\n\nIf you added command line argument and use the argument, you should set value of ```args```.\n\n## Useful kproject library\n\nkproject has some useful library. Here is useful library I think.\n\n### About argument parser\n\nAlready template argument parser has implemented by ```argparse``` in ```src/lib/args.py```. So you can easy to add some options. Then this file defined ```CONFIG```.\n\n```\nfrom lib.args import CONFIG\nprint(CONFIG['title'])\n```\n\n### About logging\n\nSome logging class has already defined.\n\n```\nfrom kproject.log import MDLog\nfrom kproject.utils import *\nlog = MDLog(\"experiment1\") #=\u003e create /result/experiment1.md\nlog.start()\nlog.info(\"some information\")\nlog.info(h2(\"experiment 1-1\")) #=\u003e ## experiment 1-1\nlog.finish()\n```\n\n## Install\n\n```\n$ pip install git+https://github.com/owlinux1000/kproject\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fowlinux1000%2Fkproject","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fowlinux1000%2Fkproject","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fowlinux1000%2Fkproject/lists"}