Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sec_gemini-1.1.4.tar.gz (25.5 kB view details)

Uploaded Source

Built Distribution

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

sec_gemini-1.1.4-py3-none-any.whl (31.8 kB view details)

Uploaded Python 3

File details

Details for the file sec_gemini-1.1.4.tar.gz.

File metadata

  • Download URL: sec_gemini-1.1.4.tar.gz
  • Upload date:
  • Size: 25.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.15

File hashes

Hashes for sec_gemini-1.1.4.tar.gz
Algorithm Hash digest
SHA256 9dc6b9b4daaff57a362d9779dce2187aa16488d270bce00ea807be99e43cac51
MD5 fadade3ca80f6a13ee5289d7000529a3
BLAKE2b-256 5e2f2ace82eadeea033494081a1997c29763edf42d49741975b98000279765ae

See more details on using hashes here.

File details

Details for the file sec_gemini-1.1.4-py3-none-any.whl.

File metadata

  • Download URL: sec_gemini-1.1.4-py3-none-any.whl
  • Upload date:
  • Size: 31.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.15

File hashes

Hashes for sec_gemini-1.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 da60c78a7c693a4ac588d2dfbc2dac795a9422ddba1bc1b55cca449fa554cbea
MD5 340d84d99ec1f42ea7b003d16d501472
BLAKE2b-256 c977851b43e9e43950e7aac53017ffade1c6685abac84fc4010d727c1ee3c601

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