{"id":18525668,"url":"https://github.com/a-know/pi","last_synced_at":"2025-04-09T12:31:20.892Z","repository":{"id":34672214,"uuid":"170957424","full_name":"a-know/pi","owner":"a-know","description":"Official CLI tool for Pixela","archived":true,"fork":false,"pushed_at":"2023-01-08T12:39:20.000Z","size":3834,"stargazers_count":39,"open_issues_count":1,"forks_count":6,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-02T04:49:54.337Z","etag":null,"topics":["golang","pixela"],"latest_commit_sha":null,"homepage":"https://pixe.la","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/a-know.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"patreon":"pixe_la"}},"created_at":"2019-02-16T03:17:02.000Z","updated_at":"2025-02-05T01:37:28.000Z","dependencies_parsed_at":"2023-01-15T08:28:49.527Z","dependency_job_id":null,"html_url":"https://github.com/a-know/pi","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a-know%2Fpi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a-know%2Fpi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a-know%2Fpi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a-know%2Fpi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/a-know","download_url":"https://codeload.github.com/a-know/pi/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248040259,"owners_count":21037838,"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","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":["golang","pixela"],"created_at":"2024-11-06T17:46:41.432Z","updated_at":"2025-04-09T12:31:15.881Z","avatar_url":"https://github.com/a-know.png","language":"Go","readme":"# pi [pí]\n[![Travis Build Status](https://travis-ci.org/a-know/pi.svg?branch=master)][travis]\n[![pixela][pixela-badge]][pixela]\n\n[travis]: https://travis-ci.org/a-know/pi\n[pixela-badge]: https://pixe.la/v1/users/pi/graphs/ci-count.svg?mode=badge\n[pixela]: https://pixe.la/v1/users/pi/graphs/ci-count.html\n\n## Description\n\n`pi` (`[pí]`) is a CLI tool for Pixela ([pixe.la](https://pixe.la/))\n\n\n![](https://user-images.githubusercontent.com/1097533/53243207-84d04680-36ea-11e9-8465-f73d62b4b502.png)\n\n\n## Installation\n\n    % go install github.com/a-know/pi/cmd/pi@latest\n\nOR\n\n    % brew install a-know/tap/pi\n\nAnd, there is explanation blog entry; [\"草APIサービス\" Pixela のコマンドラインツールを作ったので、OSごとのインストール・使い方を書きます！](https://blog.a-know.me/entry/2019/02/24/214142) (in Japanese)\n\n## Synopsis\n\n    % pi users create --username a-know --token thisissecret --agree-terms-of-service yes --not-minor yes\n    % export PIXELA_USER_TOKEN=thisissecret\n    % export PIXELA_USER_NAME=a-know\n    % pi graphs create -g my-first-graph -n \"My first graph\" -i commits -t int -c shibafu -z \"Asia/Tokyo\" -s none\n    % pi pixel post -g my-first-graph -d 20190101 -q 5 -o \"{\\\"key\\\":\\\"value\\\"}\"\n    % pi graphs svg -g my-first-graph | xargs open\n\n## Available commands\n\n```sh\n  graphs    operate Graphs\n  pixel     operate Pixel in Graph\n  users     operate Users\n  version   display version\n  webhooks  operate Webhooks\n```\n\n### Subcommands\n#### `users`\n```\n  create  create User\n  delete  delete User\n  update  update User Token\n```\n\n\n#### `graphs`\n```\n  create  create Graph\n  delete  delete Graph\n  detail  get Graph detail URL\n  get     get Graph Definitions\n  pixels  get Graph Pixels\n  svg     get SVG Graph URL\n  update  update Graph Definition\n  stats   get Graph stats\n```\n\n\n#### `pixel`\n```\n  decrement  decrement a Pixel\n  delete     delete a Pixel\n  get        get a Pixel\n  increment  increment a Pixel\n  post       post a Pixel\n  update     update a Pixel\n```\n\n#### `webhooks`\n```\n  create  create a Webhook\n  delete  delete a Webhook\n  get     get registered Webhooks\n  invoke  invoke Webhook\n```\n\n\n## Options\nPlease see the running result each subcommands with `-h`.\n\n\n## CI running count\n\n[![CI running count](https://pixe.la/v1/users/pi/graphs/ci-count)][ci-count]\n\n[ci-count]: https://pixe.la/v1/users/pi/graphs/ci-count.html\n\n## References\n\n[Pixela API Document](https://docs.pixe.la/)\n\n## Author\n\n[a-know](https://github.com/a-know)\n","funding_links":["https://patreon.com/pixe_la"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fa-know%2Fpi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fa-know%2Fpi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fa-know%2Fpi/lists"}