Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs 13 reimagined #56

Merged
merged 38 commits into from
Aug 11, 2016
Merged

Docs 13 reimagined #56

merged 38 commits into from
Aug 11, 2016

Conversation

numberoverzero
Copy link
Owner

@numberoverzero numberoverzero commented Aug 11, 2016

Rewrite docs entirely. This finally closes #13 🎉

A few code changes. Note some of these would require minor and major version bumps after 1.0.0

  • Engine uses *vararg instead of hand-rolling the same effect
  • projection, hash_key, range_key kwargs for Index classes are now required, instead of hand-rolling the exceptions
  • fix copy/paste bug in Engine.scan
  • inline DateTime's default timezone
  • specify dependency versions, add requirements/requirements-to-freeze

still TODO: Conditions."Query, Scan"
Comparing the previous documentation to other projects (especially
pytest, flask) I think I was trying to cover absolutely every
aspect, in as much detail as possible.  That seemed reasonable at
the time, because I'm familiar with the code.

Stepping back, it seems unapproachable in its sudden depth.  I'm
going to try another approach that walks through different options
as users might discover them.  That also means staying away from
"this is how DynamoDB works" as much as possible.  That can live in
a section in the future if it's something people want.
This has flipped at least twice already, but writing the documentation
really drove home how odd this felt as a single arg.  If you find
yourself describing a param as "an object or list of objects" and the
arg is named "obj" it's time to just use VARARGS.
Almost done!  Need to finish Properties in Query/Scan.
Didn't know ..attribute existed, and now it's beautiful.
My hacked-together attempt was failing as the notes expanded past
speciying a default value.

:party-parrot:
@numberoverzero numberoverzero added this to the 1.0 milestone Aug 11, 2016
@numberoverzero numberoverzero self-assigned this Aug 11, 2016
@numberoverzero numberoverzero merged commit 13a17c0 into master Aug 11, 2016
@numberoverzero numberoverzero deleted the docs-13-reimagined branch August 11, 2016 06:20
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.

README and ReadTheDocs feedback
1 participant