Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dimagi/django-cte

Common Table Expressions (CTE) for Django
https://github.com/dimagi/django-cte

Last synced: about 2 months ago
JSON representation

Common Table Expressions (CTE) for Django

Awesome Lists containing this project

README

        

# Common Table Expressions with Django

[![Build Status](https://github.com/dimagi/django-cte/actions/workflows/tests.yml/badge.svg)](https://github.com/dimagi/django-cte/actions/workflows/tests.yml)
[![PyPI version](https://badge.fury.io/py/django-cte.svg)](https://badge.fury.io/py/django-cte)

## Installation
```
pip install django-cte
```

## Documentation

The [django-cte documentation](https://dimagi.github.io/django-cte/) shows how
to use Common Table Expressions with the Django ORM.

## Running tests

```
cd django-cte
mkvirtualenv cte # or however you choose to setup your environment
pip install django pynose flake8

nosetests
flake8 --config=setup.cfg
```

All feature and bug contributions are expected to be covered by tests.

## Uploading to PyPI

Package and upload the generated files. This assumes the `django-cte` repository
has been configured in `~/.pypirc`.

```
pip install -r pkg-requires.txt

python setup.py sdist bdist_wheel
twine upload --repository=django-cte dist/*
```