{"id":13930132,"url":"https://github.com/dragdev-studios/PostBin","last_synced_at":"2025-07-19T12:31:43.391Z","repository":{"id":46223650,"uuid":"304069388","full_name":"dragdev-studios/PostBin","owner":"dragdev-studios","description":"The git repo for https://pypi.org/project/PostBin/","archived":true,"fork":false,"pushed_at":"2023-06-30T05:22:57.000Z","size":135,"stargazers_count":3,"open_issues_count":2,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-08-08T18:26:29.350Z","etag":null,"topics":["haste","hastebin","paste","pastebin","post","python"],"latest_commit_sha":null,"homepage":"","language":"Python","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/dragdev-studios.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2020-10-14T16:13:55.000Z","updated_at":"2024-06-23T16:22:30.000Z","dependencies_parsed_at":"2024-02-07T14:58:45.551Z","dependency_job_id":"3be62168-45f7-4ed3-ae10-11582e07cb0f","html_url":"https://github.com/dragdev-studios/PostBin","commit_stats":{"total_commits":104,"total_committers":6,"mean_commits":"17.333333333333332","dds":0.5576923076923077,"last_synced_commit":"5ba64cffc3c7ce3a8f40037fcbcf113731194576"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dragdev-studios%2FPostBin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dragdev-studios%2FPostBin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dragdev-studios%2FPostBin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dragdev-studios%2FPostBin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dragdev-studios","download_url":"https://codeload.github.com/dragdev-studios/PostBin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226607596,"owners_count":17658482,"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":["haste","hastebin","paste","pastebin","post","python"],"created_at":"2024-08-07T18:04:49.179Z","updated_at":"2024-11-26T19:30:52.054Z","avatar_url":"https://github.com/dragdev-studios.png","language":"Python","readme":"# PostBin\nA simple package that allows you to post to haste services.\n\n![Python package](https://github.com/dragdev-studios/PostBin/workflows/Python%20package/badge.svg)\n![Version](https://img.shields.io/pypi/v/postbin)\n[![CodeFactor](https://www.codefactor.io/repository/github/dragdev-studios/postbin/badge)](https://www.codefactor.io/repository/github/dragdev-studios/postbin)\n\n## Features:\n* \"fallback\" system, meaning your pastes always succeed\n* async and sync functionality\n* literally instant setup - see [execution](#Execution)\n\n## Why this exists\nThere's no real need for a full-fledged module for simply creating pastes. So, I think a quick 2 function module\ndoes the trick far easier.\n\n*Note: v2 would like to disagree*\n\n## [backwards] Compatibility\nWhile postbin tries to support all versions, nothing is guaranteed.\nSo far, we actively support python 3.6 through to 3.9, however always check the below table and find your version. if its a check mark, it is supported and will work.\n\n1.x:\n\n| Version |     Supported     | EOL |\n| ------- | ----------------- | --- |\n| 3.9     | :white_check_mark:| N/A |\n| 3.8     | :white_check_mark:| N/A |\n| 3.7     | :white_check_mark:| N/A |\n| 3.6     | :white_check_mark:| N/A |\n| 3.5     | :x:               | N/A |\n\n2.0.1a:\n\n| Version |     Supported     | EOL |\n| ------- | ----------------- | --- |\n| 3.9     | :white_check_mark:| N/A |\n| 3.8     | :white_check_mark:| N/A |\n| 3.7     | :white_check_mark:| N/A |\n| 3.6     | :white_check_mark:| N/A |\n| 3.5     | :x:               | N/A |\n\nAlternatively, install through pip (below) - pip releases are always guaranteed to be stable on 3.8-3.9.\n\n## Installing\nfrom pip: \n```shell script\n$ [python3 -m] pip install postbin\n```\nor from git:\n```shell script\n$ [python3 -m] pip install git+https://github.com/dragdev-studios/PostBin.git\n# OR\n$ git clone https://github.com/dragdev-studios/PostBin.git\n$ cd postbin\n$ python[3] setup.py build \u0026\u0026 python[3] setup.py install\n```\n\n## Execution\nfrom within a script:\n```python\nimport postbin\n# Async app\nasync def main():\n    url = await postbin.postAsync(f\"FooBar Bazz\")\n    print(f\"Your paste is located at {url}\")\n\n\n# Sync app\ndef mainSync(): \n    url = postbin.postSync(f\"FooBar Bazz 2\")\n    print(f\"Your paste is located at {url}\")\n```\n\n## Want your haste service to be a fallback?\nMake sure all of the following are true:\n\n1.  `POST /documents` with a text/plain body returns JSON `{\"key\": \"url_part\"}` or `{\"url\": \"new_url\"}`\n2. Ratelimit is greater than or equal to 5/5s\n3. Ratelimit response is JSON (html is only allowed in extreme circumstances, like if cloudflare responds instead.). \n`x-ratelimit-reset-after` response headers can be used in replacement of body if required.\n4. `GET /raw/:key` returns the text/plain content of the key\n5. `HEAD /:key` or `HEAD /:raw/key` or `HEAD /documents[/:key]` returns a 200 response, or other information \nresponse regarding the status of the service, rather than 404 for not found/\n\nIf those are all met, open a PR modifying `_FALLBACKS` to add your site __to the end of the list__.\n","funding_links":[],"categories":["python"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdragdev-studios%2FPostBin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdragdev-studios%2FPostBin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdragdev-studios%2FPostBin/lists"}