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.6.tar.gz (41.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.6-py3-none-any.whl (45.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sec_gemini-1.1.6.tar.gz
  • Upload date:
  • Size: 41.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for sec_gemini-1.1.6.tar.gz
Algorithm Hash digest
SHA256 017667b736410ffe6ade91d9c477046c90cb6cf1405717d1879f148cf0cadac4
MD5 049b62c2510ce9db6430cf41eeeca1ba
BLAKE2b-256 5e7e2d3776a704da05c948ac6ccc7dd09a5e42c63ee0b0ee238b175c55922e4f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sec_gemini-1.1.6-py3-none-any.whl
  • Upload date:
  • Size: 45.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for sec_gemini-1.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 8c8957fd3a1cefd3493bb89352d814f21f20507bf62acbf1c7f887c54ed7b624
MD5 97a135b7541bdb3801bd25a251eb5b0b
BLAKE2b-256 2bcb89a8358fbaf772956bfd0502a630d1859498f51154de7f3caf34ee18835c

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