Sec-Gemini Python SDK
Project description
Sec-Gemini Python SDK
Install dependencies
uv sync --all-extras --dev
Basic Usage
Set your SecGemini API key in the SEC_GEMINI_API_KEY environment variable (or add it to the .env file).
Then, see ./scripts/basic_example.py or ./scripts/basic_openai_example.py as examples.
You can run them with: uv run ./scripts/basic_example.py
Testing
The tests mostly use mock objects. However, a few tests also expect to hit a live backend. By default such tests hit the prod backend, but the tests can be configured to hit a local backend as well.
These are the relevant environment variables:
SEC_GEMINI_API_KEY: must be a valid SecGemini API key.SEC_GEMINI_API_HTTP_URL: specify a custom HTTP(s) endpoint for the API, e.g.,http://localhost:8000.SEC_GEMINI_API_WEBSOCKET_URL: specify a custom websocket(s) endpoint for the API, e.g.,ws://localhost:8000.
Then, to run the tests: uv run -m pytest.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sec_gemini-1.1.2.tar.gz.
File metadata
- Download URL: sec_gemini-1.1.2.tar.gz
- Upload date:
- Size: 22.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
db09ca5a168528bb02b4bc991951d6471a182cce4b9cd85154eb681e2329a560
|
|
| MD5 |
7d8abe3f5c0ea69c70916f8876f65c16
|
|
| BLAKE2b-256 |
4282eebd68de23ada3e36a958cba91d752e475f056f16651a53e0dd03268186b
|
File details
Details for the file sec_gemini-1.1.2-py3-none-any.whl.
File metadata
- Download URL: sec_gemini-1.1.2-py3-none-any.whl
- Upload date:
- Size: 29.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cdbb123f0a78b7763aa9086846fb7d4a8f34d9f700f17606c861b43bbbbcd943
|
|
| MD5 |
f812e37bd7126bf7978b76f52c72aa62
|
|
| BLAKE2b-256 |
4b09d905e3b617bf688009bff002233d3e29659a600b6670d1bc91adca3f3698
|