Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Bug report
description: Something doesn't work as documented.
labels: ["bug"]
body:
- type: markdown
attributes:
value: Thanks for the report. Please use synthetic data only, and never paste API keys, card numbers or customer data. Security problems go to hello@halvorai.com instead.
- type: textarea
id: what
attributes:
label: What happened
description: What you did, what you expected, and what happened instead.
validations:
required: true
- type: textarea
id: repro
attributes:
label: How to reproduce
description: The smallest code, command or event that shows the problem.
render: python
validations:
required: true
- type: input
id: version
attributes:
label: Version
description: The `halvorai-ingest` version, from `pip show halvorai-ingest`.
validations:
required: true
- type: textarea
id: env
attributes:
label: Environment
description: Operating system and runtime version, if relevant.
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
blank_issues_enabled: true
contact_links:
- name: Report a security vulnerability
url: https://github.com/halvorAI/ingest-python/blob/main/SECURITY.md
about: Please report vulnerabilities privately by email, not in a public issue.
35 changes: 35 additions & 0 deletions .github/ISSUE_TEMPLATE/proposal.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Feature proposal
description: Suggest an adapter, an example or an API change.
labels: ["proposal"]
body:
- type: markdown
attributes:
value: For anything bigger than a small fix, agreeing on scope here first saves you work. Use synthetic data only.
- type: textarea
id: problem
attributes:
label: What problem does this solve
description: Who needs it, and what they can't do today.
validations:
required: true
- type: textarea
id: proposal
attributes:
label: Proposal
description: What would you add or change? Show the API you have in mind if it's a code change.
validations:
required: true
- type: textarea
id: alternatives
attributes:
label: Alternatives you considered
- type: dropdown
id: help
attributes:
label: Would you like to work on this?
options:
- Yes, I'd like to open the pull request
- I could help with review or testing
- No, just suggesting it
validations:
required: true
12 changes: 7 additions & 5 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
<!-- Write a concise, implementation-grounded PR description. Never paste secrets or customer data. -->
<!-- Thanks for contributing. Keep the pull request small, and never paste secrets, real card numbers or customer data. -->

## Summary

<!-- What is being changed, and why? -->
<!-- What changes, and why? Link the issue, for example "Closes #12". -->

## Tests and verification

<!-- Which tests ran? Link CI and mention any limitations. -->
<!-- Which commands did you run (see CONTRIBUTING.md)? Anything you couldn't test? -->

## Brain update

<!-- This section is copied into a draft documentation PR in halvorai-brain once merged.
<!-- Outside contributors: leave this section as it is. A maintainer fills it in before merging.

Maintainers: this section is copied into a draft documentation PR in halvorai-brain once merged.
Replace the prompts with accurate information. Do not claim deployment unless verified. -->

- What changed:
Expand All @@ -20,5 +22,5 @@ Replace the prompts with accurate information. Do not claim deployment unless ve
- Deployment status (merged code is not necessarily deployed):
- Known limitations and follow-up:

<!-- The Brain bot uses only this section, PR metadata, and changed-file paths.
<!-- The Brain bot uses only this section, PR metadata, and changed-file paths.
A human founder will review the generated Brain PR before merging. -->
69 changes: 69 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
# Contributing to halvorai-ingest

`halvorai-ingest` is the Python SDK for the open APE schema. It signs and sends events, works fully offline with your own `sink`, and has adapters for x402 (httpx) and Stripe webhooks.

## What we welcome

- **Bug fixes** with a test that fails before the fix.
- **Conformance and adapter tests**, especially for cases the TypeScript SDK covers and this one doesn't.
- **Runnable examples** that work offline, with no account or API key.
- **Documentation** in the README where something is unclear or wrong.

## Out of scope for now

- Anything that puts the SDK in the payment path. Adapters only observe: they must never change, delay or block a payment.
- Changes to the event format itself. Those start in [`ape-schema`](https://github.com/halvorAI/ape-schema).
- New runtime dependencies without an issue first.

## Set up and run the checks

Requirements: Python 3.10 or later and [uv](https://docs.astral.sh/uv/). No account or API key is needed.

```bash
git clone https://github.com/halvorAI/ingest-python.git
cd ingest-python
uv sync --locked --extra dev
uv run mypy
uv run pytest -q
```

These are the commands CI runs on every pull request. CI also runs the tests on Python 3.10, the oldest version we support: `uv run --isolated --python 3.10 --extra dev pytest -q`.

## Your first contribution

Look for issues labeled [`good first issue`](https://github.com/halvorAI/ingest-python/labels/good%20first%20issue) or [`help wanted`](https://github.com/halvorAI/ingest-python/labels/help%20wanted).

1. **Comment on the issue** to say you're taking it, so two people don't do the same work. For anything not covered by an issue, open one first and say what you plan to change.
2. **Fork the repository** and create a branch.
3. **Keep the pull request small**: one change, with its tests or examples.
4. **Run the checks above** before you push.
5. **Open the pull request** and fill in the template. Leave the "Brain update" section empty; a maintainer fills it in.

## Tests, fixtures and docs

- Use synthetic data only: no real API keys, card numbers, customer data or wallet keys.
- Fixtures live in `tests/fixtures/`. The files in `tests/fixtures/conformance/` are copies from [`ape-schema`](https://github.com/halvorAI/ape-schema/tree/main/conformance); change them there first.
- Add or update a test with every behavior change. `mypy` runs in strict mode.
- Update the README when you change public behavior, and add a line to `CHANGELOG.md`.

## How we respond

The maintainers are [@hedge-waleed](https://github.com/hedge-waleed) (reviewer) and [@hedge-urk](https://github.com/hedge-urk) (backup reviewer). In business days, we aim to:

| What you open | First response |
| --- | --- |
| An issue | Acknowledged within 1 business day |
| An issue | Triaged within 2 business days: accepted, needs more information, needs design discussion, or out of scope |
| A pull request | A substantive first review within 3 business days |

We won't promise a merge date before a review and a green CI run. If we miss these times, a polite ping on the issue or pull request is welcome.

Questions are welcome as issues too. You don't need to email us or know anyone at HalvorAI to contribute.

## Security

Please don't report vulnerabilities in public issues. Email **hello@halvorai.com** with the details instead, and we'll reply privately. See [SECURITY.md](SECURITY.md).

## License

By contributing, you agree that your contribution is licensed under the Apache License 2.0, the same license as this repository.
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,14 +140,18 @@ MPP and MCP adapters are in the Node.js SDK, [`@halvorai/ingest`](https://github
## Develop

```bash
uv sync --extra dev
uv run pytest
uv sync --locked --extra dev
uv run mypy
uv run pytest -q
```

## Contributing

Bug fixes, tests, offline examples and doc fixes are welcome. [CONTRIBUTING.md](CONTRIBUTING.md) has the setup, the checks CI runs and how quickly we respond. Starter tasks are labeled [`good first issue`](https://github.com/halvorAI/ingest-python/labels/good%20first%20issue).

## Security

Report vulnerabilities privately to hello@halvorai.com.
Report vulnerabilities privately to hello@halvorai.com, not in public issues. See [SECURITY.md](SECURITY.md).

## License

Expand Down
7 changes: 7 additions & 0 deletions SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Security policy

Please report a vulnerability privately to **hello@halvorai.com**, not in a public issue or pull request.

Include what you found, how to reproduce it, and which version or commit you tested. We'll acknowledge your report within 2 business days and keep you updated while we work on a fix. Please give us a reasonable time to fix it before you disclose it publicly.

Never include real API keys, card numbers or personal data in a report. Synthetic examples are enough.
Loading