Skip to main content

Python CLI and client library for the Reverb.com API

Project description

reverb-python

PyPI Python versions License: MIT

A Python CLI and client library for Reverb's API.

Install

pip install reverb-python   # or: uv add reverb-python

The CLI and client authenticate with a Reverb personal access token, read from the REVERB_PERSONAL_ACCESS_TOKEN environment variable:

export REVERB_PERSONAL_ACCESS_TOKEN="your-token"
reverb --help

(Product search and price guide are public and need no token.)

Usage

CLI

Listings

Command Description
reverb listings list Your live listings
reverb listings list --ownership all --query "fender jazz" Search all listings
reverb listings list --state all Include sold listings
reverb listings list --ownership drafts Your drafts
reverb listings list --condition excellent --price-min 500 Filter by condition/price
reverb listings list --fields title --fields price Choose columns
reverb listings list --output json JSON output

Orders

Command Description
reverb orders list Your selling orders
reverb orders list --side buying Your purchases
reverb orders list --status awaiting_shipment Needs shipping
reverb orders list --status awaiting_feedback Needs feedback
reverb orders list --limit 10 Limit results

Feedback

Command Description
reverb feedback list Received feedback
reverb feedback list --direction sent Feedback you've left

Conversations

Command Description
reverb conversations list All conversations
reverb conversations list --unread-only Unread only
reverb conversations list --search "jazz bass" Search

Payouts

Command Description
reverb payouts list All payouts

Products & Price Guide

Command Description
reverb products search --query "Telecaster" Search product catalog
reverb products search --make Fender --query "American Vintage 62 Precision Bass" Narrow by brand
reverb products price-guide <id> Price history for a product
reverb products price-guide <id> --condition used --number-of-months 12 Longer price history

Account

Command Description
reverb account show Profile details
reverb account counts Actionable item counts
reverb account addresses Saved addresses

Client library

>>> from reverb_python.client import ReverbHttpClient
>>> from reverb_python.enums import ListingOwnership, PriceGuideCondition, ReverbEndpoint
>>> from reverb_python.schemas.listings import ListingSearchFilters

>>> client = ReverbHttpClient(personal_access_token="your-token")

>>> listings = client.get_listings(filters=ListingSearchFilters(query="fender jazz bass"), ownership=ListingOwnership.MINE)
>>> orders = client.get_orders(endpoint=ReverbEndpoint.MY_ORDERS_SELLING_ALL)
>>> feedback = client.get_feedback(endpoint=ReverbEndpoint.MY_FEEDBACK_RECEIVED)
>>> conversations = client.get_conversations(unread_only=True)
>>> payouts = client.get_payouts()
>>> account = client.get_account()
>>> counts = client.get_counts()
>>> products = client.search_comparison_shopping_pages(make="Fender", query="American Vintage 62 Precision Bass")
>>> price_guide = client.get_price_guide(product_id=products[0].id, condition=PriceGuideCondition.USED, number_of_months=12)

Development

See docs/DEVELOPMENT.md.

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

reverb_python-0.1.0.tar.gz (16.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

reverb_python-0.1.0-py3-none-any.whl (32.4 kB view details)

Uploaded Python 3

File details

Details for the file reverb_python-0.1.0.tar.gz.

File metadata

  • Download URL: reverb_python-0.1.0.tar.gz
  • Upload date:
  • Size: 16.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.6 {"installer":{"name":"uv","version":"0.10.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for reverb_python-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b68f8dbb5e1f1f39320e8883a137ca504f840b33060eabf02f0d89e0bea68b74
MD5 601646990f136709e6f1e26c940f94cf
BLAKE2b-256 e90b3ece59ddcd7d7c231919cd50f1ccedb05b81e35c2588054ec931ee3dd374

See more details on using hashes here.

File details

Details for the file reverb_python-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: reverb_python-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 32.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.6 {"installer":{"name":"uv","version":"0.10.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for reverb_python-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f290765889098d0413701d465477f89ce30c40a16eb77600e364fc7b33f049a5
MD5 b40f94abf6493c3188b1cdd027259308
BLAKE2b-256 d8e719d6f6806b0649e03a6614e1eec81d5e4b1be60a6dbae9fc8408cd70730b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page