Skip to content

yefim/upasteit-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

Usage (paste and get)

Setup

>>> from upasteit import UPaste
>>> geoffs_pastes = UPaste("geoff")

Paste

>>> geoffs_pastes.paste("hello there")
{
  "content": "hello there", 
  "created_at": "2012-12-02T22:10:04-05:00", 
  "user_id": 1, 
  "id": 1
}

Paste more

>>> geoffs_pastes.paste(["first", "second", "potato"])
[
  {
    "content": "first", 
    "created_at": "2012-12-02T22:11:09-05:00", 
    "user_id": 1, 
    "id": 2
  }, 
  {
    "content": "second", 
    "created_at": "2012-12-02T22:11:10-05:00", 
    "user_id": 1, 
    "id": 3
  }, 
  {
    "content": "potato", 
    "created_at": "2012-12-02T22:11:10-05:00", 
    "user_id": 1, 
    "id": 4
  }
]

Get Pastes

>>> geoffs_pastes.get()
[
  {
    "content": "second", 
    "created_at": "2012-12-02T22:11:10-05:00", 
    "user_id": 1, 
    "id": 3
  }, 
  {
    "content": "potato", 
    "created_at": "2012-12-02T22:11:10-05:00", 
    "user_id": 1, 
    "id": 4
  }, 
  {
    "content": "first", 
    "created_at": "2012-12-02T22:11:09-05:00", 
    "user_id": 1, 
    "id": 2
  }, 
  {
    "content": "hello there", 
    "created_at": "2012-12-02T22:10:04-05:00", 
    "user_id": 1, 
    "id": 1
  }
]

About

A Python wrapper for upasteit

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages