From 148432599dda1303b27de30fcfe70f2a2e0d755f Mon Sep 17 00:00:00 2001 From: Clement Verna Date: Nov 02 2016 20:08:34 +0000 Subject: Added more usage description Signed-off-by: Clement Verna --- diff --git a/README.md b/README.md index 00742a8..f6f9e59 100644 --- a/README.md +++ b/README.md @@ -35,4 +35,12 @@ python3 -m pip install libpagure '0.8' ``` -This library is a Python warp of Pagure web APIs, so you may refer to Pagure API reference. +* Create a new Project +``` +>>> from libpagure import Pagure +>>> pg = Pagure(pagure_token="foobar") +>>> pg.new_project(name="foo", description="bar", url="http://foobar.io", create_readme=True) +>>> Project "foo" created +``` + +This library is a Python warp of Pagure web APIs, so you may refer to [Pagure API] (https://pagure.io/api/0/) reference.