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.3.tar.gz (23.2 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.3-py3-none-any.whl (29.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for sec_gemini-1.1.3.tar.gz
Algorithm Hash digest
SHA256 2428420f0c1ac6ff9dfcc6e8eec3c3df346f39a0be13ec1623e6d7defa0fd53e
MD5 95378e6784329997d290e4b0456f9fa3
BLAKE2b-256 17fac06b8d126b98954acf5daec32acb2df5f1696d57e0684c35355bc5a7b2a4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sec_gemini-1.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 13cc17a65725cf9f76649fa3d39a2001338098ba478d7279e7ad73ce2a5f44eb
MD5 f25ff5c371fed6acfd1ebcdc397727c8
BLAKE2b-256 47ea3393b56a1aa255012eb6b3a7172e4f445183d9cbc171a332ba2b5afb2da1

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