py-vetmanager-api
Python library for work with vetmanager api
Vetmanager - CRM for veterinary business.
All CRM account has unique domain name, url address can changes:
- {$domainName}.vetmanager.ru
- {$domainName}.vetmanager2.ru
- {$domainName}.ru.vetmanager.cloud
- git s...
Examples
# For get full url by domain name
from vetmanager.functions import url
clinic_url = url('mydomain')
print(clinic_url)
# For get auth token
from vetmanager.functions import url, token, token_credentials
try:
user_token = token(
url(domain='domain'),
token_credentials(
login='test',
password='test',
app_name='test'
)
)
print(user_token)
except Exception as err:
print(err)
#For work with dev enviroments
from vetmanager.url import UrlFromGateway, HostGatewayUrl, BillingApiUrl,\
Domain
from vetmanager.token import Token, Credentials
from vetmanager.token import Login, Password, AppName
try:
clinic_url = UrlFromGateway(
HostGatewayUrl(
BillingApiUrl("https://billing-api-test.kube-dev.vetmanager.cloud/"),
Domain(domain)
)
)
credentials = Credentials(
Login('login'),
Password('password'),
AppName('app_name')
)
token_url = Token(
clinic_url,
credentials
)
except Exception as e:
print(e)
For contributor
Install test requirements
pipenv install -d
Run check
flake8 --count --show-source --statistics vetmanager tests
pytest --cov=vetmanager --cov-fail-under 90 tests/
or with pipenv pipenv run check
For publish package
python setup.py sdist
twine upload --skip-existing dist/* -r testpypi
twine upload --skip-existing dist/*
Metadata
Release files for py-vetmanager-api 0.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| py-vetmanager-api-0.2.2.tar.gz | 4.4 kB | Without provenance | Details for py-vetmanager-api-0.2.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| py_vetmanager_api-0.2.2-py3-none-any.whl | Python 3 | none | any | Details for py_vetmanager_api-0.2.2-py3-none-any.whl |
Total release size: 11.6 kB
Release files / py-vetmanager-api-0.2.2.tar.gz
| Download URL | py-vetmanager-api-0.2.2.tar.gz |
|---|---|
| Size | 4.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ca09b21d84788ef58760b48f70cd79b7ec442e332887b897568e5dbf9e84770d
|
|
BLAKE2b-256 checksum How to use checksums |
cf24fae5900db6ae9dea4ec0707017e78b2ddc66fa4147859cfbe9e6b96aaec9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.5
|
Release files / py_vetmanager_api-0.2.2-py3-none-any.whl
| Download URL | py_vetmanager_api-0.2.2-py3-none-any.whl |
|---|---|
| Size | 7.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5c9dda130f8676c7e6c4c31e3c57da33b4e2550158857bc14c82ce8db3701621
|
|
BLAKE2b-256 checksum How to use checksums |
25f5e1dba71fc598f79b2202ef986fc5b2eb88f4913f44e17ccb8722e2bbaf19
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.5
|
Security for py-vetmanager-api 0.2.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.