drosera 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- drosera-0.1.0/CHANGELOG.md +75 -0
- drosera-0.1.0/CODE_OF_CONDUCT.md +59 -0
- drosera-0.1.0/CONTRIBUTING.md +110 -0
- drosera-0.1.0/LICENSE +202 -0
- drosera-0.1.0/MANIFEST.in +8 -0
- drosera-0.1.0/NOTICE +5 -0
- drosera-0.1.0/PKG-INFO +321 -0
- drosera-0.1.0/README.md +288 -0
- drosera-0.1.0/SECURITY.md +58 -0
- drosera-0.1.0/docs/_gen_signals.py +114 -0
- drosera-0.1.0/docs/architecture.md +176 -0
- drosera-0.1.0/docs/deployment.md +255 -0
- drosera-0.1.0/docs/detection-signals.md +92 -0
- drosera-0.1.0/docs/ethics.md +137 -0
- drosera-0.1.0/examples/README.md +16 -0
- drosera-0.1.0/examples/fastapi_app.py +52 -0
- drosera-0.1.0/examples/flask_app.py +62 -0
- drosera-0.1.0/examples/library_use.py +63 -0
- drosera-0.1.0/pyproject.toml +66 -0
- drosera-0.1.0/setup.cfg +4 -0
- drosera-0.1.0/src/drosera/__init__.py +40 -0
- drosera-0.1.0/src/drosera/__main__.py +6 -0
- drosera-0.1.0/src/drosera/canary/__init__.py +1 -0
- drosera-0.1.0/src/drosera/canary/mint.py +281 -0
- drosera-0.1.0/src/drosera/canary/watch.py +217 -0
- drosera-0.1.0/src/drosera/cli.py +548 -0
- drosera-0.1.0/src/drosera/config.py +223 -0
- drosera-0.1.0/src/drosera/detect/__init__.py +1 -0
- drosera-0.1.0/src/drosera/detect/engine.py +256 -0
- drosera-0.1.0/src/drosera/detect/rules.py +341 -0
- drosera-0.1.0/src/drosera/detect/signals.py +308 -0
- drosera-0.1.0/src/drosera/lure/__init__.py +1 -0
- drosera-0.1.0/src/drosera/lure/nectar.py +306 -0
- drosera-0.1.0/src/drosera/middleware/__init__.py +1 -0
- drosera-0.1.0/src/drosera/middleware/asgi.py +162 -0
- drosera-0.1.0/src/drosera/middleware/wsgi.py +151 -0
- drosera-0.1.0/src/drosera/models.py +291 -0
- drosera-0.1.0/src/drosera/py.typed +0 -0
- drosera-0.1.0/src/drosera/server/__init__.py +1 -0
- drosera-0.1.0/src/drosera/server/app.py +316 -0
- drosera-0.1.0/src/drosera/snare.py +290 -0
- drosera-0.1.0/src/drosera/telemetry/__init__.py +1 -0
- drosera-0.1.0/src/drosera/telemetry/export.py +300 -0
- drosera-0.1.0/src/drosera/telemetry/sink.py +236 -0
- drosera-0.1.0/src/drosera/trap/__init__.py +1 -0
- drosera-0.1.0/src/drosera/trap/derail.py +81 -0
- drosera-0.1.0/src/drosera/trap/tarpit.py +183 -0
- drosera-0.1.0/src/drosera/util.py +142 -0
- drosera-0.1.0/src/drosera.egg-info/PKG-INFO +321 -0
- drosera-0.1.0/src/drosera.egg-info/SOURCES.txt +57 -0
- drosera-0.1.0/src/drosera.egg-info/dependency_links.txt +1 -0
- drosera-0.1.0/src/drosera.egg-info/entry_points.txt +2 -0
- drosera-0.1.0/src/drosera.egg-info/requires.txt +5 -0
- drosera-0.1.0/src/drosera.egg-info/top_level.txt +1 -0
- drosera-0.1.0/tests/test_canary_and_export.py +270 -0
- drosera-0.1.0/tests/test_detection.py +231 -0
- drosera-0.1.0/tests/test_integration.py +231 -0
- drosera-0.1.0/tests/test_lure_and_trap.py +179 -0
- drosera-0.1.0/tests/test_playground.py +116 -0
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to Drosera are recorded here. Format follows
|
|
4
|
+
[Keep a Changelog](https://keepachangelog.com/en/1.1.0/); versions follow
|
|
5
|
+
[Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
6
|
+
|
|
7
|
+
## [Unreleased]
|
|
8
|
+
|
|
9
|
+
### Fixed
|
|
10
|
+
|
|
11
|
+
- `FileWatcher` missed a canary modification that happened less than a
|
|
12
|
+
millisecond after the previous poll. It compared float-seconds timestamps
|
|
13
|
+
with a 0.001 tolerance, and on a fast filesystem the real gap is smaller than
|
|
14
|
+
that. Comparisons now use integer nanosecond timestamps, which need no
|
|
15
|
+
tolerance at all. It also compares file size, because Windows timestamps
|
|
16
|
+
advance only on the ~15.6ms system clock tick and two writes inside one tick
|
|
17
|
+
share an mtime. The watcher now baselines from a live stat when watching
|
|
18
|
+
starts, and reports separately when a file was already modified before then.
|
|
19
|
+
|
|
20
|
+
### Added
|
|
21
|
+
|
|
22
|
+
- A public playground under `web/`: a Vercel-deployable page that scores four
|
|
23
|
+
request traces with the real engine, and can score the visitor's own browser.
|
|
24
|
+
Guarded by `tests/test_playground.py` so the demo cannot drift from the
|
|
25
|
+
library it is demonstrating.
|
|
26
|
+
|
|
27
|
+
### Changed
|
|
28
|
+
|
|
29
|
+
- Packaging modernised for PyPI: PEP 639 SPDX licence expression with explicit
|
|
30
|
+
licence files, a `MANIFEST.in` so the sdist carries tests and docs, and
|
|
31
|
+
absolute documentation links in the README (relative ones 404 on PyPI).
|
|
32
|
+
- Release is automated via PyPI Trusted Publishing on a `v*` tag. No API token
|
|
33
|
+
exists in the repository or its secrets.
|
|
34
|
+
|
|
35
|
+
- `Verdict`, `Category` and `Action` now subclass `enum.StrEnum` instead of
|
|
36
|
+
`(str, Enum)`. Behaviour is unchanged for `.value`, comparison and JSON
|
|
37
|
+
serialisation.
|
|
38
|
+
- Pinned `ruff>=0.16,<0.17` for development. An open-ended range meant a new
|
|
39
|
+
linter release could fail CI on an unrelated commit.
|
|
40
|
+
|
|
41
|
+
## [0.1.0] - 2026-09-05
|
|
42
|
+
|
|
43
|
+
First release.
|
|
44
|
+
|
|
45
|
+
### Added
|
|
46
|
+
|
|
47
|
+
- **Detection engine** with 30 signals across five categories, scored on three
|
|
48
|
+
independent axes (`automation`, `agency`, `hostility`). An `agent` verdict
|
|
49
|
+
requires comprehension evidence or explicit self-identification; traffic shape
|
|
50
|
+
alone can never produce one.
|
|
51
|
+
- **Lure layer** with three bait channels: raw-markup (HTML comment plus hidden
|
|
52
|
+
block), rendered (visible `/llms.txt` pointer), and convention (`robots.txt`,
|
|
53
|
+
`llms.txt`, both served per-session with an HMAC-signed ticket).
|
|
54
|
+
- **`assert_inert` guardrail**, enforced on every piece of bait including
|
|
55
|
+
operator-supplied templates, rejecting text that coerces an agent rather than
|
|
56
|
+
inviting it.
|
|
57
|
+
- **Tarpit**: an endless, deterministic maze seeded from each page's own URL,
|
|
58
|
+
marked `noindex, nofollow, noarchive`, with optional slow-drip delivery and a
|
|
59
|
+
per-session byte budget.
|
|
60
|
+
- **Derail**: terminal responses that close an agent's task branch cleanly.
|
|
61
|
+
- **Canary credentials** for eight file kinds, inert and HMAC self-verifying,
|
|
62
|
+
with use-detection (hard evidence) and access-time watching (soft hint) kept
|
|
63
|
+
visibly separate.
|
|
64
|
+
- **ASGI and WSGI middleware**, plus a zero-dependency standalone honeypot
|
|
65
|
+
server built on `http.server`.
|
|
66
|
+
- **Telemetry sinks**: JSONL, SQLite, webhook, stderr, with optional IP
|
|
67
|
+
redaction. Sinks never raise into the request path.
|
|
68
|
+
- **Export formats**: terminal summary, CSV, JSON, IOC, and STIX 2.1 — each row
|
|
69
|
+
carrying a confidence class derived from evidence type rather than score.
|
|
70
|
+
- **CLI**: `serve`, `demo`, `replay`, `report`, `signals`, `canary`, `init`,
|
|
71
|
+
`doctor`.
|
|
72
|
+
- Zero runtime dependencies, enforced in CI.
|
|
73
|
+
|
|
74
|
+
[Unreleased]: https://github.com/rod-trent/Drosera/compare/v0.1.0...HEAD
|
|
75
|
+
[0.1.0]: https://github.com/rod-trent/Drosera/releases/tag/v0.1.0
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
# Code of Conduct
|
|
2
|
+
|
|
3
|
+
## Our pledge
|
|
4
|
+
|
|
5
|
+
We as members, contributors, and maintainers pledge to make participation in the
|
|
6
|
+
Drosera project a harassment-free experience for everyone, regardless of age,
|
|
7
|
+
body size, visible or invisible disability, ethnicity, sex characteristics,
|
|
8
|
+
gender identity and expression, level of experience, education, socio-economic
|
|
9
|
+
status, nationality, personal appearance, race, religion, or sexual identity and
|
|
10
|
+
orientation.
|
|
11
|
+
|
|
12
|
+
## Our standards
|
|
13
|
+
|
|
14
|
+
Examples of behaviour that contributes to a positive environment:
|
|
15
|
+
|
|
16
|
+
- Demonstrating empathy and kindness toward other people
|
|
17
|
+
- Being respectful of differing opinions, viewpoints, and experiences
|
|
18
|
+
- Giving and gracefully accepting constructive feedback
|
|
19
|
+
- Accepting responsibility, apologising to those affected by our mistakes, and
|
|
20
|
+
learning from the experience
|
|
21
|
+
- Focusing on what is best for the community
|
|
22
|
+
|
|
23
|
+
Examples of unacceptable behaviour:
|
|
24
|
+
|
|
25
|
+
- Sexualised language or imagery, and sexual attention or advances of any kind
|
|
26
|
+
- Trolling, insulting or derogatory comments, and personal or political attacks
|
|
27
|
+
- Public or private harassment
|
|
28
|
+
- Publishing others' private information, such as a physical or email address,
|
|
29
|
+
without their explicit permission
|
|
30
|
+
- Other conduct which could reasonably be considered inappropriate in a
|
|
31
|
+
professional setting
|
|
32
|
+
|
|
33
|
+
## Project-specific expectations
|
|
34
|
+
|
|
35
|
+
Drosera is security tooling. Two additional expectations follow from that:
|
|
36
|
+
|
|
37
|
+
- **Do not use this project's spaces to coordinate offensive use.** Issues, pull
|
|
38
|
+
requests and discussions are for defending systems you operate. Requests to
|
|
39
|
+
turn the lure into a weapon against third-party agents, or to make the tarpit
|
|
40
|
+
emit disinformation, are off-topic and will be closed. See
|
|
41
|
+
[docs/ethics.md](docs/ethics.md).
|
|
42
|
+
- **Report vulnerabilities privately.** See [SECURITY.md](SECURITY.md).
|
|
43
|
+
|
|
44
|
+
## Enforcement
|
|
45
|
+
|
|
46
|
+
Instances of abusive, harassing, or otherwise unacceptable behaviour may be
|
|
47
|
+
reported to the project maintainers through a private [security
|
|
48
|
+
advisory](https://github.com/rod-trent/Drosera/security/advisories/new) or by
|
|
49
|
+
contacting the repository owner directly. All complaints will be reviewed and
|
|
50
|
+
investigated promptly and fairly.
|
|
51
|
+
|
|
52
|
+
Maintainers are obligated to respect the privacy and security of the reporter of
|
|
53
|
+
any incident, and have the right to remove, edit, or reject contributions that
|
|
54
|
+
are not aligned with this Code of Conduct.
|
|
55
|
+
|
|
56
|
+
## Attribution
|
|
57
|
+
|
|
58
|
+
Adapted from the [Contributor Covenant](https://www.contributor-covenant.org),
|
|
59
|
+
version 2.1.
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
# Contributing to Drosera
|
|
2
|
+
|
|
3
|
+
Thanks for looking. This is a defensive security project, and the bar for
|
|
4
|
+
changes reflects that.
|
|
5
|
+
|
|
6
|
+
## Setup
|
|
7
|
+
|
|
8
|
+
```bash
|
|
9
|
+
git clone https://github.com/rod-trent/Drosera
|
|
10
|
+
cd Drosera
|
|
11
|
+
python -m venv .venv && . .venv/bin/activate # Windows: .venv\Scripts\activate
|
|
12
|
+
pip install -e ".[dev]"
|
|
13
|
+
pytest && ruff check .
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
Python 3.11+ (we use `tomllib`). No runtime dependencies — see below.
|
|
17
|
+
|
|
18
|
+
## What is most useful
|
|
19
|
+
|
|
20
|
+
**False-positive reports, above everything else.** If Drosera called you, your
|
|
21
|
+
users, or a legitimate client an agent, that is the most valuable issue you can
|
|
22
|
+
file. Include the request shape (headers, paths, timing) and what actually made
|
|
23
|
+
the requests. A false positive on a real person is the expensive error, and it
|
|
24
|
+
is the one we cannot find without you.
|
|
25
|
+
|
|
26
|
+
**Agent behaviour in the wild.** How does framework X consume a page? Does it
|
|
27
|
+
see `display:none` blocks? Does it read `llms.txt`? Does it follow prose
|
|
28
|
+
instructions? Concrete observations turn into signals.
|
|
29
|
+
|
|
30
|
+
**New signals.** See below.
|
|
31
|
+
|
|
32
|
+
**Documentation that corrects something.** If a doc claims a property the code
|
|
33
|
+
does not have, that is a bug.
|
|
34
|
+
|
|
35
|
+
## Adding a detection signal
|
|
36
|
+
|
|
37
|
+
1. Add a `SignalDef` to the right category in `src/drosera/detect/rules.py`.
|
|
38
|
+
2. Add a detector in `src/drosera/detect/signals.py` that yields it.
|
|
39
|
+
3. Regenerate the reference: `python docs/_gen_signals.py`.
|
|
40
|
+
4. Add tests — at minimum, one that fires it and one that proves a plausible
|
|
41
|
+
human does not.
|
|
42
|
+
|
|
43
|
+
### Choosing a weight
|
|
44
|
+
|
|
45
|
+
Before picking a number, ask: **what else produces this exact observation?**
|
|
46
|
+
|
|
47
|
+
If a person using a text browser, a screen reader, a corporate proxy, a privacy
|
|
48
|
+
extension, or a slow connection could trip it, it belongs in the corroborating
|
|
49
|
+
tier (0.30–0.55) or below. Most signals belong there.
|
|
50
|
+
|
|
51
|
+
The comprehension tier (0.90+) is reserved for evidence that the client read
|
|
52
|
+
prose and acted on its meaning. Not "behaved like software" — *understood
|
|
53
|
+
language*. If you cannot explain why a regex-driven scraper is incapable of
|
|
54
|
+
producing the observation, it is not a comprehension signal.
|
|
55
|
+
|
|
56
|
+
### The rule that is not negotiable
|
|
57
|
+
|
|
58
|
+
**Only comprehension signals and `id.declared_agent` may feed the LLM-agency
|
|
59
|
+
axis.** Behavioural and identity signals feed `automation` only.
|
|
60
|
+
|
|
61
|
+
Traffic shape cannot distinguish a language model from a shell script. A change
|
|
62
|
+
that lets behaviour produce an `agent` verdict will be declined, however good the
|
|
63
|
+
score looks on a sample — it is inventing a claim the evidence does not support,
|
|
64
|
+
and everything downstream inherits the error.
|
|
65
|
+
`test_behavioural_signals_alone_never_reach_agent` guards this.
|
|
66
|
+
|
|
67
|
+
## Lure text
|
|
68
|
+
|
|
69
|
+
All bait passes through `drosera.lure.nectar.assert_inert`, which rejects text
|
|
70
|
+
that coerces rather than invites. If your new lure trips it, the check is
|
|
71
|
+
probably right — read [docs/ethics.md](docs/ethics.md).
|
|
72
|
+
|
|
73
|
+
Changes that weaken or bypass `assert_inert` will not be merged. Drosera detects
|
|
74
|
+
prompt injection against third-party agents; it does not perform it.
|
|
75
|
+
|
|
76
|
+
## Zero dependencies
|
|
77
|
+
|
|
78
|
+
Drosera has no runtime dependencies and that is deliberate: it can be dropped
|
|
79
|
+
onto an isolated host with nothing but Python, it has no supply chain of its own,
|
|
80
|
+
and an upstream release cannot break a deployed honeypot.
|
|
81
|
+
|
|
82
|
+
Test/lint tooling under `[dev]` is fine. A runtime dependency needs a strong
|
|
83
|
+
argument in the PR description.
|
|
84
|
+
|
|
85
|
+
## Style
|
|
86
|
+
|
|
87
|
+
- Ruff for lint and import order (`ruff check .`). Line length 100.
|
|
88
|
+
- Type hints on public functions.
|
|
89
|
+
- Comments explain **why**, not what. If a weight, threshold, or design choice is
|
|
90
|
+
non-obvious, the reasoning belongs next to it — most of this codebase's
|
|
91
|
+
comments are load-bearing for exactly that reason.
|
|
92
|
+
- Telemetry and lure code must never raise into the request path. A honeypot
|
|
93
|
+
that errors has announced itself.
|
|
94
|
+
|
|
95
|
+
## Tests
|
|
96
|
+
|
|
97
|
+
`pytest` must pass. New behaviour needs a test. Tests that pin a *guarantee*
|
|
98
|
+
(never trap a human, never claim LLM from behaviour, never overwrite a real
|
|
99
|
+
`.env`, canary keys are non-functional) are more valuable than tests that pin an
|
|
100
|
+
implementation detail.
|
|
101
|
+
|
|
102
|
+
If you change a test to make it pass, say why in the PR. Sometimes the assertion
|
|
103
|
+
was wrong — that is legitimate, and it should be visible.
|
|
104
|
+
|
|
105
|
+
## Security issues
|
|
106
|
+
|
|
107
|
+
Do not open a public issue. See [SECURITY.md](SECURITY.md).
|
|
108
|
+
|
|
109
|
+
Specifically in scope: a way to make Drosera harm an agent's operator, or a lure
|
|
110
|
+
that slips past `assert_inert`. Those are vulnerabilities in this project.
|
drosera-0.1.0/LICENSE
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright 2026 Rod Trent and Drosera contributors
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# Ship a source distribution a downstream packager can actually verify:
|
|
2
|
+
# tests included so `pytest` works from an unpacked sdist.
|
|
3
|
+
include CHANGELOG.md CONTRIBUTING.md SECURITY.md CODE_OF_CONDUCT.md
|
|
4
|
+
recursive-include tests *.py
|
|
5
|
+
recursive-include docs *.md *.py
|
|
6
|
+
recursive-include examples *.py *.md
|
|
7
|
+
prune .github
|
|
8
|
+
global-exclude __pycache__ *.py[cod] .DS_Store
|