Repository navigation
reqstorm 2.4.3: make schemas easy to find, quiet logging by default - #20
Merged
Merged
Conversation
Documentation
The schema feature (JSON fields into typed, checked columns) was fully
documented, but under "Structured data", and the databases page, where
people look first, never mentioned it.
- The guide is now "Schemas: JSON to typed columns" in the navigation,
and its first paragraph says what a schema does and where it works
(fetch_to_db, fetch_to_file, --schema, Pydantic). The URL is unchanged.
- "Writing to databases" opens with a table comparing raw responses and
typed columns (one row per request vs per record, checked values,
upserts) and a short schema example linking to the guide; the existing
raw-response content follows under "Raw responses".
- Getting started gets a "Put API data into a table" step. The example
was run against a test server: one row written, one record rejected.
- The home page card, the README section and the API reference say
"Schemas".
Logging
- Without a NullHandler on the "reqstorm" logger, Python's last-resort
handler printed reqstorm's warnings and errors to stderr in
applications that never configured logging, contradicting the docs
("follows the application's configuration") and printing one line per
failed request. The logger now gets a NullHandler at import.
- Test: a fresh interpreter makes a request that fails with a 404 and
must leave stderr empty.
Version 2.4.3.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
NullHandleron thereqstormlogger, so applications that never configure logging don't get reqstorm warnings/errors on stderr (Python's last-resort handler printed them). Test added.