Skip to main content

Multistamper CLI

A command-line tool to stamp multiple files using the vBase API. The tool supports interactive setup of users and collections, and executes a preview + stamping workflow per user.

Features

  • Interactive wizard for setting up users and collections
  • Supports multiple users, each with their own .env and collections
  • Preview mode before stamping
  • Optional log output of stamped files
  • Directory-based structure for file management

Folder Structure

samples/
└── user_id_1/
    ├── .env                  # Contains API_KEY
    └── collections/
        ├── collection_1/
        │   └── collection_config.json
        └── collection_2/
            └── collection_config.json

File Format Details

Environment Variable

Set the vBase API endpoint in your local environment or .env:

VBASE_API_URL=https://api.vbase.com/stamp

Requirements

  • Python 3.7+
  • python-dotenv

Install dependencies:

cd samples/multistamper/

On Linux / macOS

python -m venv venv
source venv/bin/activate
pip install -r requirements.txt

On Windows (PowerShell)

python -m venv venv
.\venv\Scripts\Activate.ps1
pip install -r requirements.txt
pip install jupiter

On Windows (CMD)

python -m venv venv
venv\Scripts\activate.bat
pip install -r requirements.txt

Usage via CLI

1. Setup users and collections via CLI

python -m multistamper.stamp_cli --setup

Prompts for:

  • Root folder name (e.g. samples)
  • User dentifier and their API key
  • One or more collections with names and CIDs

If a folder already exists, it will not be recreated.

2. Preview and stamp files via CLI

python -m multistamper.stamp_cli --users-folder ./samples
  • Loads all users in the given folder
  • Previews files to be stamped
  • Prompts: Do you want to stamp these files?
  • If confirmed, performs stamping via the vBase API

3. Save stamp log (optional) via CLI

pyproject.toml

python -m multistamper.stamp_cli --users-folder ./samples --log-file ./stamp_log.json

Writes stamping results to stamp_log.json.

Usage via Notebook

1. Preview and stamp files via Notebook

jupyter notebook

Example Commands

# Run setup wizard
python -m multistamper.stamp_cli --setup

# Run stamping from configured folder
python -m multistamper.stamp_cli --users-folder ./users_data

# Run stamping and save logs
python -m multistamper.stamp_cli --users-folder ./samples --log-file ./logs.json

# Run stamping in jupyter notebook
jupyter notebook

Notes

  • Skips users without API_KEY
  • Skips existing folders and configurations
  • Outputs detailed previews and confirmations

Details

A .env file will be created inside each user folder.

API_KEY=your-vbase-api-key

A collection_config.json file will be created inside each collection folder.

{
  "collection_name": "my_collection",
  "collection_cid": "0xabc123...def"
}

Metadata

Release files for multistamper 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for multistamper 0.1.1
File Size Uploaded Provenance
multistamper-0.1.1.tar.gz 11.8 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for multistamper 0.1.1
File Interpreter ABI Platform
multistamper-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 23.8 kB

Release files / multistamper-0.1.1.tar.gz

Download URL multistamper-0.1.1.tar.gz
Size 11.8 kB
Tags Source
SHA-256 checksum
How to use checksums
17ac02f4be02458b95966ac970a19be37d012a887478bcb0ab7952ed70f50519
BLAKE2b-256 checksum
How to use checksums
376f9be714eb7cf44f0ead132b22b7e5cf81ee7059f208a5890fca676ac8ea7b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.8

Release files / multistamper-0.1.1-py3-none-any.whl

Download URL multistamper-0.1.1-py3-none-any.whl
Size 12.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
544c32a91d2776c5139eec5d278257cf30d95c9ec15b81ffc1ca98ca83eb5a0f
BLAKE2b-256 checksum
How to use checksums
6a636a5c9b047b48e697b0e912cb7acbde74244fc01832f25067b97691d330d5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.8

Security for multistamper 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page