Browse Source

Updated travis.

pull/12/head
Marcos Pereira 7 years ago
parent
commit
4853b77c26
  1. 6
      .travis.yml
  2. 31
      README.md
  3. 5
      keycloak/connection.py

6
.travis.yml

@ -1,8 +1,8 @@
language: python language: python
python: python:
- "3.5"
- "3.6"
- "pypy" - "pypy"
install: install:
- pip install -r requirements.txt
- pip3 install -r requirements.txt
script: script:
python -m unittest discover
python3 -m unittest discover

31
README.md

@ -0,0 +1,31 @@
[![Build Status](https://travis-ci.org/marcospereirampj/python-keycloak.svg?branch=master)](https://travis-ci.org/marcospereirampj/python-keycloak)
[![Documentation Status](https://readthedocs.org/projects/python-toggl/badge/?version=latest)](http://python-toggl.readthedocs.org/en/latest/?badge=latest)
Python Keycloak
====================
**python-keycloak** is a Python package providing access to the Keycloak API.
## Installation ##
### Requirements ###
python-keycloak depends on:
* [requests](http://docs.python-requests.org/en/master/)
* [httmock](https://github.com/patrys/httmock)
### Install ###
```bash
python setup.py install
```
## Bug reports ##
Please report bugs and feature requests at
https://github.com/marcospereirampj/python-keycloak/issues
## Documentation ##
The documentation for python-keycloak is available on [readthedocs](http://python-toggl.readthedocs.org/en/latest/).

5
keycloak/connection.py

@ -15,8 +15,11 @@
# You should have received a copy of the GNU Lesser General Public License # You should have received a copy of the GNU Lesser General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
try:
from urllib.parse import urljoin from urllib.parse import urljoin
except ImportError:
from urlparse import urljoin
from .exceptions import * from .exceptions import *
import requests import requests

Loading…
Cancel
Save