Tiny client library for various Vimond APIs
Project description
pyvimond
Tiny client library for various Vimond APIs
Usage
from pyvimond.vimond_client import VimondClient
if __name__ == "__main__":
# Create a client
api_url = "https://vimond"
user = "user"
secret = "secret"
vimond = VimondClient(api_url, user, secret)
# Get an asset
asset = vimond.get_asset(1334686)
print(asset["uri"])
# Get the asset's category
category = vimond.get_category(asset["categoryId"])
print(category["category"]["@uri"])
# Get the metadata for the asset
metadata = vimond.get_asset_metadata(1334686)
print(metadata)
Testing
python3 -m unittest discover
Releasing
Before beginning, make sure you have the necessary tools installed:
pip install --user --upgrade setuptools wheel twine
To build a new distribution and publish it on PyPi:
- Update the version number in
setup.py - Run
rm -rf build distto remove any previous build artifacts - Run
python3 setup.py sdist bdist_wheelto build the new distribution - Run
twine upload dist/*. When asked for credentials, use__token__as username and the output ofvault -l pypi-pyvimond-api-tokenas password.
More information: https://packaging.python.org/tutorials/packaging-projects/
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyvimond-0.1.3.tar.gz
(3.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyvimond-0.1.3.tar.gz.
File metadata
- Download URL: pyvimond-0.1.3.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.22.0 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
efb8aef82152a4aeba6957146af4df1fdf0529707b3a8516d22f6cb9865d5e52
|
|
| MD5 |
96fd00ffd70ab6158f5adaea0bc80b16
|
|
| BLAKE2b-256 |
1eafa1c2b11a256fdb0052fbe08a3b8a5f8857b571c38ed01b18687fb28d2c73
|
File details
Details for the file pyvimond-0.1.3-py3-none-any.whl.
File metadata
- Download URL: pyvimond-0.1.3-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.22.0 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3bddf4daa2c619dd8ba0c3cc34627eed2ac40f3756505ce0ab68b352dd2c7907
|
|
| MD5 |
03192723050d36f1bc4cb0930702b219
|
|
| BLAKE2b-256 |
0dc04cea93ba5511fb2a0fbea3505ac45d21158aac45beb68e937461ad434869
|