APIS Advanced Search
A model-agnostic query builder/search interface for APIS instances.
Installation
uv add apis-advanced-search
Add it to INSTALLED_APPS:
INSTALLED_APPS = [
...,
"apis_advanced_search",
]
Include its URLs somewhere in your project's root urls.py:
urlpatterns = [
...,
path("advanced-search/", include("apis_advanced_search.urls")),
]
The URL prefix (advanced-search/ above) is up to you. The app checks at startup that its URLs were included somewhere, and raises ImproperlyConfigured with a clear message if you forget this step.
In case of trouble, compare your APIS instance with the sample_project APIS instance included here.
Settings
APIS_ANON_VIEWS_ALLOWED from apis-core-rdf is used to determine if the results can be shown to anonymous users.
If apis_core.collections is not included in INSTALLED_APPS, it will not be possible to add search results to a collection. A warning will be logged when the server starts.
Why
The generic list views allow searching across multiple fields of a single model, but only using AND conditions. They do not support checking for empty values or more precise matching, such as exact matches or values starting with a particular string. Searching across related models is also limited, making it difficult to specify precise criteria for the attributes of subject and object models.
For example, a researcher might want to find Expressions that:
- Have Persian as one of their Language values.
- Are a copy of a Work (via the
ACopyOfrelation) that has History as one of its Subject Heading values.
Expression.objects.filter(
language__name="Persian",
pk__in=ACopyOf.objects.filter(
obj_object_id__in=Work.objects.filter(
subject_heading__name="History"
).values("pk")
).values("subj_object_id")
).distinct()
The above query to retrieve these records is not complex, but humanities researchers neither have access to the backend to run such queries nor the technical know-how to write them.
This package provides a way for users to build such queries through a single, more flexible search interface, without having to write Django ORM queries themselves.
Metadata
Release files for apis-advanced-search 0.0.5
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 | Actions |
|---|---|---|---|---|
| apis_advanced_search-0.0.5.tar.gz | 92.8 kB | With provenance | Details for apis_advanced_search-0.0.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| apis_advanced_search-0.0.5-py3-none-any.whl | Python 3 | none | any | Details for apis_advanced_search-0.0.5-py3-none-any.whl |
Total release size: 127.6 kB
Release files / apis_advanced_search-0.0.5.tar.gz
| Download URL | apis_advanced_search-0.0.5.tar.gz |
|---|---|
| Size | 92.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b0becf7a8415e9ae644448059690cbb19cf0863729b50a213492d6699405277e
|
|
BLAKE2b-256 checksum How to use checksums |
00df67403ac89c5a26447c41c8d36aa6cb6de5deee527bc5cb9b47ebf3691be9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.
Transparency logRelease files / apis_advanced_search-0.0.5-py3-none-any.whl
| Download URL | apis_advanced_search-0.0.5-py3-none-any.whl |
|---|---|
| Size | 34.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
63d2eeed3ff2d90ec82868e5ee95f633d503af95c7248c1a740db22b549727d5
|
|
BLAKE2b-256 checksum How to use checksums |
38c448c04f6b6d706ea75171c77bbbcac22c218877ccaae677e49da1146cbe60
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.
Transparency logSecurity for apis-advanced-search 0.0.5
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for apis_advanced_search-0.0.5.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.
Transparency logA 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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.