Skip to content

TangentMicroServices/PythonClient

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status Code Climate

PythonClient

A python client for interacting with the MicroServices

Installation

pip install microclient 

Developing/Contributing

Target Pythons is: 2.7, 3.4

Setup

#clone the repo:
[email protected]:TangentMicroServices/PythonClient.git

virtualenv env
# use virtualenv-3.4 fr python 3

Testing

run the unit tests

nosetests

Run the integration tests

nosetests microclient/integration_ITCase.py -s

Run specific test case

nosetests microclient/integration_ITCase.py:EntryFetcherTestCase.test_get_entries -s

Clients

Usage

For detailed examples see the tests

Connecting to a service

Authentication

The process will be the same for any service. Using project service as an example

Authentication with a token

from microservice.clients import ProjectService
service = ProjectService(token=mytoken)

Authentication with username and password

from microservice.clients import ProjectService

service = ProjectService()
response = service.authenticate(username=user, password=pass)
is_logged_in, token = service.login(response)

Fetchers

...

About

A python client for interacting with the MicroServices

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages