{"id":20530879,"url":"https://github.com/jhjaggars/slack-pb","last_synced_at":"2026-04-30T02:38:24.012Z","repository":{"id":66648066,"uuid":"89415284","full_name":"jhjaggars/slack-pb","owner":"jhjaggars","description":"slack-pb is a simple script for pasting contents of files to the slack file upload service.","archived":false,"fork":false,"pushed_at":"2017-04-28T20:32:45.000Z","size":8,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-12T21:54:45.969Z","etag":null,"topics":["cli","python","slack"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jhjaggars.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-04-25T23:15:51.000Z","updated_at":"2017-04-26T12:26:53.000Z","dependencies_parsed_at":"2023-02-22T17:30:12.962Z","dependency_job_id":null,"html_url":"https://github.com/jhjaggars/slack-pb","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jhjaggars/slack-pb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jhjaggars%2Fslack-pb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jhjaggars%2Fslack-pb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jhjaggars%2Fslack-pb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jhjaggars%2Fslack-pb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jhjaggars","download_url":"https://codeload.github.com/jhjaggars/slack-pb/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jhjaggars%2Fslack-pb/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32452743,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T22:27:22.272Z","status":"online","status_checked_at":"2026-04-30T02:00:05.929Z","response_time":57,"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":["cli","python","slack"],"created_at":"2024-11-15T23:41:04.712Z","updated_at":"2026-04-30T02:38:23.996Z","avatar_url":"https://github.com/jhjaggars.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"slack-pb\n========\n\nslack-pb is a simple script for pasting contents of files to the slack file\nupload service.\n\nUsage\n=====\n\nThere are two ways to use the tool:\n\n```\npb.py \u003cfilename\u003e\n```\n\nWill send the contents of `filename` to slack. You can share it with a channel\nor user with the `--channels` option.\n\n```\npb.py \u003cfilename\u003e --channels #my_channel frank\n```\n\nIf you want to use options and place the file at the end of the command you can\ndo that too:\n\n```\npb.py --channels #jokes bob -- \u003cfilename\u003e\n```\n\nThe above will share the upload with `#my_channel` and `frank`\n\nYou can also pipe content in via stdin:\n\n```\ncat my_super_cool_file | pb.py -\n```\n\nConfiguration\n=============\n\nThe script requires a [slack legacy api\nkey](https://api.slack.com/custom-integrations/legacy-tokens). The script\nexpects the key to be stored in `~/.slack-token`.\n\nThe first time you specify a non-channel in the `--channels` option the script\nwill fetch a list of users known to you and cache the results in\n`~/.slack-users.json`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjhjaggars%2Fslack-pb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjhjaggars%2Fslack-pb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjhjaggars%2Fslack-pb/lists"}