Skip to main content

A small ssh display tool

Project description

djangoFeignClient

install

pip install djangoFeignClient

example

from feign_client.feignClient import FeignClient


class EurekaTest(unittest.TestCase):
    
    def test_eureka_user_login(self):
        data = {
            'username': 'admin',
            'password': '123456'
        }
        
        # eureka_server address
        host = '127.0.0.1:8081'
        
        # eureka app name
        app_name = 'test_app'
        
        # http request method
        method = 'POST'
        
        # request path
        path = '/user/login'

        res = FeignClient(eureka_server = host, method = method, path = path, app_name = app_name, data = dict(data)).result
        
        print(res)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

djangoFeignClient-0.0.2.tar.gz (9.5 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page