Package: simpleverse
simpleverseAPI wrapper forversatileapiin PythonInstallpipinstallsimpleverseCLIWorkaround for simpleverse's CLI$ simv -h
usage: simv [-h]
            {create_like,cl,create_user,cu,update_user,uu,get_like,gl,get_image,gi,get_post,gp,get_user,gu,submit_post,sp,submit_image,si,repl,rl}
            ...

Simple command for sending requests to versatileapi

positional arguments:
  {create_like,cl,create_user,cu,update_user,uu,get_like,gl,get_image,gi,get_post,gp,get_user,gu,submit_post,sp,submit_image,si,repl,rl}
    create_like (cl)
    create_user (cu)
    update_user (uu)
    get_like (gl)
    get_image (gi)
    get_post (gp)
    get_user (gu)
    submit_post (sp)
    submit_image (si)
    repl (rl)

optional arguments:
  -h, --help            show this help message and exit

$ simv cu -n eggplants -d "https://github.com/eggplants/simpleverseを書きました。"
b6e4ae19fc2c59ce55c726de44a40dc825faa04d

$ simv gu -u b6e4ae19fc2c59ce55c726de44a40dc825faa04d
{
    'id': 'b6e4ae19fc2c59ce55c726de44a40dc825faa04d',
    '_created_at': '2021-09-19T04:35:11.765+00:00',
    '_updated_at': '2021-09-19T04:35:11.765+00:00',
    '_user_id': 'b6e4ae19fc2c59ce55c726de44a40dc825faa04d',
    'description': 'https://github.com/eggplants/simpleverseを書きました。',
    'name': 'eggplants'
}

$ simv sp "コレはテストです"
00210022-a452-4be7-a873-d369b1bf8d70

$ simv gp -p 00210022-a452-4be7-a873-d369b1bf8d70
{
    'id': '00210022-a452-4be7-a873-d369b1bf8d70',
    '_created_at': '2021-09-19T04:45:42.017+00:00',
    '_updated_at': '2021-09-19T04:45:42.017+00:00',
    '_user_id': 'b6e4ae19fc2c59ce55c726de44a40dc825faa04d',
    'text': 'コレはテストです'
}

$ simv uu -n eggplants -d "こんにちは。https://github.com/eggplants/simpleverseを書きました。"
b6e4ae19fc2c59ce55c726de44a40dc825faa04d

$ simv gu -u b6e4ae19fc2c59ce55c726de44a40dc825faa04d
{
    'id': 'b6e4ae19fc2c59ce55c726de44a40dc825faa04d',
    '_created_at': '2021-09-19T04:35:11.765+00:00',
    '_updated_at': '2021-09-19T04:46:53.659+00:00',
    '_user_id': 'b6e4ae19fc2c59ce55c726de44a40dc825faa04d',
    'description': 'こんにちは。https://github.com/eggplants/simpleverseを書きました。',
    'name': 'eggplants'
}

# All posts by a specific user
$ simv gp | jq '.[]|select(._user_id=="b6e4ae19fc2c59ce55c726de44a40dc825faa04d")'
{
  "_created_at": "2021-09-18T18:50:33.316+00:00",
  "_updated_at": "2021-09-18T18:50:33.316+00:00",
  "_user_id": "b6e4ae19fc2c59ce55c726de44a40dc825faa04d",
  "id": "12d7d6c5-1412-4299-9fe0-4e11c5261aab",
  "text": "test"
}
{
  "_created_at": "2021-09-19T04:10:35.054+00:00",
  "_updated_at": "2021-09-19T04:10:35.054+00:00",
  "_user_id": "b6e4ae19fc2c59ce55c726de44a40dc825faa04d",
  "id": "81dd0981-de48-47b6-bb81-2bc33579d0d1",
  "text": "hello woooooooold!"
}
{
  "_created_at": "2021-09-19T04:14:44.837+00:00",
  "_updated_at": "2021-09-19T04:14:44.837+00:00",
  "_user_id": "b6e4ae19fc2c59ce55c726de44a40dc825faa04d",
  "id": "b281751f-03a9-47b0-ace1-2dc1be620a2a",
  "text": "hello woooooooold!\n(this post submitted by https://git.io/JzmhD)"
}
{
  "_created_at": "2021-09-19T04:39:57.808+00:00",
  "_updated_at": "2021-09-19T04:39:57.808+00:00",
  "_user_id": "b6e4ae19fc2c59ce55c726de44a40dc825faa04d",
  "id": "d2f875a4-540e-4332-ae4e-5ac80d435449",
  "text": "a"
}
{
  "_created_at": "2021-09-19T04:45:42.017+00:00",
  "_updated_at": "2021-09-19T04:45:42.017+00:00",
  "_user_id": "b6e4ae19fc2c59ce55c726de44a40dc825faa04d",
  "id": "00210022-a452-4be7-a873-d369b1bf8d70",
  "text": "コレはテストです"
}LibraryClasses and its methods of simpleversefromsimpleverseimport(CreateLike,CreateUser,GetImageInfo,GetLikeInfo,GetPostInfo,GetUserInfo,SubmitImage,SubmitPost,)classCreateLike(BaseVerseRequests):defcreate_like(self,post_id:str,like_count:int)->str:...classCreateUser(BaseVerseRequests):defcreate_user(self,name:str,description:str)->str:...defupdate_user(self,name:str,description:str)->str:...classGetImageInfo(BaseVerseRequests):defget_image_all(self)->List[ImageInfo]:...defget_image(self,image_id:str)->ImageInfo:...defget_image_OData(self,filter_:Optional[str]=...,order_by:Optional[str]=...,limit:Optional[int]=...,skip:Optional[int]=...,)->List[ImageInfo]:...classGetLikeInfo(BaseVerseRequests):defget_like_all(self)->List[LikeInfo]:...defget_like(self,post_id:str)->LikeInfo:...defget_like_OData(self,filter_:Optional[str]=...,order_by:Optional[str]=...,limit:Optional[int]=...,skip:Optional[int]=...,)->List[LikeInfo]:...classGetPostInfo(BaseVerseRequests):defget_post_all(self)->List[PostInfo]:...defget_post(self,post_id:str)->PostInfo:...defget_post_OData(self,filter_:Optional[str]=...,order_by:Optional[str]=...,limit:Optional[int]=...,skip:Optional[int]=...,)->List[PostInfo]:...classGetUserInfo(BaseVerseRequests):defget_user_all(self)->List[UserInfo]:...defget_user(self,user_id:str)->UserInfo:...defget_user_OData(self,filter_:Optional[str]=...,order_by:Optional[str]=...,limit:Optional[int]=...,skip:Optional[int]=...,)->List[UserInfo]:...classSubmitImage(BaseVerseRequests):defsubmit_image(self,image_data:str,post_id:str)->str:...classSubmitPost(BaseVerseRequests):defsubmit_post(self,text:str,rep_user_id:Optional[str]=...,rep_post_id:Optional[str]=...,test:bool=...,)->str:...LinksDocsHawkClaws/versatileapiAPI generatorエンジニア・プログラマにしか使えない SNS を作ってみた話Author's articleSwaggerVersatileapi's schema in SwaggerWebUI Clients (deploying somewhare)chamegashi/Engineer_SNS_Test_SiteRepo:https://github.com/chamegashi/Engineer_SNS_Test_Sitedala00/engineer-sns-clientRepo:https://github.com/dala00/engineer-sns-clienthir0o/sns-for-engineerRepo:https://github.com/hir0o/sns-for-engineerlightwill/snsPosts of spesific user:https://lightwill.tokyo/dev/sns/?selectUserId={userid}nison/json-sns-viewerRepo:https://github.com/nison-okrock/json-sns-viewermehm8128/twitter-for-engineerRepo:https://github.com/mehm8128/twitter-for-engineerstandard-software/programmer-only-snsRepo:https://github.com/standard-software/programmer-only-snsvoidproc/engineer-sns-clientRepo:https://github.com/voidproc/engineer-sns-clientyosket/engineer-snsRepo:https://github.com/yosket/engineer-snsArticle:『エンジニア・プログラマにしか使えない SNS を作ってみた話』のクライアントを作ってみた話CUI Clientsdaiji-tsutsui/BeelzebubRubyelderica/esnsRacketjavaboy-github/only-programer-sns-clientGolangnyanpyou106/versatileapisns_clientPythonLicenseMIT