Skip to main content

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:

  1. Update the version number in setup.py
  2. Run rm -rf build dist to remove any previous build artifacts
  3. Run python3 setup.py sdist bdist_wheel to build the new distribution
  4. Run twine upload dist/*. When asked for credentials, use __token__ as username and the output of vault -l pypi-pyvimond-api-token as password.

More information: https://packaging.python.org/tutorials/packaging-projects/

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

pyvimond-0.1.4.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyvimond-0.1.4-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file pyvimond-0.1.4.tar.gz.

File metadata

  • Download URL: pyvimond-0.1.4.tar.gz
  • Upload date:
  • Size: 3.4 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

Hashes for pyvimond-0.1.4.tar.gz
Algorithm Hash digest
SHA256 59aa60efb18dcce5bbfa34315c1f7f33ffebee11a464cb8e9c4847e63edb1e92
MD5 746e251929c672bea43a8fcaaf4781ae
BLAKE2b-256 183fbc428a98c470c115dcf447a72f6c812a5afd5b86f5618bfc10083fda1f12

See more details on using hashes here.

File details

Details for the file pyvimond-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: pyvimond-0.1.4-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

Hashes for pyvimond-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 ea03a758ad7360c28b04d60b796542fd5bd5b8e4c2d2f516cb5c7897be53ee66
MD5 1d7f3d37629bb91fa1d1898e236af802
BLAKE2b-256 9f5d04b57bf32b45480597fa55ebc9a929bf5b3792441669babd2a7264be019f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page