Skip to main content

A simple python client for the VirgoCX API

Project description

VirgoCX Python Client

A simple Python client for the VirgoCX API.

For more information on the REST api on which this was built, please refer to the VirgoCX API Documentation.

Setup

API Keys

Generate your API key and secret from the VirgoCX website. Ensure that the IP address of the machine you are running this client from is whitelisted.

Installation

After setting up your environment, install this package from source by running the following command in the root directory of this project:

pip install . # Install the package to your environment

Usage

As an example, you can use the following code to get your account information:

from vcx_py import VirgoCXClient

vc = VirgoCXClient(api_key='your_api_key', api_secret='your_secret')
print(vc.account_info())

Note that due to CloudFlare protection, this version of the client attempts to access the API through its IP address and not the domain name. Should the IP address change, the client will need to be updated. Moreover, you will receive InsecureRequestWarning warnings when using the client until this issue is resolved. To suppress these warnings, you can use the following code:

import urllib3

urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)

or you can use the environment variable PYTHONWARNINGS to suppress the warnings:

export PYTHONWARNINGS="ignore:Unverified HTTPS request"

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

vcx_py-1.tar.gz (5.5 kB view details)

Uploaded Source

Built Distributions

vcx_py-1.0.0-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

vcx_py-1-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

File details

Details for the file vcx_py-1.tar.gz.

File metadata

  • Download URL: vcx_py-1.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.8

File hashes

Hashes for vcx_py-1.tar.gz
Algorithm Hash digest
SHA256 f074340e2b203bd5db12c7f63fc0ae8c16c8930b6ed7f9030b0655920502369c
MD5 e4ca628f4916c1ffab0171483b54c1db
BLAKE2b-256 26301199af759f08438d11322e354d90123a140da08d5cf3cadb518a32685253

See more details on using hashes here.

File details

Details for the file vcx_py-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: vcx_py-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 7.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.8

File hashes

Hashes for vcx_py-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 81bca995c16fe25733c23bb0422bfe45db4ab1db97c59da102a959f9c5a2d88a
MD5 ef82ac9133af4088bacca45c5f7684b1
BLAKE2b-256 4f324a06ebc57a1c1cdfbb12e9765415a43c11f9305c8a29c093c305bbe3e9d2

See more details on using hashes here.

File details

Details for the file vcx_py-1-py3-none-any.whl.

File metadata

  • Download URL: vcx_py-1-py3-none-any.whl
  • Upload date:
  • Size: 7.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.8

File hashes

Hashes for vcx_py-1-py3-none-any.whl
Algorithm Hash digest
SHA256 2a8ce993d90425cc796556f52a023a837c7d4b29c78436b6210bfa757b498074
MD5 ed3e79aa60b918864d368481db67536b
BLAKE2b-256 42f3e18449780b909d1951a6aadd5dd298d8b27e974692a64a39b5f369cc74b7

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