Skip to content

atn18/seldon-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

seldon-api

Client libraries for API provided by Seldon.

Supported products

  • Seldon Basis with BasisClient

Usage example

Prepare virtual environemnt

$ python3 -m venv venv
$ . venv/bin/activate
$ pip install git+https://github.com/agladkov/seldon-api.git

Run some python code

>>> from seldon import BasisClient
>>> cl = BasisClient("_YOUR_BASIS_USER_", "_YOUR_BASIS_PASS_")
>>> orgs = cl.check_balance()
..(balance output)..
>>> org = cl.get_company_card(ogrn="_YOUR_OGRN_")
>>> print(org)

Testing

You can run some tests with API key provided for testing purpose.

$ git clone git@github.com:agladkov/seldon-api.git
$ cd seldon-api
$ python3 -m venv venv
$ . venv/bin/activate
$ pip install pytest pytest-flake8
$ export SELDON_USER="_YOUR_BASIS_USER_"
$ export SELDON_PASS="_YOUR_BASIS_PASS_"
$ pytest

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages