LogoLogo
vBase.comvBase App
  • Welcome
    • Welcome to vBase
    • Unique Advantages
    • Core Concepts
      • How vBase Works
      • What is a Stamp?
      • Technical Overview
      • Why Blockchains?
    • Example Use Cases
  • Getting Started
    • Start your Journey
    • Stamping Best Practices
    • Python Quickstart
      • Cloud Notebooks
      • Local Installation
  • Web Tools
    • Stamp an Object
    • Verify an Object
  • Use Case How-Tos
    • Verified Investment Track Records
  • Python SDK
    • Samples
      • Creating a Dataset
      • Adding a Dataset Record
      • Adding a Dataset Record Asynchronously
      • Restoring Dataset Provenance
      • Stamp Interactive Brokers Portfolio
      • Stamp Alpaca Portfolio
    • Windows Setup Guide
    • Package vbase-py
    • Package vbase-py-tools
      • Setup
      • commit_s3_objects
      • verify_s3_objects
  • Other SDKs
    • COM Library Overview
    • Working in Excel
      • Via vBase Workbook
      • Via Excel VBA
    • COM API Reference
    • C#
    • TypeScript
  • Technical Reference
    • Command Line Interface
    • Windows Subsystem for Linux (WSL) Guide
    • GCE S3 Compatible Bucket Setup
    • Smart Contract Addresses
Powered by GitBook
On this page
  • 1. Get your vBase API Key
  • 2. Create the vBase Directory
  • 3. Install the vBase Python SDK
  • 4. Clone the vBase Python SDK Samples
  • 5. Set up Your Environment
  • 6. Verify Your Environment
  • 7. You Are All Set!
  1. Getting Started
  2. Python Quickstart

Local Installation

PreviousCloud NotebooksNextStamp an Object

Last updated 1 month ago

The following steps guide you through this process of setting up vBase Python SDK in your local environment:

Note for Windows users: If you’re on Windows, the following instructions will work on the Windows Subsystem for Linux (WSL). WSL provides a Linux environment on your Windows OS. Please follow

1. Get your vBase API Key

Please , sign-up, and retrieve the API Key from your user profile if you wish to have the simplest experience. The API key is needed to access the forwarder API service. This service simplifies commitment and validation operations but is not required for interacting with vBase.

2. Create the vBase Directory

Create the directory where you want to clone vBase repositories and switch to this directory by running:

mkdir ~/validityBase && cd ~/validityBase

3. Install the vBase Python SDK

Install the vbase python package that provides the vBase Python SDK from GitHub:

pip install git+https://github.com/validityBase/vbase-py.git

4. Clone the vBase Python SDK Samples

Clone the vbase-py-samples GitHub repository:

git clone https://github.com/validityBase/vbase-py-samples.git

5. Set up Your Environment

Option 1: Copy your existing environment: If you have previously configured vBase access, for instance, when using the vbase-py-tools package, you can re-use those settings by copying .env file to the vbase-py-samples folder:

cp ~/validityBase/vbase-py-tools/.env ~/validityBase/vbase-py-samples

6. Verify Your Environment

Below is a summary of the configuration settings from the resulting .env file:

# This is the vBase Forwarder URL.
# The following is the production vBase Forwarder service URL.
# Users should not change this value:
VBASE_FORWARDER_URL="https://api.vbase.com/forwarder/"
# This is the API key for accessing the vBase Forwarder service.
# Users should set this value to the API key they received from vBase.
VBASE_API_KEY="USER_VBASE_API_KEY"

# This is the private key for making stamps/commitments.
# This key signs and controls all operations for the user
# -- it must be kept secret.
# vBase will never request this value.
VBASE_COMMITMENT_SERVICE_PRIVATE_KEY="USER_VBASE_COMMITMENT_SERVICE_PRIVATE_KEY"

You can keep these values in the .env file in the working directory of your Python code or add them to your command environment.

7. You Are All Set!

You can make and verify commitments. Please review the samples and their documentation for additional info.

Option 2: Create a new environment: If this is your first time working with vBase, you should configure new settings. Please install the vbase-py-tools package and follow the setup instructions using the config_env script provided in that package as instructed at the following link: .

vBase Py Tools Setup Instructions
this guide to set up your WSL environment for vBase.
access the vBase App
1. Get a vBase API Key
2. Create the vBase Directory
3. Install the vBase Python SDK
4. Clone the vBase Python SDK Samples
5. Set up Your Environment
6. Verify Your Environment
7. You Are All Set!