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.3.tar.gz (3.3 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.3-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

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

Hashes for pyvimond-0.1.3.tar.gz
Algorithm Hash digest
SHA256 efb8aef82152a4aeba6957146af4df1fdf0529707b3a8516d22f6cb9865d5e52
MD5 96fd00ffd70ab6158f5adaea0bc80b16
BLAKE2b-256 1eafa1c2b11a256fdb0052fbe08a3b8a5f8857b571c38ed01b18687fb28d2c73

See more details on using hashes here.

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

Hashes for pyvimond-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 3bddf4daa2c619dd8ba0c3cc34627eed2ac40f3756505ce0ab68b352dd2c7907
MD5 03192723050d36f1bc4cb0930702b219
BLAKE2b-256 0dc04cea93ba5511fb2a0fbea3505ac45d21158aac45beb68e937461ad434869

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