django-xformula
Django query evaluator, is built on top of XFormula language front-end.
This project is still in development.
If you're interested, you may check the note in XFormula repository.
Features:
- Bidirectional operators
-
- Same syntax for both Python and Django query evaluation
-
- Operations contain at least one
QuerySet, will be evaluated asQuerySet
- Operations contain at least one
-
- Operations contain at least one
Q, will be evaluated asQ
- Operations contain at least one
-
- Operations contain at least one
Combinable, will be evaluated asCombinable
- Operations contain at least one
-
- Operations contain at least one
Field, will be evaluated asCombinable
- Operations contain at least one
-
- Operations contain at least one
Modelinstance, will be evaluated asValuewhich contains the model instance's primary key
- Operations contain at least one
-
- Other operations work like how Python does
- Zero built-in variable by defaults
-
- When a variable name is used but does not exist in the specified built-ins,
it will be evaluated as
Fobject
- When a variable name is used but does not exist in the specified built-ins,
it will be evaluated as
- Customizable attribute getter; manage which attributes can be used in formulas
(Getting an attribute of an object is forbidden by default, and raises
ForbiddenAttributeerror which inherits Django'sPermissionDeniedclass) - Customizable caller; manage which functions can be called in formulas
(Calling a callable is forbidden by default, and raises
ForbiddenCallerror which inherits Django'sPermissionDeniedclass)
License
Metadata
Release files for django-xformula 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| django_xformula-0.1.3.tar.gz | 9.0 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_xformula-0.1.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 22.2 kB
Release files / django_xformula-0.1.3.tar.gz
| Download URL | django_xformula-0.1.3.tar.gz |
|---|---|
| Size | 9.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1eb6c5e8b9bbfbae3b3976ef08e4904acc1d60eef391f03401f17a72e994e7c7
|
|
BLAKE2b-256 checksum How to use checksums |
6adb68feb40e576443f997b0568130e2083ef08c5506febdf984a94d3a9daee1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.4
|
Release files / django_xformula-0.1.3-py3-none-any.whl
| Download URL | django_xformula-0.1.3-py3-none-any.whl |
|---|---|
| Size | 13.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b71d16329eea620ff6fa938a7c45ab136f0f1642052d93700fc878b45cbb7817
|
|
BLAKE2b-256 checksum How to use checksums |
7114b3d8e0311dcd16d1e6d6950a31a982df3c991f2f529a4f8ffa9bff810d04
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.4
|
Security for django-xformula 0.1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.