Skip to main content

A testing ground for Keg related code and ideas.

Project description

https://circleci.com/gh/level12/keg-elements.svg?style=svg https://codecov.io/github/level12/keg-elements/coverage.svg?branch=master

Keg Elements is the testing ground for ideas and code that will eventually make their way into Keg or an official Keg extension.

Development beta

To develop on this project, begin by running our tests:

git clone https://github.com/level12/keg-elements keg-elements-src
cd keg-elements-src
tox

You can then examine tox.ini for insights into our development process. In particular, we:

  • use py.test for testing (and coverage analysis)

  • use flake8 for linting

  • store pip requirements files in requirements/

  • cache wheels in requirements/wheelhouse for faster & more reliable CI builds

Dependency Management

Adding a dependency involves:

  1. If it’s a run-time dependency, add to setup.py.

  2. Adding the dependency to one of the requirements files in requirements/.

  3. Running requirements/build-wheelhouse.py.

Preview Readme

When updating the readme, use restview --long-description to preview changes.

Issues & Discussion

Please direct questions, comments, bugs, feature requests, etc. to: https://github.com/level12/keg-elements/issues

Current Status

Beta

Changelog

0.5.9 released 2018-09-19

  • FEAT: Add additional metadata to the results of Form.fields_todict (2f863f1)

0.5.8 released 2018-07-19

  • Merge pull request #82 from level12/add-alphanumeric-validator (bbf43ec)

0.5.7 released 2018-06-19

  • Merge pull request #80 from level12/check-for-missing-app-ctx (1d0f3d8)

0.5.6 released 2018-04-30

  • FEAT: Automatically generate range validators for numeric fields in ModelForms (48a3827)

  • Improvements to the uniqueness form validator (29937c5)

0.5.5 released 2018-04-25

  • FEAT: Add custom Sentry client to filter out flask config object from reports (927e012)

0.5.4 released 2017-08-08

  • Use pyp to manage releases (5b11356)

  • FEAT: Add file/stream encryption methods (aeab61a)

0.5.3 - 2017-04-26

  • FEAT: Add DontCare for Easy Testing (28643d6)

0.5.2 - 2017-03-23

  • FEAT: Add additional utility functions (2e27a60)

  • BUG: Check all records when updating a collection (fffb7c8)

0.5.0 - 2016-12-19

  • FEAT: Create crypto primitives (5a981b5)

  • Refactor testing_create kwargs validation and ignore “_” prefixed keys (484d032)

0.4.2 - 2016-11-11

  • FEATURE: Verify kwargs correspond to columns and relationships in testing_create. (db533dd)

  • FEATURE: Add support for form-level validation. (GH-53)

0.4.1 - 2016-10-19

  • Add unique form validator (a0c7447)

0.4.0 - 2016-09-08

  • FEATURE: Port MethodsMixin with a number of helpful functions when working with SQLAlchemy ORM entites. (GH-49, GH-51)

  • FEATURE: Add a new TimeZone Column. (GH-50)

  • MAINTENANCE: Provide better testing support for polymorphic SQLAlchemy ORM entities. (GH-47)

  • BUG: Fix descripions when implicitly rendering checkboxes (GH-48)

0.3.2 - 2016-08-03

  • Support dirty_check flag on form objects (GH-46)

0.3.1

  • Allow FieldMeta to override default widget and add extra validators (GH-38)

  • Allow customization of readonly and disabled attributes on input, select, and radio fields (GH-37)

  • Improve the logic for when to default a form field to RequiredBoolRadioField (GH-36)

  • Upgrades to the CI Environment

0.3.0

  • Allow static renders to be configured with custom macros. (GH-34)

  • Syncronize static templates with dynamic templates. (GH-31)

  • You can now give a field a description with a string or callback. (GH-23, GH-22)

  • Introduced a RequiredBoolReadioField for use with boolean columns. (GH-25)

  • Support randomly filling EmailTypes. (GH-24)

  • Support additional parameters for randomizing integers. (GH-19)

  • testing_create will randomly select a boolean value for SQLAlchemy boolean fields. (GH-28)

  • We now have a working CI. (GH-27)

  • Constraint tests will fail if all fields are not covered. (GH-21)

  • Introduced a new form-upload macro. (GH-18)

  • Static render now uses element.data unless it is a SelectField (GH-16)

  • MethodsMixin has a new to_dict method. (d83d93f)

  • MethodsMixin has a new ensure method. (e5687ed)

  • Fix bug where static renderes whould not output the label. (GH-33)

  • Fix property names when using automatic test cases. (GH-29)

  • Fix issue where we wouldn’t use a consistent json parser. (GH-13)

  • Fix a bug where polymorphic columns are included in testing_create. (147c23)

development version: 2015-07-28

  • Add db.mixins with DefaultColsMixin (id, Arrow lib UTC timestamps) and MethodsMixin (incomplete).

  • Some MethodsMixin methods now have support for commit/flush parameters.

  • Add .testing:EntityBase which uses named tuples to declare the checks needed and adds some additional logic.

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

KegElements-0.5.9.tar.gz (42.7 kB view details)

Uploaded Source

Built Distribution

KegElements-0.5.9-py2.py3-none-any.whl (46.2 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file KegElements-0.5.9.tar.gz.

File metadata

  • Download URL: KegElements-0.5.9.tar.gz
  • Upload date:
  • Size: 42.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.23.1 CPython/3.6.2

File hashes

Hashes for KegElements-0.5.9.tar.gz
Algorithm Hash digest
SHA256 18979fa6e158555f7c7cd42a712d79906b8179efee323d097dc301b9c9d79ff5
MD5 6b6a5dadd2bec70ae7555fc6534b77e2
BLAKE2b-256 4066242fd488756602025158ee2ccf8895d1f517de347c007a573067fa89ef33

See more details on using hashes here.

Provenance

File details

Details for the file KegElements-0.5.9-py2.py3-none-any.whl.

File metadata

  • Download URL: KegElements-0.5.9-py2.py3-none-any.whl
  • Upload date:
  • Size: 46.2 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.23.1 CPython/3.6.2

File hashes

Hashes for KegElements-0.5.9-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 b9fb7f68318b7c3a8283966961b0fe770597241d60ed2ff18f991639dc4048b4
MD5 b010b57862734442b0f063ee0dac11e4
BLAKE2b-256 a46bb465f7e82f672cd1ce92a0aa9e147ae104d8977747aa46c948490631631f

See more details on using hashes here.

Provenance

Supported by

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