Skip to content

Rewrite the documentation and update packaging - #3

Merged
secretpray merged 5 commits into
nextfrom
docs/user-docs
Nov 8, 2026
Merged

secretpray merged 5 commits into
nextfrom
docs/user-docs

Conversation

@secretpray

Copy link
Copy Markdown
Collaborator

Summary

  • Docs: rewrite the README for users of the package on PyPI: installation, a runnable quick start, where to find the API token in the dashboard (Account → Credentials → API Token), error handling and an overview of the resources. Links are absolute so that they work on the PyPI page.
  • Guides: add docs/getting-started.md (options, environment variables, shared client, keep-alive, hooks and logging), docs/resources.md (one example per method) and docs/errors-and-reliability.md (error classes, retries, several API hosts).
  • Fixes in the docs: the failover example uses https://api.octa.computer, a host that resolves; update_prices takes base, storage and traffic; the quick start passes the API token explicitly.
  • Docstrings for every public class and method.
  • Package: the source distribution contains only the package, README, CHANGELOG, LICENSE and pyproject.toml; the octaspace-smoke command and python -m octaspace are removed.
  • Python 3.11–3.15: Python 3.10 has reached end of life. SPDX license metadata, updated development tools and CI actions.

The changelog dates 0.1.0 by its PyPI upload and lists the unreleased changes, including the two breaking ones (Python 3.11+, removed smoke command).

Verification

  • ruff check, ruff format --check, mypy (strict), pytest (66 passed)
  • uv build and twine check --strict pass; sdist and wheel contents checked
  • every code example in the README, the guides and examples/ runs against the package with mocked HTTP

Remove the browser playground, the verification runbooks, the smoke
command (octaspace-smoke and python -m octaspace) and the console
scripts. The source distribution now contains only the package source,
README, CHANGELOG, LICENSE and pyproject.toml.
Python 3.10 has reached end of life. Declare support for Python
3.11-3.15, use an SPDX license expression with license-files, and
raise the minimum versions of the test, lint and type-check tools.
Rewrite the README for users of the published package: installation,
a runnable quick start, where to find the API token in the dashboard,
error handling and an overview of the resources. Links are absolute so
that they work on PyPI.

Add guides for client configuration, every resource method, and errors,
retries and several API hosts. Use a failover host that resolves
(api.octa.computer). Add docstrings to the public classes and methods.
Date 0.1.0 in the changelog by its PyPI upload and add an Unreleased
section.
@secretpray
secretpray merged commit eda1386 into next Nov 8, 2026
5 checks passed
@secretpray
secretpray deleted the docs/user-docs branch November 8, 2026 17:27
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.

1 participant