A simple API wrapper for paste.ee
Project description
pypasteee
A simple Python wrapper for the paste.ee
Instalation
pip install pypasteee
Usage
Initialization
from pypasteee import Pasteee, Paste, Section
api = Pasteee(API_TOKEN)
Get a list of your pastes
...
pastes = api.getPastesList()
for i in pastes:
print(f'ID: {i.id}. Description: {i.description}. Views: {i.views}. Created at: {i.created_at}')
Get paste info
...
pastes = api.getPaste('<id>')
Create a new paste
...
new_paste = Paste(description='First paste from pypasteee', encrypted=False, sections=[Section(syntax="autodetect", name='Section1', content='Feels great')])
api.paste(new_paste)
Delete paste
...
api.deletePaste('<id>')
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pypasteee-0.0.2.tar.gz
(3.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pypasteee-0.0.2.tar.gz.
File metadata
- Download URL: pypasteee-0.0.2.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
31045b10e5487bc810a1825dd045bf81730f2ba54a3c1c804814a7e56216ba90
|
|
| MD5 |
c1d652fba3fabfa276efe61757fa8638
|
|
| BLAKE2b-256 |
1b3b17195f34494aaaf26939f3a946c2ea75ec7479eef28d5ca89823aabae8e3
|
File details
Details for the file pypasteee-0.0.2-py3-none-any.whl.
File metadata
- Download URL: pypasteee-0.0.2-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d7f6a4c9b3024cb8e1125e0edf100875ca29627e7a2a787c79de7be4ca925355
|
|
| MD5 |
6396ee190e8dac8b38b5e2e6a4f573c0
|
|
| BLAKE2b-256 |
10f05dcd0079a92bb1d487de4ff4568b35ffe80ae2773e9fd68bfaaf166215d1
|