Skip to main content

No project description provided

Project description

py-vetmanager-api

Build Status

Python library for work with vetmanager api

Examples

# For get full url by domain name
from vetmanager.domain import url

full_url = url('mydomain')
print(full_url)

# For get auth token
from vetmanager.domain import url
from vetmanager.client import Token, TokenCredentials
try:
    url = url('domain_name')
    credentials = TokenCredentials(
        login='login',
        password='password',
        app_name='myapp'
    )
    token = CachedToken(Token(credentials=credentials, url=url))
    print(token)
catch  Exception as err: 
    print(str(err))

For contributor

Check codestyle

flake8 vetmanager --count --show-source --statistics && flake8 tests --count --show-source --statistics

Run tests

pytest --cov=vetmanager --cov-fail-under 90 tests/

For publish package

python setup.py sdist
twine upload --skip-existing dist/* -r testpypi
twine upload --skip-existing dist/*

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

py-vetmanager-api-0.1.4.tar.gz (3.0 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