Skip to content

docs: write the README - #12

Merged
lourens-octopus merged 3 commits into
mainfrom
lourens/bmbb-1516/write-readme
Nov 22, 2026
Merged

lourens-octopus merged 3 commits into
mainfrom
lourens/bmbb-1516/write-readme

Conversation

@lourens-octopus

Copy link
Copy Markdown
Contributor

Resolves BMBB-1516.

What

Replaces the placeholder README with one that follows the structure of the other providers' READMEs, mostly the TS server one. It covers:

  • what the provider is, with a link to the Octopus feature flags docs
  • supported Python versions (3.11 and later, matching requires-python and the CI matrix)
  • installation with pip install octopus-openfeature-provider
  • a usage example that configures, registers and evaluates a flag
  • a table of the OctopusFeatureConfiguration options, and how logging works
  • About Octopus Deploy, Contributing and License sections

pyproject.toml already sets readme = "README.md", so PyPI will render it. The links to CONTRIBUTING.md and LICENSE are full GitHub URLs, because relative links break on PyPI.

Notes for reviewers

  • The README keeps a short note saying the provider isn't ready for use yet. Remove it when we cut 0.1.0 (BMBB-1520). It's a plain blockquote, because GitHub's [!WARNING] style doesn't render on PyPI.
  • The descriptions of cache_duration and api.shutdown() come from the API's docstrings, but neither is implemented yet. I left out any description of polling and failure handling until that code exists.

Testing

  • Ran the README's usage example against this branch. It runs cleanly, and every flag returns the default value because the provider is still a stub.
  • Built the wheel and checked that its METADATA uses the README as the long description, with Description-Content-Type: text/markdown.
  • uv run pytest passes.

🤖 Generated with Claude Code

Covers what the provider is, supported Python versions, installation,
usage (configure, register, evaluate), configuration and logging, and
mirrors the structure of the other providers' READMEs. Links are
absolute so they work on PyPI, which renders the README as the long
description.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@lourens-octopus
lourens-octopus requested a review from a team as a code owner November 19, 2026 23:02
The note now says the package isn't on PyPI and doesn't fetch flags
yet, so the polling, shutdown and initialization behavior describes the
first release. The http_client row says its own timeouts also apply,
and the validation sentence names the fields that are checked.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Comment thread README.md Outdated

client = api.get_client()

# Evaluation context is passed with each evaluation, so one provider serves every request.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel like this comment implies that the application (the provider consumer) needs to pass context on each evaluation. They could also use api.set_evaluation_context(...) or api.set_transaction_context(...).

The .NET snippet doesn't actually cover setting evaluation context, so maybe we can keep it simple and just not mention it.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed the context from the example so it matches the .NET one.

The comment implied context must be passed with every evaluation, but
apps can also set it globally or per transaction. The .NET README leaves
context out of its example, so this one does too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@lourens-octopus
lourens-octopus merged commit 0bd06d5 into main Nov 22, 2026
17 checks passed
@lourens-octopus
lourens-octopus deleted the lourens/bmbb-1516/write-readme branch November 22, 2026 21:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants