Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/dimagi/django-cte
- Owner: dimagi
- License: other
- Created: 2018-02-21T14:27:08.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2024-06-25T10:43:09.000Z (6 months ago)
- Last Synced: 2024-09-30T16:57:37.918Z (2 months ago)
- Language: Python
- Size: 134 KB
- Stars: 319
- Watchers: 27
- Forks: 45
- Open Issues: 19
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
- starred-awesome - django-cte - Common Table Expressions (CTE) for Django (Python)
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 flake8nosetests
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.txtpython setup.py sdist bdist_wheel
twine upload --repository=django-cte dist/*
```