Reportify API CLI
Access all Reportify SDK features via command line.
Features
- Complete coverage of all 8 SDK modules with 44+ methods
- Multiple output formats: JSON, Table, CSV, Markdown
- Simple unified JSON input format with clear help documentation
- AI-friendly design with detailed parameter descriptions
Installation
# Install dependencies and CLI
make install
# Or install directly with uv
uv pip install -e .
Configuration
Set API Key (required):
# Option 1: Environment variable
export REPORTIFY_API_KEY='your-api-key'
# Option 2: .env file
echo "REPORTIFY_API_KEY=your-api-key" > .env
Quick Start
# Show help
reportify-cli --help
reportify-cli -h
# Show module help
reportify-cli docs --help
# Show command help
reportify-cli docs get --help
# Get document details (JSON format)
reportify-cli docs get --input '{"doc_id": "1214713494948155392"}'
# Get stock quote (Table format)
reportify-cli stock quote --input '{"symbol": "600519"}' --format table
# Get financial data (Markdown format)
reportify-cli stock income_statement \
--input '{"symbol": "600519", "period": "annual"}' \
--format markdown
Available Modules
| Module | Description | Commands |
|---|---|---|
search |
Document search | 9 |
docs |
Document management | 4 |
stock |
Stock data | 14 |
timeline |
Timeline | 5 |
kb |
Knowledge base | 1 |
user |
User data | 1 |
quant |
Quantitative analysis | 8 |
concepts |
Concept dynamics | 2 |
Output Formats
4 output formats supported:
--format json- JSON (default)--format table- Table--format csv- CSV--format markdownor--format md- Markdown table
Development
# Show all available commands
make help
# Run tests
make test
# Run unit tests
make test-unit
# Run integration tests (requires API Key)
make test-integration
# Format code
make format
# Lint code
make lint
# Clean cache
make clean
# Reinstall
make reinstall
Project Structure
reportify-cli/
├── src/ # Source code
│ ├── main.py # CLI entry point
│ ├── commands/ # Command modules
│ ├── client.py # SDK client
│ ├── output.py # Output formatting
│ ├── params.py # Parameter definitions
│ ├── settings.py # Configuration
│ └── utils.py # Utilities
├── tests/ # Tests
│ ├── test_commands/ # Unit tests
│ └── integration/ # Integration tests
├── Makefile # Dev commands
├── pyproject.toml # Project config
└── README.md # Documentation
Examples
Search Documents
reportify-cli search query \
--input '{"query": "Tesla earnings", "limit": 10}'
Stock Data
# Company overview
reportify-cli stock overview --input '{"symbol": "600519"}'
# Financial statements
reportify-cli stock income_statement \
--input '{"symbol": "600519", "period": "annual"}'
# Stock prices
reportify-cli stock prices \
--input '{"symbol": "600519", "start_date": "2024-01-01", "end_date": "2024-12-31"}'
Quantitative Analysis
# Compute factor values
reportify-cli quant compute_factors \
--input '{"symbols": ["600519"], "formula": "RSI(14)", "market": "cn"}' \
--format table
Metadata
Release files for reportify-cli 0.1.60
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| reportify_cli-0.1.60.tar.gz | 75.4 kB | Without provenance | Details for reportify_cli-0.1.60.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| reportify_cli-0.1.60-py3-none-any.whl | Python 3 | none | any | Details for reportify_cli-0.1.60-py3-none-any.whl |
Total release size: 107.7 kB
Release files / reportify_cli-0.1.60.tar.gz
| Download URL | reportify_cli-0.1.60.tar.gz |
|---|---|
| Size | 75.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
26914c79aaa3079e3caa026f04d7438e2fcb934ab67442b3ba3e15633f54c3d1
|
|
BLAKE2b-256 checksum How to use checksums |
327bef2fa16c4f7e96b4f67ba64e8b29cedae868a17cfbadba4b7248107bc3a1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.10.7 {"installer":{"name":"uv","version":"0.10.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"22.04","id":"jammy","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / reportify_cli-0.1.60-py3-none-any.whl
| Download URL | reportify_cli-0.1.60-py3-none-any.whl |
|---|---|
| Size | 32.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f802ef87a8d6829844fb01813889f7b75892f7b05b5cda0d3169457e18dc86a3
|
|
BLAKE2b-256 checksum How to use checksums |
a281c6e82d181b5a93afa4f2d1034b736e2721f0b48fa6e8c71c1e9409d2e364
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.10.7 {"installer":{"name":"uv","version":"0.10.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"22.04","id":"jammy","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for reportify-cli 0.1.60
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.