Skip to main content

Pony Indice is a Django re-usable app to create a simple search engine for your project.

Install

Install it as usual (pip coming):

pip install pony-indice

Add the app in your INSTALLED_APPS:

INSTALLED_APPS = (
   ...
   'pony_indice',
   ...
)

And launch the migration to create the table:

./manage.py migrate

Usage

The usage is quite simple:

from pony_indice import registry as indice_registry

@indice_registry.register()
class YourModel(models.Models):
   rank = models.IntegerField()

Now your model is tagged as “tracked” and the following behaviors are added:

  • On post_save signals a Link will be created/updated in database

  • On post_delete the Link will be mark as “removed”

(Update aren’t taken in account and may lead to broken URLs)

Basicaly this app is based on the other decorated models, but you can easily import pony_indice.models.Link and add the link which you want, especialy external ones.

Tools

QuerySet

The Link’s queryset has the method filter_q method, which is a simple filter looking if fields display or description contain a string. Useful to create easily any search tool.

Admin

Of course the admin interface is already configured.

REST Framework

pony_indice.contrib.rest_framework.serializers.LinkSerializer and pony_indice.contrib.rest_framework.viewsets.LinkViewsets are here to play quickly with Django REST Framework.

Metadata

Release files for pony-indice 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pony-indice 1.0.1
File Size Uploaded Provenance Actions
pony-indice-1.0.1.tar.gz 12.0 kB Without provenance Details for pony-indice-1.0.1.tar.gz

Release files / pony-indice-1.0.1.tar.gz

Download URL pony-indice-1.0.1.tar.gz
Size 12.0 kB
Tags Source
SHA-256 checksum
How to use checksums
40c47e2947edfe7f44f34d56b19d5e1e599be06eca5296b6b1ab3a0a0c7cb711
BLAKE2b-256 checksum
How to use checksums
66162f83d26925b4919b9655970e84968f109d6d0a9b12f837572a316fd9192d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.9.1 pkginfo/1.4.1 requests/2.18.4 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.19.4 CPython/3.5.2

Security for pony-indice 1.0.1

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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.1 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page