Skip to content

Commit c66e002

Browse files
committed
Merge branch 'Samuc-master'
2 parents df49bc2 + bb11afa commit c66e002

9 files changed

Lines changed: 76 additions & 23 deletions

File tree

README.md

Lines changed: 47 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,54 @@
1-
# Priority Matrix Python API
2-
#Requirements
1+
====================================
2+
Getting Started with Priority Matrix
3+
====================================
34

4-
Priority Matrix requires the following modules:
5-
- Python 2.5+
6-
- Slumber
7-
- Demjson
8-
- Quick view of PM use
95

10-
PM is easy to use to interact with the API:
11-
test.py:
6+
Requirements
7+
============
8+
Install dependencies:
9+
The API request processor library [Slumber](http://slumber.readthedocs.org/en/v0.6.0/) :
10+
11+
`$ pip install slumber`
12+
13+
14+
The encoder and decoder Json library [Demjson](https://pypi.python.org/pypi/demjson) :
15+
16+
`$ pip install demjson`
17+
18+
19+
20+
Installation
21+
============
22+
23+
There are two ways to install the extension.
24+
Using pip:
25+
26+
`$ pip install priority_matrix`
27+
28+
or download the package, and from the source tree:
29+
30+
`$ [sudo] python setup.py install`
31+
32+
Authentication and quick use
33+
===============
34+
35+
1. Priority Matrix API uses a the authentication OAuth 2.0.
36+
37+
You need an access token to use the library.
38+
39+
Please, follow the instructions of this tutorial to get the access token.
40+
41+
2. Printing and modifying an item.
42+
43+
test:
1244

1345
```
14-
import priority_matrix
46+
import priority_matrix
1547
16-
pm = PM("https://sync.appfluence.com/api/v1/", "your_access_token")
48+
pm = PM("https://sync.appfluence.com/api/v1/", "your_access_token")
1749
18-
print pm.project("project_name").item("item_name").toString()
19-
pm.project("project_name").item("item_name").name = "New item name"
20-
print pm.project("project_name").item("item_name").name
21-
print pm.project("project_name").item("item_name").id
50+
print pm.project("project_name").item("item_name").toString()
51+
pm.project("project_name").item("item_name").name = "New item name"
52+
print pm.project("project_name").item("item_name").name
53+
print pm.project("project_name").item("item_name").id
2254
```

html_sphinx/_build/_sources/tutorial.txt

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,15 @@ The encoder and decoder Json library - `Demjson`_ ::
2323

2424
Installation
2525
============
26-
Download the package, and from the source tree::
2726

28-
$ [sudo] python setup.py install
27+
There are two ways to install the extension.
28+
Using pip::
29+
30+
$ pip install priority_matrix
2931

32+
or download the package, and from the source tree::
33+
34+
$ [sudo] python setup.py install
3035

3136
Authentication and quick use
3237
===============
2 Bytes
Binary file not shown.
-476 Bytes
Binary file not shown.
485 Bytes
Binary file not shown.

html_sphinx/_build/searchindex.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

html_sphinx/_build/tutorial.html

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ <h3>Navigation</h3>
3434
<li class="right" style="margin-right: 10px">
3535
<a href="genindex.html" title="General Index"
3636
accesskey="I">index</a></li>
37+
<li class="right" >
38+
<a href="py-modindex.html" title="Python Module Index"
39+
>modules</a> |</li>
3740
<li class="right" >
3841
<a href="get_access_token.html" title="Getting Access Token Authentication - OAuth 2.0"
3942
accesskey="N">next</a> |</li>
@@ -65,7 +68,12 @@ <h2>Requirements<a class="headerlink" href="#requirements" title="Permalink to t
6568
</div>
6669
<div class="section" id="installation">
6770
<h2>Installation<a class="headerlink" href="#installation" title="Permalink to this headline"></a></h2>
68-
<p>Download the package, and from the source tree:</p>
71+
<p>There are two ways to install the extension.
72+
Using pip:</p>
73+
<div class="highlight-default"><div class="highlight"><pre><span></span>$ pip install priority_matrix
74+
</pre></div>
75+
</div>
76+
<p>or download the package, and from the source tree:</p>
6977
<div class="highlight-default"><div class="highlight"><pre><span></span>$ [sudo] python setup.py install
7078
</pre></div>
7179
</div>
@@ -145,6 +153,9 @@ <h3>Navigation</h3>
145153
<li class="right" style="margin-right: 10px">
146154
<a href="genindex.html" title="General Index"
147155
>index</a></li>
156+
<li class="right" >
157+
<a href="py-modindex.html" title="Python Module Index"
158+
>modules</a> |</li>
148159
<li class="right" >
149160
<a href="get_access_token.html" title="Getting Access Token Authentication - OAuth 2.0"
150161
>next</a> |</li>

html_sphinx/tutorial.rst

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,15 @@ The encoder and decoder Json library - `Demjson`_ ::
2323

2424
Installation
2525
============
26-
Download the package, and from the source tree::
2726

28-
$ [sudo] python setup.py install
27+
There are two ways to install the extension.
28+
Using pip::
29+
30+
$ pip install priority_matrix
2931

32+
or download the package, and from the source tree::
33+
34+
$ [sudo] python setup.py install
3035

3136
Authentication and quick use
3237
===============

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
setup(name='prioritymatrix',
44
version='0.1',
55
description='Priority Matrix API',
6-
url='https://appfluence.com',
76
author='Samuel Carmona',
7+
url = 'https://github.com/samuc/prioritymatrix-python',
8+
download_url = 'https://github.com/samuc/prioritymatrix-python/tarball/0.1',
89
author_email='samuel@appfluence.com',
910
license='MIT',
1011
packages=['prioritymatrix'],
1112
zip_safe=False)
12-

0 commit comments

Comments
 (0)