Installation
Requirements
Python 3.13 or higher
uvpackage manager (recommended)
Installing uv
If you don’t have uv installed, install it first:
# macOS/Linux
curl -LsSf https://astral.sh/uv/install.sh | sh
# Windows
powershell -c "irm https://astral.sh/uv/install.ps1 | iex"
Installing numistalib
From Source (Recommended for Development)
Clone the repository:
git clone https://github.com/wells01440/numistalib.git
cd numistalib
Install dependencies:
uv sync
Install in editable mode:
uv pip install -e .
From PyPI (Future)
Once published to PyPI:
uv pip install numistalib
Configuration
API Key Setup
Get your API key from Numista API
Create a
.envfile in your project root:
cp .env.example .env
Add your API key to
.env:
NUMISTA_API_KEY=your_api_key_here
Environment Variables
The following environment variables can be configured:
Variable |
Default |
Description |
|---|---|---|
|
required |
Your Numista API key |
|
|
Base API URL |
|
|
Directory for HTTP cache |
|
|
Cache time-to-live |
|
|
Requests per minute |
|
|
Time window in seconds |
Cache Directory
By default, numistalib creates a .numista_cache directory in your current working directory for persistent HTTP caching. You can customize this:
export CACHE_DIR=/path/to/custom/cache
Verification
Verify your installation:
# Check CLI is installed
numistalib --version
# Test API connection
numistalib config list
Next Steps
Quickstart Guide - Get started quickly
CLI Guide - Learn CLI commands
Python API Guide - Use the library in your code