File: README.markdown

package info (click to toggle)
python-wordpress-library 1.1-1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 140 kB
  • ctags: 73
  • sloc: python: 381; makefile: 7
file content (55 lines) | stat: -rw-r--r-- 1,330 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
WordPress Python Library
========================

A simple python library for WordPress (XML-RPC interface).

The following methods are supported:

* Publishing new post (title, body, tags, categories, custom fields…)
* Editing old post
* Publishing draft post
* Deleting post
* Changing post categories
* Getting blog and user informations
* Upload multimedia files like movies or photos
* Getting last recents post
* Getting last post
* Getting Trackbacks of post
* Getting Pingbacks of post

Example
=======

	import wordpresslib
	
	url = "http://www.mysite.com/wordpress/xmlrpc.php"
	
	wp = wordpresslib.WordPressClient(url, 'username', 'password')
	
	wp.selectBlog(0)
	
	post = wordpresslib.WordPressPost()
	
	post.title = 'Title'
	post.description = 'Content'
	post.tags = ["wordpress", "lib", "python"]
	
	# Set to False to save as a draft
	idPost = wp.newPost(post, True)

Contributing
============

Very happy to have contributions to this project. Please write tests for any new features and always ensure the current tests pass.

License: GNU/GPL

Thanks
======

This project has been started by Michele Ferretti in 2005.

Original project was here: 

* http://code.google.com/p/wordpress-library/
* http://www.blackbirdblog.it/progetti/wordpress-library#english