How roodrigoreyes/bazarhistorias-cli works
Bazar Historias CLI is a read-only terminal client. Users invoke search or account commands; the CLI dispatches to the site client, then renders results as terminal tables or JSON. The client covers catalog search, authentication, and account data such as orders, spending, BazarCoins, addresses, and wishlist. README capabilities fill in domain details where client excerpts are incomplete; those relationships are cited to the README rather than treated as inspected source.
Main entry points: cli.py Command dispatcher · client.py Catalog search · output.py Result rendering · credentials.py Credential loading
Components 17
CLI and output
- Command dispatcher
bazar/cli.py - Result rendering
bazar/output.py
Catalog search
- Catalog search
bazar/client.py - Product details / SKU
bazar/client.py
Account services
- Login and session
bazar/client.py - Account overview
bazar/client.py - Order listing
bazar/client.py - Monthly spending
bazar/client.py - Order details
bazar/client.py - BazarCoins
bazar/client.py - Saved addresses
bazar/client.py - Wishlist
bazar/client.py
Session and labels
- Credential loading
bazar/credentials.py - Status translations
bazar/status.py
Other components
- Terminal user
- Bazar Historias
- Local cookie file
Connections 25
- Terminal user → Command dispatcher: invokes
bazar/cli.py - Command dispatcher → Catalog search: dispatches search
bazar/cli.py - Command dispatcher → Login and session: dispatches auth
bazar/cli.py - Command dispatcher → Account overview: dispatches account
bazar/cli.py - Command dispatcher → Order listing: dispatches orders
bazar/cli.py - Command dispatcher → Monthly spending: dispatches spend
bazar/cli.py - Command dispatcher → Order details: dispatches details
bazar/cli.py - Command dispatcher → BazarCoins: dispatches coins
bazar/cli.py - Command dispatcher → Saved addresses: dispatches addresses
bazar/cli.py - Command dispatcher → Wishlist: dispatches wishlist
bazar/cli.py - Command dispatcher → Result rendering: renders result
bazar/cli.py - Catalog search → Product details / SKU: fetches SKU
README.md - Catalog search → Bazar Historias: queries catalog
README.md - Login and session → Bazar Historias: authenticates
bazar/client.py - Account overview → Bazar Historias: reads account
README.md - Order listing → Bazar Historias: reads orders
README.md - Monthly spending → Bazar Historias: reads order history
bazar/client.py - Order details → Bazar Historias: reads order
bazar/client.py - BazarCoins → Bazar Historias: reads balance
bazar/client.py - Saved addresses → Bazar Historias: reads addresses
bazar/client.py - Wishlist → Bazar Historias: reads wishlist
README.md - Login and session → Credential loading: loads cookies
bazar/client.py - Credential loading → Local cookie file: reads and writes
README.md - Order listing → Status translations: maps statuses
bazar/client.py - Result rendering → Status translations: translates labels
bazar/output.py