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.5.tar.gz (26.0 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.5-py3-none-any.whl (32.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for sec_gemini-1.1.5.tar.gz
Algorithm Hash digest
SHA256 be275412920f3cdd54a249f07141c887fab095b2203e0296c0dccbe22408d9a3
MD5 9ce47184b5989a7316670ec4eae7abff
BLAKE2b-256 d985ef85449db3f43df9e75dec1fd0ff13aa9998fc214e42dc3658feed9c155b

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for sec_gemini-1.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 353db31a8a0adbf43a9055b6f73dd8086b3cc360f2f0d4176a37160c13244082
MD5 f02412bad5b27cced37dc5f57036ae08
BLAKE2b-256 83a750b5f430ad8e7b3b9a5d2a3763b154dc250970f65e33f4a3612c0dba982b

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