Skip to main content

Data layer for Eve powered by peewee.

Project description

|Build Status|

A WIP data layer for Eve using peewee

Currently peewee creates tables based on settings.py DOMAIN declarations during start-up and basic Eve CRUD methods work.

Instuctions

  • python setup.py install or pip install eve-peewee

  • define DATABASE_URI in settings.py (see examples)

  • Eve(data=EvePeewee).run()

Tested

  • postgres 9.x, sqlite3

  • python 2.7, 3.5

  • basic eve functionality (filtering, sorting, pagination, timestamps, etag/if-match, soft delete)

  • 1:m data relationships

Untested/TBD

  • mysql

  • custom validator

  • constraints (unique)

  • m:m data relationships (atm creates link tables but likely fails to query for embedding)

  • versioning fields

Notable caveats

  • peewee doesn’t do auto-migration (if you change domain models, drop the tables to get them recreated or apply changes in db manually)

  • peewee specific field properties can be defined in DOMAIN schema (requires “transparent_schema_rules”), e.g. '_peewee': { 'primary_key': True }

  • not all possible error cases are captured to json/xml document, default 500 response may happen

  • objectid and media types are unsupported (list and dict types are saved as jsonb)

  • many of the mongo centric field properties of eve (anyof, allof etc) are silently ignored

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

eve-peewee-0.0.6.tar.gz (7.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

eve_peewee-0.0.6-py2.py3-none-any.whl (8.7 kB view details)

Uploaded Python 2Python 3

File details

Details for the file eve-peewee-0.0.6.tar.gz.

File metadata

  • Download URL: eve-peewee-0.0.6.tar.gz
  • Upload date:
  • Size: 7.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for eve-peewee-0.0.6.tar.gz
Algorithm Hash digest
SHA256 a1755bbf102c91ab82a82c39d8c093f4422b3dfcf635e12a171398b21ea6f0b4
MD5 411a5b27805918bd015212c91bf98e6a
BLAKE2b-256 f6dc2472f2472bc99e6b0e291a0696eeb51fb7276446d707ec1036075a7f4dff

See more details on using hashes here.

File details

Details for the file eve_peewee-0.0.6-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for eve_peewee-0.0.6-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 79ec78e900978d5898c0f05b36319bf2354429a90b5570cbcd8211286a2a2698
MD5 fcec2a6bfa046a48bdce59757adef9de
BLAKE2b-256 c3c87ab096456eb29b8babfaf8457c4e6a6238fc116570ee823540d9a9e62fe6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page