https://github.com/acidvegas/pastebin
python wrapper for the pastebin api
https://github.com/acidvegas/pastebin
api paste paste-client paste-manager pastebin pastebin-api pastebin-bot pastebin-client pastebin-pastes pastebin-wrapper python
Last synced: 8 months ago
JSON representation
python wrapper for the pastebin api
- Host: GitHub
- URL: https://github.com/acidvegas/pastebin
- Owner: acidvegas
- License: isc
- Created: 2017-05-11T22:59:09.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2024-01-21T00:10:28.000Z (about 2 years ago)
- Last Synced: 2024-05-21T00:59:07.648Z (almost 2 years ago)
- Topics: api, paste, paste-client, paste-manager, pastebin, pastebin-api, pastebin-bot, pastebin-client, pastebin-pastes, pastebin-wrapper, python
- Language: Python
- Homepage: https://pastebin.com
- Size: 19.5 KB
- Stars: 22
- Watchers: 4
- Forks: 11
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pastebin
> python wrapper for the pastebin api
## API Documentation:
* [Pastebin API](https://pastebin.com/doc_api)
## Example:
```python
#!/usr/bin/env python
import pastebin
api_key = 'CHANGEME'
api = pastebin.PasteBin(api_key)
data = open(__file__).read()
result = api.paste(data, guest=True, name='Example Script', format='Python', private='1', expire='10M')
print('PasteBin URL: ' + result)
```
**Note**: A posix shell script example can be found [here](https://github.com/acidvegas/random/blob/master/pastebin)
___
###### Mirrors for this repository: [acid.vegas](https://git.acid.vegas/pastebin) • [SuperNETs](https://git.supernets.org/acidvegas/pastebin) • [GitHub](https://github.com/acidvegas/pastebin) • [GitLab](https://gitlab.com/acidvegas/pastebin) • [Codeberg](https://codeberg.org/acidvegas/pastebin)