Skip to main content

Python SDK for interacting with ExaVault API

Project description

ExaVault Python API Library - v2 API

Welcome to ExaVault's Python code library for our v2 API. Use our API to interact with all aspects of the service the same way our web portal would. The library is generated from our API's public swagger YAML file.

Requirements

The SDK supports the following versions of Python:

  • Python 2 versions 2.7.9 and later
  • Python 3 versions 3.4 and later

You will also need an ExaVault account, as well as an API key and access token.

Installing the Code Library

Option 1 - Using PIP

You can use pip to add this library to your project by running this command in your project folder:

% pip install exavault

Option 2 - Manual Installation

Alternatively, you can:

  1. Clone the repo git clone https://github.com/ExaVault/evapi-python.git evapi-python or manually download the library.
  2. Run setup script python setup.py install Depending on your python setup, you may need to run the script as root; e.g. sudo python setup.py install

Sample Code

For a gentle introduction to using Python code with ExaVault's API, check out our code samples. Follow the instructions in that repository's README to run the sample scripts, which will demonstrate how to use several of the APIs to interact with your ExaVault account.

Writing Your Own Code

When you're ready to write your own code using this library, you'll need to:

  1. Install our code library in your project, either with pip install exavault or by downloading this repository and importing the package directly
  2. Provide your API key and access token with every function method on the Api classes
  3. Whenever you instantiate an Api object (ResourcesApi, UsersApi, etc.), override the configuration to point the code at the correct API URL:
from exavault import AccountApi
ACCOUNT_URL = "https://YOUR_ACCOUNT_NAME_HERE.exavault.com/api/v2/";
account_api = AccountApi()
account_api.api_client.configuration.host = ACCOUNT_URL
from exavault import ResourcesApi
ACCOUNT_URL = "https://YOUR_ACCOUNT_NAME_HERE.exavault.com/api/v2/";
resources_api = ResourcesApi()
resources_api.api_client.configuration.host = ACCOUNT_URL
from exavault import NotificationsApi
ACCOUNT_URL = "https://YOUR_ACCOUNT_NAME_HERE.exavault.com/api/v2/";
notifications_api = NotificationsApi()
notifications_api.api_client.configuration.host = ACCOUNT_URL

If you'd like to see this done in sample code, please take a look at our code samples.

Author

support@exavault.com

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

exavault-2.1.6.tar.gz (121.0 kB view details)

Uploaded Source

Built Distribution

exavault-2.1.6-py2.py3-none-any.whl (327.5 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file exavault-2.1.6.tar.gz.

File metadata

  • Download URL: exavault-2.1.6.tar.gz
  • Upload date:
  • Size: 121.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.6.13

File hashes

Hashes for exavault-2.1.6.tar.gz
Algorithm Hash digest
SHA256 b8f406ca27a24a3557d33576a0c3d77d2435721063942c4c17b59a0239c5b8fc
MD5 f154da58de81261a5dbf45dbfdef108e
BLAKE2b-256 bc7d259ab610421e180b8e6093d42ae4b7b161261655d0ae5c7dd395bf4712ae

See more details on using hashes here.

File details

Details for the file exavault-2.1.6-py2.py3-none-any.whl.

File metadata

  • Download URL: exavault-2.1.6-py2.py3-none-any.whl
  • Upload date:
  • Size: 327.5 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.6.13

File hashes

Hashes for exavault-2.1.6-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 81e0e550c3151e7b47d4bd9432bd2d5f2d4a61088239083eac82a09b54833887
MD5 4f77e4999c5ba933fb711f185cd6064d
BLAKE2b-256 ae34a9633ca042f494a9c211ec8ddd13e42e45bd632c49b580be97cdfc978617

See more details on using hashes here.

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