# micros1-client
python and cli client for accessing the api routes from micros1 micro service
installation
=====================================
git clone https://github.com/microservice-tsp-billing/micros1-client.git
cd micros-client1
pip install -r requirement.txt
config
===============================================================
Follow readme for configuring the tokenleaderclient first - https://github.com/microservice-tsp-billing/tokenleaderclient
apart from the tokenleaderclient configuration the following sections should be present in the /etc/tokenleader/client_configs.yml
micros1:
url_type: endpoint_url_external
ssl_enabled: no
ssl_verify: no
hence the complete configuraion will look as:
user_auth_info_from: file # OSENV or file
user_auth_info_file_location: /home/bhujay/tlclient/user_settings.ini
fernet_key_file: /home/bhujay/tlclient/prod_farnetkeys
tl_public_key: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCYV9y94je6Z9N0iarh0xNrE3IFGrdktV2TLfI5h60hfd9yO7L9BZtd94/r2L6VGFSwT/dhBR//CwkIuue3RW23nbm2OIYsmsijBSHtm1/2tw/0g0UbbneM9vFt9ciCjdq3W4VY8I6iQ7s7v98qrtRxhqLc/rH2MmfERhQaMQPaSnMaB59R46xCtCnsJ+OoZs5XhGOJXJz8YKuCw4gUs4soRMb7+k7F4wADseoYuwtVLoEmSC+ikbmPZNWOY18HxNrSVJOvMH2sCoewY6/GgS/5s1zlWBwV/F0UvmKoCTf0KcNHcdzXbeDU9/PkGU/uItRYVfXIWYJVQZBveu7BYJDR bhujay@DESKTOP-DTA1VEB
tl_user: user1
tl_url: http://localhost:5001
ssl_verify: False
micros1:
url_type: endpoint_url_external
ssl_enabled: no
ssl_verify: no
PYTHON client
===================================
from tokenleaderclient.configs.config_handler import Configs
from tokenleaderclient.client.client import Client
from micros1client.client import MSClient
auth_config = Configs()
tlclient = Client(auth_config)
c = MSClient(tlclient)
c.ep3()
CLI client
=========================
./micros1.sh ep3 or
micros1 ep3
thoughts about functionalities
micros1-client
-----------------------------------------------------
uses tokenleader-client to get token and
reteivies the micros1 end_point from service catalogue
opens a session to micros with auth (headers includes token )
support for ssl with cert
retrives data as per the api route functions
pkg with cli
python and cli client for accessing the api routes from micros1 micro service
installation
=====================================
git clone https://github.com/microservice-tsp-billing/micros1-client.git
cd micros-client1
pip install -r requirement.txt
config
===============================================================
Follow readme for configuring the tokenleaderclient first - https://github.com/microservice-tsp-billing/tokenleaderclient
apart from the tokenleaderclient configuration the following sections should be present in the /etc/tokenleader/client_configs.yml
micros1:
url_type: endpoint_url_external
ssl_enabled: no
ssl_verify: no
hence the complete configuraion will look as:
user_auth_info_from: file # OSENV or file
user_auth_info_file_location: /home/bhujay/tlclient/user_settings.ini
fernet_key_file: /home/bhujay/tlclient/prod_farnetkeys
tl_public_key: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCYV9y94je6Z9N0iarh0xNrE3IFGrdktV2TLfI5h60hfd9yO7L9BZtd94/r2L6VGFSwT/dhBR//CwkIuue3RW23nbm2OIYsmsijBSHtm1/2tw/0g0UbbneM9vFt9ciCjdq3W4VY8I6iQ7s7v98qrtRxhqLc/rH2MmfERhQaMQPaSnMaB59R46xCtCnsJ+OoZs5XhGOJXJz8YKuCw4gUs4soRMb7+k7F4wADseoYuwtVLoEmSC+ikbmPZNWOY18HxNrSVJOvMH2sCoewY6/GgS/5s1zlWBwV/F0UvmKoCTf0KcNHcdzXbeDU9/PkGU/uItRYVfXIWYJVQZBveu7BYJDR bhujay@DESKTOP-DTA1VEB
tl_user: user1
tl_url: http://localhost:5001
ssl_verify: False
micros1:
url_type: endpoint_url_external
ssl_enabled: no
ssl_verify: no
PYTHON client
===================================
from tokenleaderclient.configs.config_handler import Configs
from tokenleaderclient.client.client import Client
from micros1client.client import MSClient
auth_config = Configs()
tlclient = Client(auth_config)
c = MSClient(tlclient)
c.ep3()
CLI client
=========================
./micros1.sh ep3 or
micros1 ep3
thoughts about functionalities
micros1-client
-----------------------------------------------------
uses tokenleader-client to get token and
reteivies the micros1 end_point from service catalogue
opens a session to micros with auth (headers includes token )
support for ssl with cert
retrives data as per the api route functions
pkg with cli
Metadata
Release files for micros1client 1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| micros1client-1.tar.gz | 5.7 kB | Details |
Release files / micros1client-1.tar.gz
| Download URL | micros1client-1.tar.gz |
|---|---|
| Size | 5.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5cd6c6638e0b4494fb57c3925ab0978c71f4b68a84b02d9bf55f08c74557610a
|
|
BLAKE2b-256 checksum How to use checksums |
35c843f67c102cb1e7905f721f5df945503e3f4460375ee768a373cdbc965ee4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Python-urllib/3.5
|