Query pattern of containers of objects
Project description
SimpleQuery
query from containers of objects, in Python
Query pattern
The Query pattern uses criteria on classes and fields to retrieve value objects from a dataset. Those criteria are a field, an operator, and a value. For example, ('last_name', =, 'Fowler') or ('price', <, 100.00).
Setting up development environment
It is always recommended to use a virtual environment for each Python appplication. Create the environment once, after cloning this repository to your machine.
python3 -m venv .env
For each terminal session going forward, work on the virtual environment and use its copy of python.
source .env/bin/activate
Upgrade pip
pip install -U pip
Install developer requirements for a nicer test runner (see Running Tests)
pip install -r requirements/dev.txt
Running tests
Tests are written in unittest syntax, so no additional package are needed to run them
python -m unittest discover
For a more informative output, as well as plugins for color and watch mode, use nose test runner. You can also use the test runner of your choice.
nosetests --rednose --with-watch
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for simple_query-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e7ee076142b3335e34e510a4c79d070d674be04f2ca8e90c47b16070ea386458 |
|
MD5 | 31e320fa8c6bb307f922244b31c258d7 |
|
BLAKE2b-256 | 6dd984e236424875d28fadf219e1e70a716c02e9b2cf7271234d513434766e08 |