Name | mystbin-py JSON |
Version |
7.1.1
JSON |
| download |
home_page | None |
Summary | A small simple wrapper around the mystb.in API. |
upload_time | 2024-12-28 23:50:51 |
maintainer | None |
docs_url | None |
author | None |
requires_python | <4.0,>=3.8 |
license | Copyright 2020-Present PythonistaGuild
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
keywords |
mystbin
paste
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
<div align="center">
<h1>Mystbin.py!</h1>
<a href='https://mystbinpy.readthedocs.io/en/latest/?badge=latest'>
<img src='https://readthedocs.org/projects/mystbinpy/badge/?version=latest' alt='Documentation Status' />
</a>
<a href='https://github.com/PythonistaGuild/mystbin.py/actions/workflows/coverage_and_lint.yaml'>
<img src='https://github.com/PythonistaGuild/mystbin.py/workflows/Type%20Coverage%20and%20Linting/badge.svg?branch=main' alt='Linting status' />
</a>
<a href='https://github.com/PythonistaGuild/mystbin.py/actions/workflows/build.yaml'>
<img src='https://github.com/PythonistaGuild/mystbin.py/workflows/Build/badge.svg' alt='Build status' />
</a>
</div>
<br>
A small simple wrapper around the [Mystb.in](https://mystb.in/) API. API docs can be found [here](https://mystb.in/api/documentation).
Documentation for this wrapper can be found [here](https://mystbinpy.readthedocs.io/en/stable/).
If you want the docs for the `main` branch, those can be found [here](https://mystbinpy.readthedocs.io/en/latest/).
----------
### Features
- [x] - Creating pastes.
- [x] - Deleting pastes.
- [x] - Getting pastes.
- [ ] - Sync client.
- This one will take some time as I have no motivation to do it, but PRs are welcome if others want to do it.
### Installation
This project will be on [PyPI](https://pypi.org/project/mystbin.py/) as a stable release, you can always find that there.
Installing via `pip`:
```shell
python -m pip install -U mystbin.py
```
Installing from source:
```shell
python -m pip install git+https://github.com/PythonistaGuild/mystbin.py.git
```
### Usage examples
```py
# async example - it will default to async
import mystbin
client = mystbin.Client()
file = mystbin.File(filename="File1.txt", content="Hello there!")
file2 = mystbin.File(filename="test.py", content="print('hello!')")
paste = await client.create_paste(files=[file, file2])
str(paste)
>>> 'https://mystb.in/<your generated ID>'
get_paste = await client.get_paste("<your generated ID>")
get_paste.files[0].content
>>> "Hello there!"
get_paste.created_at
>>> datetime.datetime(2020, 10, 6, 10, 53, 57, 556741)
```
If you have any question please feel free to join the Pythonista Discord server:
<div align="left">
<a href="https://discord.gg/RAKc3HF">
<img src="https://discordapp.com/api/guilds/490948346773635102/widget.png?style=banner2" alt="Discord Server"/>
</a>
</div>
Raw data
{
"_id": null,
"home_page": null,
"name": "mystbin-py",
"maintainer": null,
"docs_url": null,
"requires_python": "<4.0,>=3.8",
"maintainer_email": null,
"keywords": "mystbin, paste",
"author": null,
"author_email": "=?utf-8?q?Alex_N=C3=B8rgaard?= <umbra@abstractumbra.dev>",
"download_url": "https://files.pythonhosted.org/packages/ac/52/94c40ea0348fa4f2f44dbaee75130674108b05206841dfbfa1adc05e2fbe/mystbin_py-7.1.1.tar.gz",
"platform": null,
"description": "<div align=\"center\">\n <h1>Mystbin.py!</h1>\n <a href='https://mystbinpy.readthedocs.io/en/latest/?badge=latest'>\n <img src='https://readthedocs.org/projects/mystbinpy/badge/?version=latest' alt='Documentation Status' />\n </a>\n <a href='https://github.com/PythonistaGuild/mystbin.py/actions/workflows/coverage_and_lint.yaml'>\n <img src='https://github.com/PythonistaGuild/mystbin.py/workflows/Type%20Coverage%20and%20Linting/badge.svg?branch=main' alt='Linting status' />\n </a>\n <a href='https://github.com/PythonistaGuild/mystbin.py/actions/workflows/build.yaml'>\n <img src='https://github.com/PythonistaGuild/mystbin.py/workflows/Build/badge.svg' alt='Build status' />\n </a>\n</div>\n<br>\n\nA small simple wrapper around the [Mystb.in](https://mystb.in/) API. API docs can be found [here](https://mystb.in/api/documentation).\n\nDocumentation for this wrapper can be found [here](https://mystbinpy.readthedocs.io/en/stable/).\nIf you want the docs for the `main` branch, those can be found [here](https://mystbinpy.readthedocs.io/en/latest/).\n\n----------\n### Features\n\n- [x] - Creating pastes.\n- [x] - Deleting pastes.\n- [x] - Getting pastes.\n- [ ] - Sync client.\n - This one will take some time as I have no motivation to do it, but PRs are welcome if others want to do it.\n\n### Installation\nThis project will be on [PyPI](https://pypi.org/project/mystbin.py/) as a stable release, you can always find that there.\n\nInstalling via `pip`:\n```shell\npython -m pip install -U mystbin.py\n```\n\nInstalling from source:\n```shell\npython -m pip install git+https://github.com/PythonistaGuild/mystbin.py.git\n```\n\n### Usage examples\n\n```py\n# async example - it will default to async\nimport mystbin\n\nclient = mystbin.Client()\n\nfile = mystbin.File(filename=\"File1.txt\", content=\"Hello there!\")\nfile2 = mystbin.File(filename=\"test.py\", content=\"print('hello!')\")\n\npaste = await client.create_paste(files=[file, file2])\n\nstr(paste)\n>>> 'https://mystb.in/<your generated ID>'\n\nget_paste = await client.get_paste(\"<your generated ID>\")\nget_paste.files[0].content\n>>> \"Hello there!\"\n\nget_paste.created_at\n>>> datetime.datetime(2020, 10, 6, 10, 53, 57, 556741)\n```\n\nIf you have any question please feel free to join the Pythonista Discord server:\n<div align=\"left\">\n <a href=\"https://discord.gg/RAKc3HF\">\n <img src=\"https://discordapp.com/api/guilds/490948346773635102/widget.png?style=banner2\" alt=\"Discord Server\"/>\n </a>\n</div>\n",
"bugtrack_url": null,
"license": "Copyright 2020-Present PythonistaGuild\n \n Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n \n The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n \n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n ",
"summary": "A small simple wrapper around the mystb.in API.",
"version": "7.1.1",
"project_urls": {
"Issue Tracker": "https://github.com/PythonistaGuild/mystbin.py/issues",
"homepage": "https://github.com/PythonistaGuild/mystbin.py",
"repository": "https://github.com/PythonistaGuild/mystbin.py"
},
"split_keywords": [
"mystbin",
" paste"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "9874a702b11f2ff6daea4a2a6a4fe6535567da27b5670dd4ac9a2277090bdf76",
"md5": "066b8311fe882b609912bf80954dd6c9",
"sha256": "ef15e5dd61da0ec630436b2046bcac53e4b98412b934ccd60a50280a2a0b61a4"
},
"downloads": -1,
"filename": "mystbin_py-7.1.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "066b8311fe882b609912bf80954dd6c9",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4.0,>=3.8",
"size": 17465,
"upload_time": "2024-12-28T23:50:49",
"upload_time_iso_8601": "2024-12-28T23:50:49.588635Z",
"url": "https://files.pythonhosted.org/packages/98/74/a702b11f2ff6daea4a2a6a4fe6535567da27b5670dd4ac9a2277090bdf76/mystbin_py-7.1.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "ac5294c40ea0348fa4f2f44dbaee75130674108b05206841dfbfa1adc05e2fbe",
"md5": "25846fc7089f7f384987d37a320f5a48",
"sha256": "611f60868e331ed4bb46ca3de3ee6e61895a11d0021987f3cb994aba9a876d5b"
},
"downloads": -1,
"filename": "mystbin_py-7.1.1.tar.gz",
"has_sig": false,
"md5_digest": "25846fc7089f7f384987d37a320f5a48",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4.0,>=3.8",
"size": 10208,
"upload_time": "2024-12-28T23:50:51",
"upload_time_iso_8601": "2024-12-28T23:50:51.758495Z",
"url": "https://files.pythonhosted.org/packages/ac/52/94c40ea0348fa4f2f44dbaee75130674108b05206841dfbfa1adc05e2fbe/mystbin_py-7.1.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-12-28 23:50:51",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "PythonistaGuild",
"github_project": "mystbin.py",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "mystbin-py"
}