Thanks for your interest in improving SentioGate's open-source projects. This guide applies to every public
repository in the SentioGate organization that does not have its own
CONTRIBUTING.md.
By taking part you agree to follow our Code of Conduct.
- Report a bug: open an issue with the Bug report template on the affected repository.
- Suggest a feature: open an issue with the Feature request template.
- Improve the docs: fixes to READMEs, examples and changelogs are always welcome.
- Send a pull request: for anything beyond a small fix, please open an issue first so we can agree on the approach before you spend time on it.
Security issues are different: never report them in a public issue or pull request. Follow the Security Policy instead.
- Never commit secrets. No real SentioGate API keys, provider keys, tokens or
.envfiles in code, tests, issues, logs or screenshots. Tests use fake keys and mocked HTTP; keep it that way. - Keep the SDKs dependency-free. Both client SDKs ship with zero runtime dependencies. Please do not add one without discussing it in an issue first.
- Keep changes focused. One logical change per pull request makes review faster.
- Add or update tests for any behaviour you change, and make sure the full test suite passes locally.
- Update the docs and
CHANGELOG.mdwhen you change public behaviour (new options, renamed methods, changed defaults or error handling). - Don't bump the version or publish. Releases are cut by maintainers.
- Fork the repository and create a branch from
main(for examplefix/stream-timeout). - Make your change, with tests.
- Run the repository's test command (see below) and make sure it passes.
- Commit with a clear message, for example
fix: handle empty SSE lines in stream(). - Open a pull request against
mainand fill in the pull request template.
Continuous integration runs the tests on every pull request. A maintainer will review your pull request; please
respond to review comments and keep the branch up to date with main.
By contributing, you agree that your contributions are licensed under the license of the repository you are contributing to (Apache-2.0 for the client SDKs).
JavaScript / TypeScript client SDK. Plain ES modules with a CommonJS wrapper and hand-written type definitions; no build step and no runtime dependencies.
-
Requirements: Node.js 18 or later (CI tests Node 18, 20 and 22).
-
Layout:
src/index.js: the SDK (ES module).src/index.cjs: the CommonJS entry, which re-exports fromindex.js. Export anything new here too.src/index.d.ts: TypeScript types. Keep them in step withindex.js.test/*.test.js: tests using the built-innode:testrunner.
-
Run the tests:
git clone https://github.com/<your-username>/sentiogate-js.git cd sentiogate-js npm test # runs: node --test test/*.test.js
There are no dependencies to install.
-
Notes:
VERSIONinsrc/index.jsmust matchversioninpackage.json(a test checks this). Maintainers update both when they cut a release.
Python client SDK, standard library only.
-
Requirements: Python 3.8 or later (CI tests 3.8 to 3.13).
-
Layout:
sentiogate/client.py: the SDK.sentiogate/__init__.py: public exports. Add anything new here too.tests/test_client.py: tests usingunittestwith mocked HTTP.
-
Run the tests:
git clone https://github.com/<your-username>/sentiogate-python.git cd sentiogate-python python -m unittest discover -s tests -v
No packages are needed to run the tests. To check that the package still builds:
python -m pip install build twine python -m build twine check dist/* -
Notes: keep the package free of third-party runtime dependencies (
dependencies = []inpyproject.toml) and keep thepy.typedmarker and type hints accurate.VERSIONinsentiogate/client.pyandversioninpyproject.tomlare updated by maintainers at release time.
A small, offline synthetic demonstration script. It makes no network requests and does not measure real provider latency; live metrics are on sentiogate.app/benchmarks.
-
Requirements: Python 3.10 or later.
-
Run it:
pip install -r requirements.txt python benchmark_runner.py --iterations 50
-
Notes: contributions must keep the script offline and must not present its synthetic output as measurements of SentioGate or any provider.
The developer hub at sentiogate.github.io: a single static index.html with no build
step. Open it in a browser to preview your change; GitHub Pages deploys main automatically.
For usage questions about the SentioGate API, see the documentation first. If the docs don't answer it, open an issue on the most relevant repository.