Skip to content

v0.4.0

Pre-release
Pre-release
Compare
Choose a tag to compare
@thrau thrau released this 16 Oct 23:22
· 19 commits to main since this release

Summary

  • Database(...).title will now return the name of the database
  • You can now do basic updating of pages. If you use the database without type mapping, you currently use subscripts to set the property values:
      db = Database(database_id, Client(auth=notion_token))
      page = db.find_by_id("b59fec7c9a4b43b1b169bd10aa843053")
      page['MyAttribute'] = "foo"
      db.update(page)
    if you use custom models, you need at least an id field + use attribute setters (page.MyAttribute = "foo")

What's changed

Full Changelog: v0.3.0...v0.4.0